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: Currval and buffer gets

RE: Currval and buffer gets

From: James McCann <james_at_openet-telecom.com>
Date: Wed, 24 Apr 2002 08:18:32 -0800
Message-ID: <F001.0044DF60.20020424081832@fatcity.com>


Gaja is correct. I had big problems recently with a highly concurrent application selecting from DUAL too many times, resulting in an extremely hot DUAL table. I wish I had knew this trick a few weeks ago. As it was, an bit of application tuning sorted it out.

Jim

-----Original Message-----
Krishna Vaidyanatha
Sent: 24 April 2002 16:04
To: Multiple recipients of list ORACLE-L

All,

I think the issue of using SYS.DUAL vs. X$DUAL is much beyond just "response time". It is more related to "easing a potential bottleneck" in your database, in a production environment supporting multiple sessions. Given that it takes 5 LIOs (upto Oracle8i) and 3 LIOs (in Oracle9i for every access to SYS.DUAL, the issue then boils down to the contention for the "cache buffers chains" latch to access blocks in the database buffer cache. So just because it is only 5(3) LIOs, that does not make it OK.

If your application is using SYS.DUAL "like there is no tomorrow", the cache buffers chains latch becomes your single point of contention. This is true, even if you have _DB_BLOCK_HASH_BUCKETS set to a value higher than its default.

As Cary has mentioned many times before, the problem here is "application serialization". For more on this subject, please read Cary's papers "Why a 99%+ buffer cache hit ratio is NOT Ok" on
http://www.hotsos.com/catalog and a recent paper at IOUG-A Live 2002 which talks about some common "Misunderstandings about Oracle Internals".

Best regards,

Gaja


Gaja Krishna Vaidyanatha
Director, Storage Management Products,
Quest Software, Inc.
Co-author - Oracle Performance Tuning 101 http://www.osborne.com/database_erp/0072131454/0072131454.shtml

Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Gaja Krishna Vaidyanatha
  INET: oraperfman_at_yahoo.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: James McCann
  INET: james_at_openet-telecom.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 Wed Apr 24 2002 - 11:18:32 CDT

Original text of this message

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