Oracle数据回滚
今天差一点删库跑路 还好有一个回滚 吓死
1. 查询某个时间点的数据
select * from table as of timestamp to_timestamp('2019-12-24 00:00:00', 'yyyy-mm-dd hh24:mi:ss');
2. 开启数据闪回
alter table table(此为表名) enable row movement;
3.将数据闪回到某个时间点
flashback table table(此为表名) to timestamp TO_TIMESTAMP('2019-12-24 00:00:00', 'yyyy-mm-dd hh24:mi:ss');
4.关闭数据回滚
alter table table disable row movement

浙公网安备 33010602011771号