flashback 闪回数据之 timestamp

一、误删除表

delete from oa.test_0504

commit;

二、往前推大概删除时间,查询是否有对应数据

select count(1) from oa.test_0504 as of timestamp  to_date('20171121 14:45:00','yyyymmdd hh24:mi:ss') ;

三、create 一张临时表,根据查询结果

create table oa.test_0504_test tablespace oa_data as
select * from oa.test_0504 as of timestamp to_date('20171121 14:45:00','yyyymmdd hh24:mi:ss') ;

 四、根据历史表的数据,insert into 到源表

insert into oa.test_0504   select * from oa.test_0504_test;

五、验证数据

posted @ 2018-06-19 14:42  钱若梨花落  阅读(383)  评论(0编辑  收藏  举报