1. The SQL Trace file location can be found by querying the DIAGNOSTIC_DEST database parameter. From SQL plus, connect as an admin user and run:
Show parameters diagnostic_dest; 2. To start a database wide trace, from the same sqlplus session run:
exec dbms_monitor.database_trace_enable;3. Run the Data collect to reproduce the error.
4. It is important that the trace is disabled after reproducing the error.
exec dbms_monitor.database_trace_disable;5. Go to the trace folder under the diagnostic destination for your database, and run the following command to find the sql trace file with the error.
grep err=933 *
6. Open the trace file and search for err=933 to find the problem SQL.