expdp (data pump export)À¯Æ¿¸®Æ¼

±âÁ¸ÀÇ exp À¯Æ¿¸®Æ¼´Â ´ëºÎºÐ Ŭ¶óÀÌ¾ðÆ® ÂÊ¿¡ ´ýÇÁ ÆÄÀÏÀ» ÀúÀåÇÏÁö¸¸, ÀÌÁ¦ ¿À¶óŬ 10gÀÇ expdp À¯Æ¿¸®Æ¼´Â ´ýÇÁ ÆÄÀÏÀ» ¼­¹öÂÊ¿¡ ÀúÀåÇÑ´Ù.

ƯÈ÷ log ÆÄÀÏÀÇ °æ¿ì¿¡´Â ±âº»ÀûÀ¸·Î DPUMP_DIR ÆÄ¶ó¹ÌÅÍ¿¡ ¼³Á¤µÈ À§Ä¡¿¡ ÀúÀåµÇ´Â °ÍÀÌ ±âº»ÀÌÁö¸¸, directory ÆÄ¶ó¹ÌÅ͸¦ »ç¿ëÇÏ¿© logÀÇ ÆÄÀÏ ÀúÀå À§Ä¡¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ´Ù.

data dump export °úÁ¤ÀÌ ÁøÇàÁß¿¡ Ctrl+C۸¦ ´©¸£¸é export °úÁ¤ÀÇ »óȲÀ» È®ÀÎÇÒ ¼ö ÀÖ´Â ¸ðµå·Î ÀüȯµÇ¸ç, À̶§ status ¸í·ÉÀ¸·Î export °úÁ¤À» ¸ð´ÏÅ͸µ ÇÒ ¼ö ÀÖ´Ù.
´Ù½Ã ¿ø·¡ export °úÁ¤À¸·Î µ¹¾Æ°¡·Á¸é continue_client ¸í·ÉÀ» ¼öÇàÇÏ¸é µÈ´Ù.

ÇöÀç ÁøÇàÇϰí ÀÖ´Â export °úÁ¤¿¡ ´ëÇÑ Á¤º¸´Â dba_datapump_jobs ºä¸¦ »ç¿ëÇÏ¿© È®ÀÎÇÒ ¼ö ÀÖÀ¸¸ç, ÀÌ´Â ±âº»ÀûÀ¸·Î ¾Æ¹«·± Á¤º¸µµ ÀúÀåµÇ¾î ÀÖÁö ¾ÊÁö¸¸, export ÁøÇà Áß¿¡ ÀÌ ºä¸¦ È®ÀÎÇϸé ÇöÀç ÁøÇà ÁßÀÌ export¿¡ ´ëÇÑ Á¤º¸¸¦ ¾Ë ¾Æ ³¾ ¼ö ÀÖ´Ù.

¡¼¿¹Á¦¡½
SQL> conn /as sysdba
Connected.
SQL> create  directory dirpump as '/export/home0/oracle/datapump_dir';

Directory created.

SQL> grant read,write on directory dirpump to jijoe;

Grant succeeded.

SQL> exit

$ mkdir /export/home0/oracle/datapump_dir
$ ls -l /export/home0/oracle
drwxr-xr-x   3 oracle   oinstall     512 Jan  7 10:20 app
drwxr-xr-x   2 oracle   oinstall     512 Feb 22 20:15 datapump_dir
$


$ expdp jijoe/password tables=test2 directory=dirpump dumpfile=exptest2.dmp job_name=test2_exo

Export: Release 10.1.0.3.0 - Production on Tuesday, 22 February, 2005 20:18

