Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: More parses than eecutes
It is the application code or the interface drivers...
For example, if you SQL trace an application executing through ODBC from connect to disconnect, you'll see lots of statements like "SELECT * FROM <table-or-view>" where they only parse but never execute. My guess is that the ODBC driver is using those calls to perform rough "describes" or something of that purpose. I see it more often from the MS-supplied ODBC drivers for Oracle rather than the Oracle-supplied ODBC drivers. The Oracle-supplied drivers tend to query ALL_OBJECTS directly, instead...
I don't know if you're using ODBC and MS-supplied Oracle ODBC drivers in particular, but that's one possible scenario. If they're not using ODBC, then the PSFT tools may themselves be doing something similar as a platform-independent way of get descriptions of database objects...?
One trick to get good SQL traces from connect to disconnect for specific user accounts: embed the DBMS_SESSION.SET_SQL_TRACE procedure inside an AFTER LOGON database-event trigger (i.e. Oracle8i new feature) for a specific user account. Once created, you can enable and disable the trigger to turn tracing on and off. Just remember to disable (or drop) this trigger when you're done tracing -- otherwise you'll *never* forget the time when you forgot! I learned the hard way, and its a good thing the production DBAs affected were so good-natured about it (beers all around go a long way!)...
Hope this helps...
Hi All,
From where comes the problem that when I check v$sqlarea & v$sqltext I get 2 executes and 4 parses or something similar.
Why would a statement that executes once be parsed twice?
Oracle 8.1.7.3
People tools 8
THX
Indien bovenstaand e-mailbericht niet aan u is gericht, verzoeken wij u vriendelijk doch dringend het e-mailbericht te retourneren aan de verzender en het origineel en eventuele kopieën te verwijderen en te vernietigen.
Ernst & Young hanteert bij de uitoefening van haar werkzaamheden algemene voorwaarden, waarin een beperking van aansprakelijkheid is opgenomen. De algemene voorwaarden worden u op verzoek kosteloos toegezonden.
If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies.
In carrying out its engagements, Ernst & Young applies general terms and conditions, which contain a clause that limits its liability. A copy of these terms and conditions is available on request free of charge.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jack van Zanen INET: nlzanen1_at_EY.NL Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-LReceived on Tue Jun 04 2002 - 11:38:29 CDT
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Tim Gorman INET: Tim_at_SageLogix.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
![]() |
![]() |