抢救系列:用navicat不小心批量(增删改)了oracle的数据
这个是查询十五分钟前表得数据拉下来
select * from 表名 as of timestamp (systimestamp - interval ''15'' minute)
oracle的话有闪回功能
查询该时间段 这个表的状态
select * from 表名 as of timestamp to_timestamp('2019-05-24 13:00:00', 'yyyy-mm-dd hh24:mi:ss');
开启闪回
alter table 表名 enable row movement;
把表的状态闪回到这个时间段
flashback table 表名 to timestamp to_timestamp('2020-12-21 10:29:00','yyyy-mm-dd hh24:mi:ss');
用完记得关闭闪回
alter table 表名 disable row movement
原文链接:https://blog.csdn.net/Jhno99/article/details/110480259
本文介绍了如何在Navicat误操作后,利用Oracle的闪回功能恢复数据。步骤包括查询特定时间段的状态、启用行移动、回滚到指定时间点并最终关闭闪回。适合数据库管理员应急处理。
3495

被折叠的 条评论
为什么被折叠?



