简单总结和记录下oracle误删除数据的恢复,对于可恢复误删除的时间长短无进一步验证。 1、select * from 表名 as of timestamp to_timestamp('2021-08-10 15:22:00', 'yyyy-mm-dd hh24:mi:ss'); //查询某个时间节点的数据
2、alter table 表名 enable row movement; //在flashback中使用,当需要使用flashback table功能时,需要首先打开row mvoement的选项,否则使用该功能也会报错
3、flashback table 表名 to timestamp TO_TIMESTAMP('2021-08-10 15:22:00', 'yyyy-mm-dd hh24:mi:ss'); //恢复数据
4、alter table 表名 disable row movement; //关闭row mvoement的选项
|