- 一、
执行如下SQL将test_temp表中的数据恢复到 2014 05 28 11:00:00
注意,这里一定要先删除全部数据,否则可能会导致数据重复
delete from 表名;
insert into 表名 select *
from 表名 as of timestamp to_timestamp('2014-05-28 11:00:00','yyyy-mm-dd hh24:mi:ss')commit;
- 二、 select timestamp_to_scn(to_timestamp('2014-05-27 11:00:00','YYYY-MM-DD HH:MI:SS')) from dual; 或select * from sys.smon_scn_time order by time_dp desc;得到结果 71547785 然后 insert into test_tmp select * from test_tmp AS OF SCN 71547785