Oracle单表复原,恢复单表被删的数据,紧急时候可以用。
时间格式,例:2023-04-24 12:00:00
select * from "表名" as of timestamp to_timestamp('恢复至的时间','yyyy-mm-dd hh24:mi:ss')
insert into "表名" (select * from "表名" as of timestamp to_timestamp('恢复至的时间','yyyy-mm-dd hh24:mi:ss'));
恢复被删的表
flashback table 原表名 to before drop
select object_name,original_name,type,droptime from user_recyclebin ORDER BY DROPTIME DESC;
flashback table "回收站中的表名" [to before drop rename to 新表名];