An application is connecting to Oracle to do stuff. It's not working but I don't get any ORA errors in the application itself. I'm thinking its a permission problem. So my question is what is the best way to check to see if a oracle account tried to perform an operation that it didn't have permission to do? It would also help to know what operation it tried to perform so I can grant it.
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
Another option (short of full auditing) is a servererror trigger for the schema in question (or the whole database).
If it's for a single schema/user the trigger needs to be created under that user. You also can trap errors for the whole database by specifying
Now nearly all errors that happen will be recorded by the trigger (see the manual for a list of errors that will not be reported: http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/create_trigger.htm#LNPLS1992)