Sql代碼
--獲取當前的SCN
復制代碼 代碼如下:
select dbms_flashback.get_system_change_number scn1,
timestamp_to_scn(sysdate) scn2 from dual;
復制代碼 代碼如下:
select to_char(scn_to_timestamp(34607271), 'yyyy-mm-dd hh24:mi:ss') chr,
timestamp_to_scn(scn_to_timestamp(34607271)) dt
from dual;
復制代碼 代碼如下:
select scn_to_timestamp(8907349093953) scn from dual;
select scn_to_timestamp(8907349093953) scn from dual
*
ERROR at line 1:
ORA-08181: specified number is not a valid system change number
ORA-06512: at "SYS.SCN_TO_TIMESTAMP", line 1
ORA-06512: at line 1
新聞熱點
疑難解答