oracle数据回滚

来源:互联网 发布:岳不群令狐知乎 编辑:程序博客网 时间:2024/04/28 20:32

当我们修改了表的数据并且提交了事务后,想回滚数据怎么办?

先根据SQL执行历史确定数据回滚时间点:

select sql_text,last_load_time from v$sql where sql_text like '%update%' order by last_load_time desc;
再将数据回滚到需要的时间点:
alter table tablename enable row movement;flashback table tablename to timestamp to_timestamp('xxxx-xx-xx xx:xx:xx', 'yyyy-mm-dd hh24:mi:ss');

0 0
原创粉丝点击