alter table 表名 enable row movement;
flashback table 表名 to timestamp to_timestamp('2011-03-04 05:00:00','yyyy-mm-dd HH24:MI:SS');
时间为需要恢复到的时间节点
注意:表闪回可在直接在open状态下操作
scn查找某一点的SCN:select timestamp_to_scn(to_timestamp('2012-12-3010:36:14:477501','yyyy-mm-dd hh24:mi:ss:ff')) from dual;
获取当前的SCN:select systimestamp,timestamp_to_scn(sysdate) fromdual;
开始闪回:
flashback table table_name to scn scn_number;
报错error:
ORA-08189:cannot flashback the table because row movement is notenabled.(
ORA-08189:因为未启用行移动功能, 不能闪回表。)
解决办法:
altertable table_name enable row movement;
再执行,操作完成。