Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to find out which query returned a certain error

Nigel DamsSep 23 2014 — edited Sep 30 2014

Hi, all - I've been searching and searching on the internet for an answer to this question, but found nothing.    I hope someone here knows the answer.

I need to be able to query the "dictionary" to find out which user query returned a certain error code, say ORA-02291, something along the lines of "select sql_text from v$sql where [the error code was 2291]"

I have set up test tables to force the errors and have found that the offending sql text is present in v$sql, but nowhere can I find where the error code is stored.   I've checked DBA_ERRORS, ALL_ERRORS, USER_ERRORS and a host of other tables named '%ERR%' . . . but they're all empty.

Does anyone know where the return value is stored?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 28 2014
Added on Sep 23 2014
6 comments
1,486 views