REUSE_DUMPFILES:
By default REUSE_DUMPFILES=NO Data Pump Export will return an error if you specify a dump file name that already exists.
REUSE_DUMPFILES=YES it will allows you to override that behavior and reuse a dump file name.
[oracle@prod101:dpdump source] ls -ltr
total 10040
-rw-r—–. 1 oracle oinstall 10272768 Aug 17 12:32 sample.dmp
-rw-r–r–. 1 oracle oinstall 1500 Aug 17 12:32 sample.log
[oracle@prod101:dpdump source] expdp system/manager directory=DATA_PUMP_DIR dumpfile=sample.dmp logfile=sample.log schemas=sample REUSE_DUMPFILES=yes
Export: Release 18.0.0.0.0 - Production on Fri Aug 17 12:31:05 2018
Version 18.3.0.0.0
Copyright (c) 1982, 2018, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** directory=DATA_PUMP_DIR dumpfile=sample.dmp logfile=sample.log schemas=sample REUSE_DUMPFILES=yes
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
. . exported "SAMPLE"."DEMO" 20.71 KB 38 rows
. . exported "SAMPLE"."DEMO1" 872.4 KB 99901 rows
. . exported "SAMPLE"."DEMO2" 8.568 MB 999901 rows
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
/u01/app/oracle/admin/source/dpdump/sample.dmp
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at Fri Aug 17 12:32:41 2018 elapsed 0 00:01:35
Catch Me On:- Hariprasath Rajaram
Telegram:https://t.me/joinchat/I_f4DhGF_Zifr9YZvvMkRg
LinkedIn:https://www.linkedin.com/in/hari-prasath-aa65bb19/
Facebook:https://www.facebook.com/HariPrasathdba
FB Group:https://www.facebook.com/groups/894402327369506/
FB Page: https://www.facebook.com/dbahariprasath/?
Twitter: https://twitter.com/hariprasathdba