plsql误操作表的恢复

数据恢复:

--允许行移动

alter table ut enable row movement;

--误操作之前的时间(查询指定时刻的数据)

select * from ut as of timestamp to_timestamp('2018-03-14 09:30:00','yyyy-mm-dd hh24:mi:ss');

--闪回恢复数据

flashback table ut to timestamp to_timestamp('2018-03-14 09:30:00','yyyy-mm-dd hh24:mi:ss');
误删表恢复: 

不知道表名:

--查看删除的表(根据时间)
select * from user_recyclebin where DROPTIME >'2018-03-14 10:00:00';

这里写图片描述

flashback Table "BIN$URK4OCBqTwqBwCa25Sw3pQ==$0" to before drop

猜你喜欢

转载自blog.csdn.net/FORLOVEHUAN/article/details/79550254