When there is not enough free space on the regular filesystem, you can do the export and impor to ASM diskgroup.
First, you need to create directory on the ASM diskgroup for the export and another on the regular filesystem for the logfile.
ASM:
[grid@crd-ams-pro-dwh1 ~]$ asmcmd ASMCMD> ls DATA/ RECO/ ASMCMD> cd DATA ASMCMD> mkdir EXPORT ASMCMD> cd EXPORT ASMCMD> pwd +DATA/EXPORT
FS:
cd /u01/app/oracle mkdir explog cd explog/ # pwd /u01/app/oracle/explog
Next, we need to create both directories in database:
create directory tempex as '+DATA/EXPORT'; grant read, write on directory tempex to system; create directory templog as '/u01/app/oracle/explog'; grant read, write on directory templog to system;
Now, we can run the export:
# expdp system@instancename dumpfile=exp_prod.dmp directory=tempex logfile=templog:exp_prod.log schemas=XXXX_XXXX flashback_scn=350313952566
Export: Release 19.0.0.0.0 - Production on Sun Feb 11 21:06:20 2024
Version 19.21.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/********@instancename dumpfile=exp_prod.dmp directory=tempex logfile=templog:exp_prod.log schemas=XXXX_XXXX flashback_scn=350313952566
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/SYSTEM_GRANT
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/PASSWORD_HISTORY
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
xxx
xxx
xxx
ORA-39173: Encrypted data has been stored unencrypted in dump file set.
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
+DATA/export/exp_prod.dmp
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at Sun Feb 11 21:20:40 2024 elapsed 0 00:14:03
Now, the import from the ASM:
# impdp system@instancename dumpfile=exp_prod.dmp directory=tempex logfile=templog:imp_prod.log schemas=XXX_XXX Import: Release 19.0.0.0.0 - Production on Sun Feb 11 21:30:17 2024 Version 19.21.0.0.0 Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved. Password: Connected to: Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production Master table "SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded Starting "SYSTEM"."SYS_IMPORT_SCHEMA_01": system/********@instancename dumpfile=exp_prod.dmp directory=tempex logfile=templog:imp_prod.log schemas=XXXX_XXXX Processing object type SCHEMA_EXPORT/USER Processing object type SCHEMA_EXPORT/SYSTEM_GRANT 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/PASSWORD_HISTORY Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA Processing object type SCHEMA_EXPORT/TABLE/TABLE Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA xxx xxx xxx Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT Processing object type SCHEMA_EXPORT/TABLE/COMMENT Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS Processing object type SCHEMA_EXPORT/STATISTICS/MARKER Job "SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully completed at Sun Feb 11 22:11:50 2024 elapsed 0 00:40:52
