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?