Are you logged on as SYS ?
Pretty much select from <insert_anything_you_like> as
SYS will return '0' for the relevant stats - which is
course is not reflective on what's really happening
hth
connor
- david hill <david.hill_at_lechateau.ca> wrote: >
Just wondering here but has anyone tried doing that
> select from something
> like v$database;
>
> Statistics
>
> 0 recursive calls
> 0 db block gets
> 0 consistent gets
> 0 physical reads
> 0 redo size
> 187 bytes sent via SQL*Net to client
> 248 bytes received via SQL*Net from client
> 2 SQL*Net roundtrips to/from client
> 0 sorts (memory)
> 0 sorts (disk)
> 1 rows processed
>
> that looks pretty good to me!!
>
>
> -----Original Message-----
> Sent: Friday, August 02, 2002 11:13 AM
> To: Multiple recipients of list ORACLE-L
>
> I've been reading the thread on DUAL vs X$DUAL, read
> the referenced article
> and tried some testing on our system. I do a simple
> select from DUAL and I
> get the same statistics as were in the article, but
> sometimes I also get 1
> memory sort. Does anyone know why this would be? And
> if this is true, that
> really makes me want to change over to X$DUAL. Also,
> what is the consensus
> about creating a view for DUAL that references
> X$DUAL? I'm running the
> Oracle Application and cannot change all of their
> code to use something
> other than DUAL, and there is a lot of it.
>
> Here are the statistics on the select. Notice the
> difference between the
> first vs repeat of the same seelct.
>
> Connected to:
> Oracle8i Enterprise Edition Release 8.1.7.1.1 -
> Production
> With the Partitioning option
> JServer Release 8.1.7.1.1 - Production
>
> SQL> set autotrace traceonly
> SQL> select 'y' from dual;
>
> Execution Plan
>
> 0 SELECT STATEMENT Optimizer=CHOOSE (Cost=2
> Card=1)
> 1 0 TABLE ACCESS (FULL) OF 'DUAL' (Cost=2
> Card=1)
>
> Statistics
>
> 0 recursive calls
> 4 db block gets
> 1 consistent gets
> 0 physical reads
> 0 redo size
> 361 bytes sent via SQL*Net to client
> 425 bytes received via SQL*Net from client
> 2 SQL*Net roundtrips to/from client
> 1 sorts (memory)
> 0 sorts (disk)
> 1 rows processed
> SQL> /
>
> Execution Plan
>
> 0 SELECT STATEMENT Optimizer=CHOOSE (Cost=2
> Card=1)
> 1 0 TABLE ACCESS (FULL) OF 'DUAL' (Cost=2
> Card=1)
>
> Statistics
>
> 0 recursive calls
> 4 db block gets
> 1 consistent gets
> 0 physical reads
> 0 redo size
> 361 bytes sent via SQL*Net to client
> 425 bytes received via SQL*Net from client
> 2 SQL*Net roundtrips to/from client
> 0 sorts (memory)
> 0 sorts (disk)
> 1 rows processed
> SQL>
>
> Thanks for your input.
>
>
> John Zoltak
> North American Mfg Co
> 4455 East 71st Street
> Cleveland Ohio 44105
>
> --
> Please see the official ORACLE-L FAQ:
> http://www.orafaq.com
> --
> Author: John Zoltak
> INET: JohnZoltak_at_namfg.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).
> --
> Please see the official ORACLE-L FAQ:
> http://www.orafaq.com
> --
> Author: david hill
> INET: david.hill_at_lechateau.ca
>
> 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).
Connor McDonald
http://www.oracledba.co.uk
http://www.oaktable.net
"Remember amateurs built the ark - Professionals built the Titanic"
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: =?iso-8859-1?q?Connor=20McDonald?=
INET: hamcdc_at_yahoo.co.uk
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 Sun Aug 04 2002 - 11:43:19 CDT