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: Khedr, Waleed <Waleed.Khedr_at_FMR.COM>
Date: Mon, 22 Apr 2002 06:43:23 -0800
Message-ID: <F001.0044ADF7.20020422064323@fatcity.com>


 If you are using PL/sql then try to reference the sequence next value in the update/insert statement itself. Aso the update/insert can return the value of the sequence to a PL/SQL memory variable.

regards,

Waleed

-----Original Message-----
To: Multiple recipients of list ORACLE-L Sent: 4/21/02 1:23 PM

I did two statspack snapshots, one hour and forty minutes apart. Then I generated a report and loaded it into oraperf.com. In the report I saw that the two SQL statements that where executed the most
times where:

Select xxxx.currval from dual;

Select xxxx.nextval from dual;.

Each one was executed about 90,000 times with 5 buffer gets per execution.
The net result was about 950,000 buffer get for nextval and currval.

My question is:
Why should there be about 5 buffer gets per execution?

Yechiel Adar
Mehish
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Yechiel Adar
  INET: adaryechiel_at_hotmail.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: Khedr, Waleed
  INET: Waleed.Khedr_at_FMR.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 Mon Apr 22 2002 - 09:43:23 CDT

Original text of this message

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