--备份数据
create table plan_tem_20150812 as (select * from z_fm_cashplan);
--查询操作错误的表的移动功能是否开启:enable为开启
select row_movement,t.* from user_tables t where table_name = 'Z_FM_CASHPLAN';
--执行开启移动功能
alter table tmpsh enable row movement;
select row_movement from user_tables where table_name = 'Z_FM_CASHPLAN';
--查询需要闪回的时间点数据
select * from z_fm_cashplan as of timestamp to_timestamp('2015-08-12 16:50:00', 'yyyy-mm-dd hh24:mi:ss');
--闪回到某个时间点
flashback table z_fm_cashplan to timestamp
to_timestamp('08/12/2015 16:50:00','mm/dd/yyyy hh24:mi:ss');
--关闭移动功能
alter table Z_FM_CASHPLAN disable row movement;
create table plan_tem_20150812 as (select * from z_fm_cashplan);
--查询操作错误的表的移动功能是否开启:enable为开启
select row_movement,t.* from user_tables t where table_name = 'Z_FM_CASHPLAN';
--执行开启移动功能
alter table tmpsh enable row movement;
select row_movement from user_tables where table_name = 'Z_FM_CASHPLAN';
--查询需要闪回的时间点数据
select * from z_fm_cashplan as of timestamp to_timestamp('2015-08-12 16:50:00', 'yyyy-mm-dd hh24:mi:ss');
--闪回到某个时间点
flashback table z_fm_cashplan to timestamp
to_timestamp('08/12/2015 16:50:00','mm/dd/yyyy hh24:mi:ss');
--关闭移动功能
alter table Z_FM_CASHPLAN disable row movement;