You are on page 1of 1

Case1: Truncate or Update or Delete data in Table.

Create export dump file in


specific time and later need to import.
RECOVER TABLE SCOTT.EMP
until time "to_date('2020-09-22 18:40:00','YYYY-MM-DD HH24:MI:SS')"
AUXILIARY DESTINATION '/u01/app/oracle/recover'
DATAPUMP DESTINATION '/u01/app/oracle/dumpfiles'
DUMP FILE 'emp_dept_exp_dump.dump'
NOTABLEIMPORT;

Case2: Truncate or Update or Delete data in Table. Table recover in specific time
with new Name.
RECOVER TABLE SCOTT.EMP
until time "to_date('2020-09-26 02:02:17','YYYY-MM-DD HH24:MI:SS')"
AUXILIARY DESTINATION '/u01/app/oracle/recover'
DATAPUMP DESTINATION '/u01/app/oracle/dumpfiles'
DUMP FILE 'emp_dept_exp_dump.dump'
REMAP TABLE 'SCOTT'.'EMP':'EMP1';

Case3: Drop table then recover the table.


RECOVER TABLE SCOTT.EMP
until time "to_date('2020-09-26 02:02:17','YYYY-MM-DD HH24:MI:SS')"
AUXILIARY DESTINATION '/u01/app/oracle/recover';

RECOVER TABLE SCOTT.EMP,SCOTT.DEPT


until time "to_date('2020-09-22 18:39:00','YYYY-MM-DD HH24:MI:SS')"
AUXILIARY DESTINATION '/u01/app/oracle/recover';

You might also like