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
新闻热点
疑难解答