首页 > Linux操作系统 > Linux操作系统 > 10g里的ora_rowscn
转载
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是基于行的变化生成的。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/165278/viewspace-440726/ ,如需转载,请注明出处,否则将追究法律责任。