oracle数据库误删恢复方法

阳光穿透心脏的1/2处 2022-08-14 03:51 272阅读 0赞

041405283617635.gif

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

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 查询条件; //已将误删除数据插入表中

发表评论

表情:
评论列表 (有 0 条评论,272人围观)

还没有评论,来说两句吧...

相关阅读

    相关 恢复数据

    问题点: 比如,不小心使用 diskpark clean 删除了整个硬盘。   1.下载DiskGenius破解版。 DiskGenius4.9.6专业版注册版 [h