One of the developer came and asked to find the sql which is causing the ORA error in his custom application. He was accessing the URL and he was getting 'ORA-00942' error in the screen.
If this was on on premise DB, i would have run below statement to enable system wide event for the error ORA-00942. This statement will capture the 942 errors.
SQL> alter system set events '942 trace name errorstack level 1';
System altered.
SQL>
In RDS Oracle You have to use below to turn on the events
I have asked the developer to reproduce the problem. And to turn off I have used below commands.
SQL> SET SERVEROUTPUT ON
SQL> EXEC rdsadmin.rdsadmin_util.unset_system_event(942);
Unsetting system event 942 with: alter system set events '942 off'
PL/SQL procedure successfully completed.
Typical revoke would be below on non RDS
alter system set events '942 trace name errorstack off';
3 comments:
Hi Suresh,
Santosh here. Can we use this fo every error we see in db or alert log or is it for specific errors ???
Thanks,
Santosh.
If you want to lookup ORA messages on your Android smartphone, try to use this application:
https://market.android.com/details?id=be.juvo.orasearch
Hi Santosh,
Most of the errors fall under this category.
Suresh
Post a Comment