1.查看删除前系统是时间点
alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
select sysdate from dual;
2.删除数据
drop TABLE FIXF.fixf_svr_szh;
truncate TABLE FIXF.fixf_svr_szhjymx;
3.经行恢复
完整语句
注意多个表恢复和恢复时重命名可用逗号隔开
recover table fx.fxtbs
until time "to_date('2018-05-20 15:53:29','yyyy-mm-dd hh24:mi:ss')"
auxiliary destination '/u01/tsbak'
remap table fx.fxtbs:fx.fstbs_new
datapump destination '/tmp'
dumpfile 'exp.dat'
notableimport;
实际使用语句
recover table FIXF.fixf_svr_szh
until time "to_date('2019-09-23 02:59:42','yyyy-mm-dd hh24:mi:ss')"
auxiliary destination '/opt/oracle/recover'
pdb还原需要加 of pluggable database
alter session set container=fixf;
recover table fx.fxtbs of pluggable database fixf
until time "to_date('2018-05-20 15:53:29','yyyy-mm-dd hh24:mi:ss')"
auxiliary destination '/u01/tsbak'
remap table fx.fxtbs:fx.fstbs_new
datapump destination '/tmp'
dumpfile 'exp.dat'
notableimport;