美文网首页
恢复数据库

恢复数据库

作者: 烦远远 | 来源:发表于2019-04-04 00:33 被阅读0次

1、select * from V$SQL where SQL_TEXT like '%update MAP_OPTCBL_POINT_70 set shape%'--查出你需要恢复的时间点。

2、create table t_table_recove --新的表。as select * from MAP_OPTCBL_POINT_70 --你误操作的表。as of timestamp to_timestamp('2013-09-23 11:38:46','yyyy-mm-dd hh24:mi:ss');--时间点--得到你想要的数据。

3、delete  MAP_OPTCBL_POINT_70;--将原表的数据全部删除。

4、insert into MAP_OPTCBL_POINT_70 select * from t_table_recove;--恢复数据。

这样好像原来表中的索引会被干掉,记得重新添加。

相关文章

网友评论

      本文标题:恢复数据库

      本文链接:https://www.haomeiwen.com/subject/twrxiqtx.html