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: Optimizer and block size changes = trouble...

RE: Optimizer and block size changes = trouble...

From: Connor McDonald <hamcdc_at_yahoo.co.uk>
Date: Thu, 10 May 2001 01:59:07 -0700
Message-ID: <F001.002FEE44.20010510004039@fatcity.com>

(The stats are a little off because I ran it through a few times, but version count remains at 1)

mcdonac_at_EDEV> create table t as select * from dual;

Table created.

mcdonac_at_EDEV> analyze table t compute statistics;

Table analyzed.

mcdonac_at_EDEV> select count(*) from t;

  COUNT(*)


         1

mcdonac_at_EDEV> select parse_calls, version_count   2 from v$sqlarea
  3 where sql_text= 'select count(*) from t';

no rows selected

mcdonac_at_EDEV> show parameters optimizer_index

NAME                                 TYPE    VALUE
------------------------------------ -------
------------------------------
optimizer_index_caching              integer 0
optimizer_index_cost_adj             integer 100
mcdonac_at_EDEV> alter session set
optimizer_index_caching = 1;

Session altered.

mcdonac_at_EDEV> select count(*) from t;

  COUNT(*)


         1

mcdonac_at_EDEV> select parse_calls, version_count   2 from v$sqlarea
  3 where sql_text= 'select count(*) from t ';

PARSE_CALLS VERSION_COUNT
----------- -------------

         11 1

mcdonac_at_EDEV> alter session set
optimizer_index_cost_adj = 99;

Session altered.

mcdonac_at_EDEV> select count(*) from t;

  COUNT(*)


         1

mcdonac_at_EDEV> select parse_calls, version_count   2 from v$sqlarea
  3 where sql_text= 'select count(*) from t ';

PARSE_CALLS VERSION_COUNT
----------- -------------

         12 1

mcdonac_at_EDEV> select * from v$version;

BANNER



Oracle8i Enterprise Edition Release 8.1.6.3.0 - Production
PL/SQL Release 8.1.6.3.0 - Production
CORE 8.1.6.0.0 Production
TNS for Solaris: Version 8.1.6.3.0 - Production NLSRTL Version 3.4.0.0.0 - Production

mcdonac_at_EDEV> show parameters shared_pool

NAME                                 TYPE    VALUE
------------------------------------ -------
------------------------------
shared_pool_reserved_size            string  2621440
shared_pool_size                     string  52428800




Connor McDonald
http://www.oracledba.co.uk (mirrored at http://www.oradba.freeserve.co.uk)

"Some days you're the pigeon, some days you're the statue"



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
-- 
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 Thu May 10 2001 - 03:59:07 CDT

Original text of this message

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