oracle 闪电恢复 数据
上午不小心把系统的数据删掉了,知道oracle有快速恢复数据的功能,于是总结一下代码
--设定要恢复的时间戳返回的是6214635条数据 select timestamp_to_scn(to_timestamp('2011-06-22 09:00:00','YYYY-MM-DD HH:MI:SS')) from dual;--从6214635条数据当中查相应的表的数据 select * from s_organization AS OF SCN 6214635create table s_organization as select * from s_organization where 1=0;--可以使用下面的代码恢复insert into s_organization select * from s_organization AS OF SCN 6214635;