Oracle 修改数据库表数据提交之后进行回滚

--查看历史数据
select * from test1 as of timestamp to_timestamp('2018-12-23 14:41:00', 'yyyy-mm-dd hh24:mi:ss');
--开启可移动数据命令
alter table test1 enable row movement;
--查看flashback功能是否开启 为no表示未开启
select open_mode,log_mode,flashback_on from v$database;
--正式回滚数据
flashback table test1 to timestamp to_tomestamp('2018-12-23 14:41:00','yyyy-mm-dd hh24:mi:ss');

猜你喜欢

转载自www.cnblogs.com/niwotaxuexiba/p/10164338.html