关于java:Oracle回滚表数据

2次阅读

共计 275 个字符,预计需要花费 1 分钟才能阅读完成。

工作中真是实际总结

1: 数据回滚到某一个时刻(貌似不能超过半个小时)
flashback table 表名 to timestamp to_timestamp(‘2020-10-09 14:00:00′,’yyyy-mm-dd hh24:mi:ss’)
回滚前可能会提醒没有行挪动的权限
先执行 alter table 表名字 enable row movement
2:查看之前某个时刻的数据(和回滚一样存在时效)
select * from 表名 as of timestamp to_timestatmp(‘2020-10-09 15:20:00′,’yyyy-mm-dd hh24:mi:ss’);

正文完
 0