【Oracle】数据库对误删除数据的恢复

xiaoxiao2022-06-12  32

Oracle数据库对数据的恢复

一、还原某张表到某个时间点

flashback table [Table] to timestamp to_date('2017-12-21 10:02:55','YYYY-MM-DD HH24:MI:SS'); --出现异常则先授权 alter table [Table] enable row movement;

二、在Oracle的快照内存里记录着所有的增删改查动态

1、将其查出来

select r.FIRST_LOAD_TIME,r.* from v$sqlarea r order by r.FIRST_LOAD_TIME desc ;

2、 找到你操作的某个时间段数据还存在的地方,执行

select * from [table] as of timestamp to_timestamp('2010-06-02 11:36:53','yyyy-mm-dd hh24:mi:ss');
转载请注明原文地址: https://www.6miu.com/read-4932233.html

最新回复(0)