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 -> ORA_ROWSCN and ROWDEPENDENCIES

ORA_ROWSCN and ROWDEPENDENCIES

From: DA Morgan <damorgan_at_psoug.org>
Date: Wed, 17 Jan 2007 06:48:29 -0800
Message-ID: <1169045300.817421@bubbleator.drizzle.com>


Yesterday, I can't find it now, someone wrote that ROWDEPENDENCIES has a granularity of 3 seconds.

While that may have been true in the past ... it seems it another bit of advice that has outlived its usefulness.

In 10gR2 the following produces a unique SCN for each row.

CREATE TABLE t (
testcol NUMBER(10))
ROWDEPENDENCIES; BEGIN
   FOR i IN 1 .. 1000 LOOP
   INSERT INTO t VALUES (i);
   COMMIT;
   user_lock.sleep(0.1);
   END LOOP;
END;
/

SELECT ora_rowscn, testcol
FROM t
ORDER BY 2;

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Wed Jan 17 2007 - 08:48:29 CST

Original text of this message

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