I have an application from a third party that writes to the Oracle database. One component of the application returns no data given particular parameters, while the other component of the application does return data with those same parameters. Nobody has the source code to this application, but it can be seen that the database has the proper information in it.
The misbehaving component gets ORA-01403
returned from the oracle database server, which means no data found, but can be related to a syntax error, as seen by a packet sniffer I installed.
I want to see the differences in the queries that the different components of the application actually generate.
Would also like to run these queries on the command line or in some other database viewer to see what gets returned.
How can I monitor the database with a trace that actually shows the queries being made? I would also like to isolate these by IP address or source.
Using Oracle 10g Enterprise
IIRC, TOAD will do what you want.
Additionally, there is a free trial - http://www.quest.com/toad-for-oracle/software-downloads.aspx
There are other interesting downloads (search oracle free toad) but I can't be sure of their legitimacy.