Skip to Main Content

SQL & PL/SQL

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!

Find error table created using DBMS_ERRLOG

Purvesh KSep 12 2013 — edited Sep 12 2013

Hello,

I am working on Oracle 10.2.0.5 and have a requirement to log the Error records without allowing the Load process to fail. In order to achieve this, I have decided to use the DBMS_ERRLOG functionality provided.

However, there is a catch. The application has approx. 100+ database tables, which are loaded with data received in flat files, and many of them have length nearning 30 characters.

Now, DBMS_ERRLOG, will automatically create an error table corresponding to database table, but will only consider first 25 characters. And since, many tables have similar names differing only towards the end. Hence, my question is, Is there any data dictionary view which might store the underlying database table name?

I am aware of two options to achieve this:

1. Maintain a document to reference each Error table to its database table. This being a manual approach, I am trying to avoid it.

2. Use the USER_TAB_COMMENTS, which will store the table name in comment. Although I have seen this happening, but do not see this as sure-shot approach, since I do not remember reading this anywhere in documentation.

Can anybody suggest a better approach to manage the situation?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 10 2013
Added on Sep 12 2013
5 comments
1,031 views