Copyright (c) 2003, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
Starting "JIJOE"."TEST2_EXO":  jijoe/******** tables=test2 directory=dirpump dumpfile=exptest2.dmp job_name=test2_exo 
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TBL_TABLE_DATA/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "JIJOE"."TEST2"                             5.281 KB       4 rows
Master table "JIJOE"."TEST2_EXO" successfully loaded/unloaded
******************************************************************************
Dump file set for JIJOE.TEST2_EXO is:
  /export/home0/oracle/datapump_dir/exptest2.dmp
Job "JIJOE"."TEST2_EXO" successfully completed at 20:18
$ ls -lrt /export/home0/oracle/datapump_dir -rw-r----- 1 oracle oinstall 77824 Feb 22 20:18 exptest2.dmp -rw-r--r-- 1 oracle oinstall 1036 Feb 22 20:18 export.log $ expdp¿¡¼­ »ç¿ëµÈ º¯¼ö´Â ´ÙÀ½°ú °°Àº ÀǹÌÀÌ´Ù.
expdpµ¥ÀÌÅÍ ÆßÇÁ export À¯Æ¿¸®Æ¼¸¦ ½ÃÀÛÇÏ´Â ¸í·É¾î
jijoe/password»ç¿ëÀÚ ID¿Í ¾ÏÈ£
tablesexportÇϰíÀÚÇÏ´Â Å×À̺í À̸§
directory´ýÇÁ ÆÄÀÏÀ» ÀúÀåÇÏ°ÔµÉ À§Ä¡
dumpfile´ýÇÁ ÆÄÀÏÀÇ À̸§
job_namedata pump export°úÁ¤À» ´ã´çÇÏ°ÔµÉ job À̸§
impdp Åø·Î data pump importÇÔ
¡¼¿¹Á¦¡½parallel·Î exportÇÏ´Â °æ¿ì
export °úÁ¤¿¡¼­ ¿©·¯ °³ÀÇ thread¸¦ »ç¿ëÇÏ¿© ºü¸¥ export¸¦ ¼öÇàÇϱâ À§Çؼ­ ´ÙÀ½°ú °°Àº ¿É¼ÇÀ» ³ÖÀ» ¼ö ÀÖ´Ù.
%U»ý¼ºµÇ¾îÁú ´ýÇÁ ÆÄÀÏÀÇ ÆÄÀÏ ÇüŸ¦ ¼³Á¤ÇÑ´Ù
01¹øÈ£ºÎÅÍ ½ÃÀ۵Ǿî Áõ°¡µÈ´Ù
parallel=#Àüü #°³ÀÇ thread¸¦ »ç¿ëÇϵµ·Ï ÁöÁ¤ÇÔ
$ sqlplus / as sysdba
 
SQL> create directory dirpump as '/export/home0/oraccle/datapump_dir';
                 
SQL> grant read,write on directory dirpump to jijoe;
 
Grant succeeded.
 
SQL> exit

$ mkdir /export/home0/oracle/datapump_dir
$ ls /export/home0/oracle/            
app           datapump_dir
 
$ ls -l /export/home0/oracle/datapump_dir
total 0
$ expdp jijoe/password tables=test2 directory=dirpump dumpfile=exptest2_%U.dmp parallel=3 job_name=test2_exp

Export: Release 10.1.0.3.0 - Production on Wednesday, 23 February, 2005 11:22
 
Copyright (c) 2003, Oracle.  All rights reserved.
 
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
Starting "JIJOE"."TEST2_EXP":  jijoe/******** tables=test2 directory=dirpump dumpfile=exptest2_%U.dmp parallel=3 job_name=test2_exp 
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TBL_TABLE_DATA/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
. . exported "JIJOE"."TEST2"                             5.281 KB       4 rows
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Master table "JIJOE"."TEST2_EXP" successfully loaded/unloaded
******************************************************************************
Dump file set for JIJOE.TEST2_EXP is:
  /export/home0/oracle/datapump_dir/exptest2_01.dmp
  /export/home0/oracle/datapump_dir/exptest2_02.dmp
  /export/home0/oracle/datapump_dir/exptest2_03.dmp
Job "JIJOE"."TEST2_EXP" successfully completed at 11:22
$ ls -l /export/home0/oracle/datapump_dir -rw-r--r-- 1 oracle oinstall 1159 Feb 23 11:22 export.log -rw-r----- 1 oracle oinstall 12288 Feb 23 11:22 exptest2_01.dmp -rw-r----- 1 oracle oinstall 8192 Feb 23 11:22 exptest2_02.dmp -rw-r----- 1 oracle oinstall 69632 Feb 23 11:22 exptest2_03.dmp $
¡¼¿¹Á¦¡½parallel·Î exportÇÑ °ÍÀ» importÇÏ´Â °æ¿ì $ sqlplus jijoe/password SQL> select * from tab; TNAME TABTYPE CLUSTERID ------------------------------ ------- ---------- TEST TABLE TEST2 TABLE SQL> drop table test2 purge; Table dropped. SQL> select * from tab; TNAME TABTYPE CLUSTERID ------------------------------ ------- ---------- TEST TABLE SQL> exit $ impdp jijoe/password directory=dirpump dumpfile=exptest2_%U.dmp job_name=test2_exp

Import: Release 10.1.0.3.0 - Production on Wednesday, 23 February, 2005 11:41
 
Copyright (c) 2003, Oracle.  All rights reserved.
 
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
Master table "JIJOE"."TEST_EXP" successfully loaded/unloaded
Starting "JIJOE"."TEST_EXP":  jijoe/******** directory=dirpump dumpfile=exptest2_%U.dmp job_name=test_exp 
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/TBL_TABLE_DATA/TABLE/TABLE_DATA
. . imported "JIJOE"."TEST2"                             5.281 KB       4 rows
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Job "JIJOE"."TEST_EXP" successfully completed at 11:42
$ sqlplus jijoe/password SQL> select * from test2; ID NAME ---------- -------------------- 4444 Áö¸®»ê 1111 ¹éµÎ»ê 2222 ÇѶó»ê 3333 ±Ý°­»ê SQL>