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

Home -> Community -> Usenet -> c.d.o.server -> Re: sql_text from v$sqlarea

Re: sql_text from v$sqlarea

From: Billy Verreynne <vslabs_at_onwe.co.za>
Date: Fri, 7 Sep 2001 09:17:38 +0200
Message-ID: <9n9sal$rn2$1@ctb-nnrp1.saix.net>


"May" <sunxushi_at_yahoo.com> wrote in
<snipped>
> but when i run the a sql select from v$sqlarea in sqlplus, the result
> is diffirent from the result when run it from web page application.(
> i think i run the same sql, because not many sql in v$sqlarea). so i
> am very puzzled.

To add to what the others said.. another reason why the SQL could look different is because of parallel query. In this case your SQL statement is changed in order to run it in parallel. Oracle will add some hints to it and a ROWID range scan in the WHERE clause.

Also, as you are using a web application, be careful of using ODBC to access Oracle. Certain ODBC drivers have a nasty habit of interfering with your SQL in an stupid attempt to "fine tune" it. Always used ODBC PASS THRU option to ensure that the SQL you specified, is the SQL that the database engine receives.

--
Billy
Received on Fri Sep 07 2001 - 02:17:38 CDT

Original text of this message

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