Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: More parses than eecutes

Re: More parses than eecutes

From: Tim Gorman <Tim_at_SageLogix.com>
Date: Tue, 04 Jun 2002 08:38:29 -0800
Message-ID: <F001.004739CE.20020604083829@fatcity.com>


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



De informatie verzonden in dit e-mailbericht is vertrouwelijk en is uitsluitend bestemd voor de geadresseerde. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is, behoudens voorafgaande schriftelijke toestemming van Ernst & Young, niet toegestaan. Ernst & Young staat niet in voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mailbericht, noch voor tijdige ontvangst daarvan. Ernst & Young kan niet garanderen dat een verzonden e-mailbericht vrij is van virussen, noch dat e-mailberichten worden overgebracht zonder inbreuk of tussenkomst van onbevoegde derden.

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.



The information contained in this communication is confidential and is intended solely for the use of the individual or entity to whom it is addressed. You should not copy, disclose or distribute this communication without the authority of Ernst & Young. Ernst & Young is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. Ernst & Young does not guarantee that the integrity of this communication has been maintained nor that the communication is free of viruses, interceptions or interference.

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-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). -- 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).
Received on Tue Jun 04 2002 - 11:38:29 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US