欢迎投稿

今日深度:

Oracle数据修改提交后回滚数据到指定时间的操作

Oracle数据修改提交后回滚数据到指定时间的操作步骤,oracle提交后


1、-- 查询在xxxx-xx-xx xx:xx:xx执行update 语句之前的数据

select * from 表名 as of timestamp to_timestamp('xxxx-xx-xx xx:xx:xx', 'yyyy-mm-dd hh24:mi:ss');

2、-- 开启可移动数据命令,执行完就可以回滚数据

alter table 表名 enable row movement;

3、--正式回滚xxxx-xx-xx xx:xx:xx执行update 语句前的数据

flashback table 表名 to timestamp TO_TIMESTAMP('xxxx-xx-xx xx:xx:xx'', 'yyyy-mm-dd hh24:mi:ss');

www.htsjk.Com true http://www.htsjk.com/oracle/24571.html NewsArticle Oracle数据修改提交后回滚数据到指定时间的操作步骤,oracle提交后 1、-- 查询在xxxx-xx-xx xx:xx:xx执行update 语句之前的数据 select * from 表名 as of timestamp to_timestamp(xxxx-xx-xx xx:xx:xx, yyyy-mm-dd...
评论暂时关闭