To Take Export Of A Table To Multiple Directories In Oracle
Now you can see the dump file has been created in multiple directories.
oracle configurationintermediate
by OracleDba
13 views
Now you can see the dump file has been created in multiple directories.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
SQL> create directory DIR as '/home/oracle/DIR1';
Directory created.
SQL> create directory DIR2 as '/home/oracle/DIR2';
Directory created.
SQL> grant all on directory DIR1 to public;
Grant succeeded.
SQL> grant all on directory DIR2 to public;
Grant succeeded.
mkdir -p /home/oracle/DIR1
mkdir -p /home/oracle/DIR2
[oracle@test ~]$ expdp \'sys/Oracle1234@pdbtest as sysdba\' tables=testuser.abc directory=dir parallel=2 dumpfile=dir:test_%U.dmp, dir2:test_%U.dmp logfile=testtable1.log
Export: Release 19.0.0.0.0 - Production on Sat Jul 9 18:12:34 2022
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Starting "SYS"."SYS_EXPORT_TABLE_01": "sys/****@pdbtest AS SYSDBA" tables=testuser.abc directory=dir parallel=2 dumpfile=dir:test_%U.dmp, dir2:test_%U.dmp logfile=testtable1.log
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER
Processing object type TABLE_EXPORT/TABLE/TABLE
. . exported "TESTUSER"."ABC" 5.585 KB 6 rows
Master table "SYS"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
**************************
Dump file set for SYS.SYS_EXPORT_TABLE_01 is:
/home/oracle/dir1/test_01.dmp
Job "SYS"."SYS_EXPORT_TABLE_01" successfully completed at Sat Jul 9 18:13:13 2022 elapsed 0 00:00:38
[oracle@test ~]$
[oracle@test ~]$ impdp \'sys/Oracle1234@pdbtest as sysdba\' tables=testuser.abc directory=dir parallel=2 dumpfile=dir:test_%U.dmp, dir2:test_%U.dmp logfile=testtable1.log table_exists_action=REPLACE
Import: Release 19.0.0.0.0 - Production on Sat Jul 9 18:30:58 2022
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Master table "SYS"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
Starting "SYS"."SYS_IMPORT_TABLE_01": "sys/****@pdbtest AS SYSDBA" tables=testuser.abc directory=dir parallel=2 dumpfile=dir:test_%U.dmp, dir2:test_%U.dmp logfile=testtable1.log table_exists_action=REPLACE
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
. . imported "TESTUSER"."ABC" 5.585 KB 6 rows
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER
Job "SYS"."SYS_IMPORT_TABLE_01" successfully completed at Sat Jul 9 18:32:05 2022 elapsed 0 00:01:01
[oracle@test ~]$Please to add comments
No comments yet. Be the first to comment!