oracle表回滚到指定时间

语句如下:

alter table 表名 enable row movement;
flashback table 表名 to timestamp to_timestamp('2011-03-04 05:00:00','yyyy-mm-dd HH24:MI:SS');
(或者 flashback table 表名 to timestamp to_date('2011-03-04 05:00:00','yyyy-mm-dd HH24:MI:SS');)

时间为需要恢复到的时间节点

例子:

alter table USER enable row movement; 
flashback table USER  to timestamp to_date('2015-07-30 12:55:48','yyyy-mm-dd hh24:mi:ss');

 

猜你喜欢

转载自zhangchunxiao.iteye.com/blog/2262527