oracle数据回滚
发布时间:2020-12-12 16:13:19 所属栏目:百科 来源:网络整理
导读:当我们修改了表的数据并且提交了事务后,想回滚数据怎么办? 先根据SQL执行历史确定数据回滚时间点: select sql_text,last_load_time from v$sql where sql_text like '%update%' order by last_load_time desc; 再将数据回滚到需要的时间点: alter table
当我们修改了表的数据并且提交了事务后,想回滚数据怎么办? 先根据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'); (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |