-
Website
http://awads.net/wp/ -
Original page
http://awads.net/wp/2006/08/01/little-known-way-to-get-the-error-message-in-plsql/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
jgarry
3 comments · 1 points
-
Andy C
22 comments · 47 points
-
dahowlett
1 comment · 2 points
-
Don Seiler
9 comments · 1 points
-
davidhaimes
4 comments · 3 points
-
-
Popular Threads
The latter returns the entire error stack (the clue is in the name). Sometimes the real error you want to identify is some way down the error stack - in which case SQLERRM is no good for you.
If looking for a particular error number in FORMAT_ERROR_STACK you can simply do a:
EXCEPTION
WHEN OTHERS THEN
IF INSTR(dbms_utility.format_error_stack, 'ORA-12345') != 0 THEN ...
ELSE
RAISE;
END;
ELSE
RAISE;
END IF;
END;
You pass an error code and you get the message like perror in Unix.
Thanks
@Guillaume I'm afraid I cannot help you with C.
i am preparing for job interviews as a pl/sql developer.
where can i find good interview questions on database triggers and cursors.
ne pointers to tat plzzz