oracle数据回滚

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

先根据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');

你可能感兴趣的:(数据库)