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.
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');