转载
SQL> select ora_rowscn from tt;
ORA_ROWSCN
----------
2261349
SQL> commit;
提交完成。
SQL> select ora_rowscn from tt;
ORA_ROWSCN
----------
2261361
SQL> select ora_rowscn from tt;
ORA_ROWSCN
----------
2261361
2261361
SQL> commit;
提交完成。
事务完成后ora_rowscn发生变化
SQL> select ora_rowscn from tt;
ORA_ROWSCN
----------
2261428
2261428
SQL> create table ttt (id number) rowdependencies
2 ;
表已创建。
SQL> insert into ttt values (1);
已创建 1 行。
SQL> select ora_rowscn from ttt;
ORA_ROWSCN
----------
SQL> commit;
提交完成。
事务递交后,可以查询到ora_rowscn
SQL> select ora_rowscn from ttt;
ORA_ROWSCN
----------
2261501
SQL> insert into ttt values(2);
已创建 1 行。
SQL> select ora_rowscn from ttt;
ORA_ROWSCN
----------
2261501
SQL> commit;
提交完成。
SQL> select ora_rowscn from ttt;
ORA_ROWSCN
----------
2261501
2261601
2条记录的ora_rowscn并不一样,说明scn是基于行的变化生成的。
SCN_TO_TIMESTAMP(ORA_ROWSCN)
------------------------------------------------------------
16-11月-06 03.53.48.000000000 下午
16-11月-06 03.56.27.000000000 下午
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/165278/viewspace-440726/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/165278/viewspace-440726/