Oracle数据误删除的恢复操作

flashbackup 闪回操作:

1. 打开表的闪回功能:

alter table dw_stg.fm_user_play_d enable row movement;

2. 查询要闪回的表的记录信息

select * from flashback_transaction_query where table_name='FM_USER_PLAY_D';

记录这里的时间很重要,这里包含该表的所有提交记录,所以一定要确认好时间。

3. 根据时间执行恢复记录操作:

flashback table DW_STG.FM_USER_PLAY_D to timestamp to_timestamp('2017/10/30 15:34:24','yyyy-mm-dd hh24:mi:ss');

4. 关闭表的闪回功能

alter table dw_stg.fm_user_play_d disable row movement;

原文地址:https://www.cnblogs.com/30go/p/7755048.html