Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Currval and buffer gets
For this script I get following results on 8161 on DGUX
SQL> @1
run time using view x_$dual in centiseconds=1400
run time using table dual in centiseconds=2600
centiseconds=900.000000000000000000000000000000000003
----------------------
dummy := SYSDATE;
END LOOP;
END;
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ----------
Misses in library cache during parse: 0
Optimizer goal: RULE
Parsing user id: SYS
SELECT SYSDATE
FROM
SYS.DUAL
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ----------
Misses in library cache during parse: 0
Optimizer goal: RULE
Parsing user id: SYS (recursive depth: 1)
DECLARE
dummy date;
BEGIN
FOR i IN 1..100000 LOOP
dummy := SYSDATE;
END LOOP;
END;
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ----------
This is not even when using x_$dual.
HTH
Raj
QOTD: Any clod can have facts, but having an opinion is an art!
-----Original Message-----
Sent: Tuesday, April 23, 2002 9:23 PM
To: Multiple recipients of list ORACLE-L
Thanks for the test.
I ran this test to compare the performance difference dealing with dual and x$dual:
declare
nn number;
ss1 date;
ss2 date;
begin
ss1 := sysdate;
for i in 1..100000 loop
select 2 into nn from sys.x_$dual;
end loop;
ss2 := sysdate;
dbms_output.put_line('run time using view x_$dual in centiseconds='||(ss2 -
ss1 ) * 24 * 60 * 60 * 100);
--- ss1 := sysdate; for i in 1..100000 loop select 2 into nn from dual; end loop; ss2 := sysdate; dbms_output.put_line('run time using table dual in centiseconds='||(ss2 - ss1 ) * 24 * 60 * 60 * 100); end;Received on Wed Apr 24 2002 - 08:38:35 CDT-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jamadagni, Rajendra INET: Rajendra.Jamadagni_at_espn.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).
- text/plain attachment: ESPN_Disclaimer.txt
![]() |
![]() |