Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Oracle Bug?

Oracle Bug?

From: DA Morgan <damorgan_at_x.washington.edu>
Date: Fri, 22 Apr 2005 12:46:36 -0700
Message-ID: <1114198959.976503@yasure>


I am one of the slowest people on the planet, I hope, to scream bug but this makes no sense. Can anyone clarify this for me?

Oracle 10gR1 (10.1.0.4)

conn / as sysdba
GRANT execute ON dbms_flashback TO uwclass;

conn uwclass/uwclass

CREATE TABLE test (
reason VARCHAR2(20),
scnno NUMBER)
ROWDEPENDENCIES; CREATE OR REPLACE PROCEDURE atx IS
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
   INSERT INTO test VALUES ('ATX', dbms_flashback.get_system_change_number);    COMMIT;
END;
/

BEGIN

SELECT * FROM test;

BEGIN

SELECT * FROM test;

REASON                    SCNNO
-------------------- ----------
TX1                    17381335
ATX                    17381335
TX2                    17381336

Why is the record committed the PRAGMA AUTONOMOUX_TRANSACTION getting the same SCN as TX1 and why is TX1 not getting the same SCN as TX2? It just seems wrong.

Thanks for any comments.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Fri Apr 22 2005 - 14:46:36 CDT

Original text of this message

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