scn 和时间的对应关系

--查询当前scn
select current_scn from v$database;
select dbms_flashback.get_system_change_number scn from dual;

--scn 转换成时间
select scn_to_timestamp(49733520950) scn from dual;

--时间转化成scn
select timestamp_to_scn(to_timestamp('2014-11-10 18:19:20.123456789','YYYY-MM-DD HH24:MI:SS.FF')) scn from dual; 

--scn和时间的对应关系
select scn,to_char(time_dp,'yyyy-mm-dd hh24:mi:ss') time from sys.smon_scn_time where rownum<10 order by 1,2;

猜你喜欢

转载自blog.csdn.net/yaoshixian/article/details/85292296
SCN
今日推荐