Oracle Fast mistakenly deleted data recovery method

(1) delete accidentally deleted data:

We can be restored by constructing a consistent reading of the way, as long as the timely detection of accidental deletion of data, while the current undo block or revoke fast uncovered

create table quick_table as

select * from emp_temp as of timestamp (SYSTIMESTAMP - INTERVAL '60' MINUTE);

At this time quick_table data is contained in the table 60 minutes before, 60 here may be changed according to the actual situation.

(2) drop accidentally deleted tables:

Provided that we do not use drop table XX purge, delete the table, but to delete the drop table XX by the way, then we can:

flashback table XXX to before drop;

In order to carry out a quick recovery.

to sum up

The above methods have limitations, which requires us time to operate the database, you must be careful in their daily work, and make the appropriate backup, backup to ensure there every day, so be prepared.

Guess you like

Origin www.linuxidc.com/Linux/2019-09/160692.htm