首页 > 数据库技术 > 详细

oracle数据库误删恢复方法

时间:2014-11-27 18:13:35      阅读:279      评论:0      收藏:0      [点我收藏+]

一.如果只是误删部分数据或者某条数据可以通过

1、select * from 误删除的表明 as of timestamp to_Date(‘恢复年月日  时分秒‘, ‘恢复时间格式‘)       where  查询条件;      

如:select * from emp as of timestamp to_Date(‘2014-11-27 16:20:00‘, ‘yyyy-mm-dd hh24:mi:ss‘)  where ename=‘scott‘           //查询到误删除的数据

2、将查询出来的数据导出,在导入表中;

二.如果误删全部数据;

1、insert into 误删的表明  select * from 误删的表明 as of timestamp to_Date(‘2014-11-27 16:28:00‘, ‘yyyy-mm-dd hh24:mi:ss‘) where  查询条件;            //已将误删除数据插入表中 

oracle数据库误删恢复方法

原文:http://www.cnblogs.com/ljs05/p/4126844.html

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