I want trace the queries the application issues on the backend database, I want see those queries saved in a log for me to investigate. How can do that?
----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Another solution is to create a "login" trigger on the schema you wish to audit and enable tracing for each connection to that schema only:
Code:
CREATE TRIGGER AUD_SCHEMA_X AFTER LOGON
ON SCHEMA MySchema
BEGIN
EXECUTE IMMEDIATE "ALTER SESSION SET SQL_TRACE=TRUE";
...etc...
----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.