oracle table accidentally deleted data, data recovery

oracle delete data accidentally deleted rollback

Disclaimer: This article is a blogger original article, follow the  CC 4.0 BY-SA  copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/u012665509/article/details/84822768

oracle database delete accidentally deleted, after commit submission, data recovery method:

1. The query data prior to the most recent update data

select * from tablename as of timestamp to_timestamp('2016-10-22 23:45:00', 'yyyy-mm-dd hh24:mi:ss');

 tablename: Table name, time means: accidentally deleted data before time

2. Flashback before the operation to enable row movement (not enabled can not flashback)

 

alter table tablename enable row movement;

 3. Start rollback, a rollback statement

 

flashback table tablename to timestamp to_timestamp('2016-10-22 23:45:00', 'yyyy-mm-dd hh24:mi:ss');

Guess you like

Origin www.cnblogs.com/MR-Guo/p/11693251.html