17,377
社区成员
发帖
与我相关
我的任务
分享
SQL> select dbms_flashback.get_system_change_number scn from dual;
SCN
----------
9.4586E+12
SQL> ! oerr ora 08181
08181, 00000, "specified number is not a valid system change number"
// *Cause: supplied scn was beyond the bounds of a valid scn.
// *Action: use a valid scn.
SQL> select scn_to_timestamp(9.4586E+12) from dual;
select scn_to_timestamp(9.4586E+12) 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
SQL> select scn_to_timestamp(dbms_flashback.get_system_change_number) from dual;
SCN_TO_TIMESTAMP(DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER)
---------------------------------------------------------------------------
21-OCT-09 10.13.25.000000000 AM
select to_char(dbms_flashback.get_system_change_number ) scn from dual;
[Quote=引用楼主 csucxcc 的回复:]