Oracle剔除更新数据需恢复
Oracle删除更新数据需恢复!
今天出现update了一整张表,需要恢复之前原始数据。
Oracle数据恢复步骤如下:
--第一步 在v$sqlarea 这视图里面找到你操作那条SQL的时间 select r.FIRST_LOAD_TIME,r.* from v$sqlarea r order by r.FIRST_LOAD_TIME desc ;
--第二步:把当前操作时间点的所有数据,导到一张新的恢复表中 create table customer_reject_log_recove as select * from customer_reject_log as of timestamp to_timestamp('2014-08-29 10:13:13','yyyy-mm-dd hh24:mi:ss');
--第三步,同步数据到原表中 --备份原表数据 insert into customer_reject_log_back select * from customer_reject_log; --删除原表 delete from customer_reject_log; --把恢复表的数据迁移到原表中 insert into customer_reject_log select * from customer_reject_log_recove;
已经过测试,可恢复该表数据。