前幾天有一個朋友問我一個問題
Oracle
我們知道Oracle
但是注意current_scn還是有所不同的
[oracle@danaly ~]$ sqlplus
SQL*Plus: Release
Copyright (c)
Connected to:
Oracle Database
With the Partitioning
SQL> @scn
SQL> col current_scn for
SQL> select current_scn from v$database;
CURRENT_SCN
SQL> select dbms_flashback
CURRENT_SCN
SQL> select dbms_flashback
CURRENT_SCN
SQL> select current_scn from v$database;
CURRENT_SCN
SQL> select dbms_flashback
CURRENT_SCN
SQL> select dbms_flashback
CURRENT_SCN
SQL> select current_scn from v$database;
CURRENT_SCN
我們看到current_scn的查詢會直接導致SCN的增進
也就是說你不查詢就不知道current_scn的值
From:http://tw.wingwit.com/Article/program/Oracle/201311/18014.html