首页 > 数据库技术 > 详细

oracle 表数据恢复

时间:2014-12-30 19:04:47      阅读:245      评论:0      收藏:0      [点我收藏+]

对于表数据恢复,误删了表中数据时,一般不要再操作这个表了,按照下面的处理,即可把表中数据恢复过来。

场景:假设误删了表tabletest中的数据,则可用如下方法恢复表中数据

第一中方式:创建一个备份表,存放三小时前的数据

create table tabletest_2014bak nologging as 

select * from tabletest as of timestamp sysdate-21/24 where name != 'boat';

恢复3个小时前的数据

第二种方式:回复表tabletest中的数据到某一个时间点,这个时间点一定要前于当前时间

alter table tabletest enable row movement;

Flashback table tabletest to timestamp to_timestamp('2014-12-30 17:00:00','yyyy-mm-dd hh24:mi:ss');


 

 

oracle 表数据恢复

原文:http://blog.csdn.net/helloboat/article/details/42269413

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!