Re: How to vew SQL queries received from external application

From: joel garry <>
Date: Tue, 5 Mar 2013 17:30:27 -0800 (PST)
Message-ID: <>

On Mar 5, 4:32 pm, Yaq <> wrote:
> Hi, I'm new to Oracle and working a solution that having Oracle talks to an external application. The external application sends some sql queries to Oracle db. I don't own this external application, so I need to find out what exact sql queries are sent. Can anyone tell me how to view these queries please?
> Many thanks in advance.

There are many answers, version dependent. Through the sqlplus command line, you can look at various views explained in the manuals available at Through enterprise manager, you can look at the cursors sessions have open, and there are also extra cost tools for performance tuning. You can also set up login triggers to trace particular users (and there are a number of variants on that). Tracing can require some advanced understanding, though.

Some people like sqldeveloper, see for some example.

Remember, Oracle has some nifty things built in for scaling and sharing data, so you should also read the concepts manual. For this kind of question, you need to understand how the shared pool parses and keeps queries. Oracle can change queries in some cases, and the optimizer can do cool things too.


-- is bogus.
Received on Wed Mar 06 2013 - 02:30:27 CET

Original text of this message