Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

SQL statement issued by the client system

I want to know the SQL statement issued by the client system and the table affected by the query issued by the client. I?m working with Oracle 8i. I want to have a log of the queries issued by the user. I have tried using an audit trial, but was not able to get the exact query issued by the client.
In 9i, this becomes very easy to implement, but in 8i, your options are quite limited. The first way that comes to mind for this is to move the AUD$ table from the SYS schema to another schema and then create a trigger on it to populate another table with the SQL that generated the audit record. This may be unsupported by Oracle, but I've done it before (with 8.0 and 8i) and it worked quite well for me.
This was last published in March 2005

Dig Deeper on Oracle and SQL



Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.