1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
SQL> create table t(x number) rowdependencies
Table created.
SQL> select localtimestamp from dual
LOCALTIMESTAMP
---------------------
17:11:04.047596
1 row selected.
SQL> insert into t values(1)
1 row created.
SQL> commit
Commit complete.
SQL> host sleep 5
SQL> select localtimestamp from dual
LOCALTIMESTAMP
---------------------
17:11:09.849995
1 row selected.
SQL> insert into t values(2)
1 row created.
SQL> commit
Commit complete.
SQL> host sleep 5
SQL> select localtimestamp from dual
LOCALTIMESTAMP
---------------------
17:11:15.581322
1 row selected.
SQL> insert into t values(3)
1 row created.
SQL> commit
Commit complete.
SQL> host sleep 5
SQL> select x,scn_to_timestamp(ora_rowscn) from t
X SCN_TO_TIMESTAMP(ORA_
---------- ---------------------
1 17:11:03.000000
2 17:11:09.000000
3 17:11:15.000000
3 rows selected. |
Partager