1. °³¿ä
export
À¯Æ¿¸®Æ¼´Â ³í¸®Àû ¹é¾÷À» Á¦°øÇÏ´Â À¯Æ¿¸®Æ¼ ÀÔ´Ï´Ù. ³í¸®Àû ¹é¾÷À̶õ ¹°¸®ÀûÀÎ
µ¥ÀÌŸ ÆÄÀÏÀ» ¹é¾÷ ¹Þ´Â ´Ù´Â °³³äÀÌ ¾Æ´Ï°í µ¥ÀÌŸº£À̽º °´Ã¼, ½ºÅ°¸¶ °´Ã¼, Å×ÀÌºí½ºÆäÀ̽ºµî¿¡
´ëÇÑ ³í¸®ÀûÀÎ ¹é¾÷À» ÇÑ´Ù´Â ÀÇ¹Ì ÀÔ´Ï´Ù. µû¶ó¼ ½Ç¼ö·Î Å×À̺íÀ» »èÁ¦Çϰųª,
Å×À̺íÀÇ ³í¸®ÀûÀÎ ÈѼÕ, À߸øµÈ DML¹®¿¡ ´ëÇØ º¹±¸ÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù.
2. export ¸ðµå
table ¸ðµå
|
user
¸ðµå
|
tablespace
¸ðµå
|
full
database ¸ðµå
|
Å×À̺í
Á¤ÀÇ
|
Å×À̺í
Á¤ÀÇ
|
Å×À̺í
Á¤ÀÇ
|
Å×À̺í
Á¤ÀÇ
|
Å×À̺í
µ¥ÀÌŸ
|
Å×À̺í
µ¥ÀÌŸ
|
|
Å×À̺í
µ¥ÀÌŸ
|
¼ÒÀ¯ÀÚÀÇ
Å×ÀÌºí ±ÇÇÑ ºÎ¿©
|
¼ÒÀ¯ÀÚÀÇ
±ÇÇÑ ºÎ¿©
|
񀀥
ºÎ¿©
|
񀀥
ºÎ¿©
|
¼ÒÀ¯ÀÚÀÇ
Å×À̺í À妽º
|
¼ÒÀ¯ÀÚÀÇ
À妽º
|
À妽º
|
À妽º
|
Å×À̺í
Á¦¾à Á¶°Ç
|
Å×À̺í
Á¦¾à Á¶°Ç
|
Å×À̺í
Á¦¾à Á¶°Ç
|
Å×À̺í
Á¦¾à Á¶°Ç
|
|
|
Æ®¸®°Å
|
|
tablespace ¸ðµå
: À̵¿ °¡´ÉÇÑ Å×ÀÌºí½ºÆäÀ̽º¸¦ »ç¿ëÇÏ¿© ¿À¶óŬ µ¥ÀÌŸº£À̽ºÀÇ ÀϺθ¦ À̵¿ÇÏ¿©
´Ù¸¥ ¿À¶óŬ µ¥ÀÌ
Ÿº£À̽º¿¡
¿¬°áÇÔÀ¸·Î½á º»ÁúÀûÀ¸·Î´Â µ¥ÀÌŸº£À̽º°£¿¡ Å×ÀÌºí½ºÆäÀ̽º¸¦ À̵¿ÇÏ´Â ÀÛ¾÷À»
¼öÇà
ÇÒ
¼ö ÀÖ½À´Ï´Ù. µ¥ÀÌŸ ÆÄÀÏÀ» º¹»çÇÏ°í Å×ÀÌºí½ºÆäÀ̽ºÀÇ ±¸Á¶Á¤º¸¸¦ ÅëÇÕÇϱ⸸ Çϸé
Å×ÀÌºí½º
ÆäÀ̽º¸¦
À̵¿ÇÒ ¼ö ÀÖÀ¸¹Ç·Î À̵¿°¡´ÉÇÑ Å×ÀÌºí ½ºÆäÀ̽º¸¦ »ç¿ëÇÏ¿© µ¥ÀÌŸ¸¦ À̵¿ÇÏ´Â °ÍÀÌ
µ¿
ÀÏÇÑ
µ¥ÀÌŸ¿¡ ´ëÇØ import/export¸¦ ¼öÇàÇÏ´Â °Íº¸´Ù ºü¸¨´Ï´Ù.
3. ½ÇÇà
1)
´ëÈ½Ä ½ÇÇà¹æ½Ä
$
exp <ENTER>
Export:
Release 9.2.0.2.0 - Production on Tue Mar 23 14:22:00 2004
Copyright
(c) 1982, 2002, Oracle Corporation. All rights reserved.
Username:scott
<ENTER> oracle
Á¢¼Ó¿¡ ÇÊ¿äÇÑ userid¸¦ ÀÔ·Â
Password:tiger
<ENTER> oracle
Á¢¼Ó¿¡ ÇÊ¿äÇÑ password¸¦ ÀÔ·Â
Connected
to: Oracle9i Enterprise Edition Release 9.2.0.2.0 - 64bit Production
With
the Partitioning, OLAP and Oracle Data Mining options
JServer
Release 9.2.0.2.0 - Production
Enter
array fetch buffer size: 4096 > <ENTER>
µ¥ÀÌŸ ¹öÆÛÀÇ Å©±â, ±×³É ¿£ÅÍÅ° ÀԷ½à µðÆúÆ®
°ª Àû¿ë
Export
file: expdat.dmp > asean.dmp <ENTER> ÀͽºÆ÷Æ®µ¥´Â ÆÄÀÏÀÇ
À§Ä¡
(2)U(sers),
or (3)T(ables): (2)U >3 <ENTER> ÀͽºÆ÷Æ®ÇÒ
´ë»óÀ» user´ÜÀ§·Î ÇÒ °ÍÀÎÁö, table·Î ÇÒ
°ÍÀÎÁö¸¦
°áÁ¤
Export
table data (yes/no): yes > <ENTER> µ¥ÀÌŸ¸¦
Æ÷ÇÔÇؼ ÀͽºÆ÷Æ® ÇÒ °ÍÀÎÁö¸¦ °áÁ¤
Compress
extents (yes/no): yes > <ENTER> ÇöÀç ¿ÀºêÁ§Æ®¿¡ ÇÒ´çµÈ ÀͽºÅÙÆ® ÀüºÎÀÇ Å©±â¿Í °°Àº
ÇϳªÀÇ Ãʱâ ÀͽºÅÙÆ®¸¦ »ý¼ºÇÏ´Â Äڵ带 ¸¸µå´Â
°Í
Export
done in UTF8 character set and AL16UTF16 NCHAR character set
server
uses AL32UTF8 character set (possible charset conversion)
About
to export specified tables via Conventional Path ...
Table(T)
or Partition(T:P) to be exported: (RETURN to quit) >emp
<ENTER> ÀͽºÆ÷Æ®ÇÒ Å×À̺í À̸§À» °áÁ¤
.
. exporting table TBL_HB_COMPANY
24443 rows exported
Table(T)
or Partition(T:P) to be exported: (RETURN to quit) > <ENTER>
Export
terminated successfully without warnings.
2)
¸í·ÉÇà ¸ðµå
-
table ´ÜÀ§ export ¿¹Á¦
$
exp scott/tiger file=business.dmp tables=tbl_hb_company, tbl_hb_catalog rows=y;
-
user ´ÜÀ§ export ¿¹Á¦
$
exp scott/tiger file=asean.dmp owner=scott;
-
tablespace ´ÜÀ§ export ¿¹Á¦
$
exp scott/tiger file=asean_ts.dmp TRANSPORT_TABLESPACE=y tablespace=ts_emp log=asean_ts.log;
-
database ´ÜÀ§ export ¿¹Á¦
$
exp system/manager file=asean_ful.dmp full=y;
full
¿É¼ÇÀ» »ç¿ëÇϱâ À§Çؼ´Â ±ÇÇÑ ÀÖ´Â »ç¿ëÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù.
* iWiz´Ô¿¡ ÀÇÇؼ °Ô½Ã¹° À̵¿µÇ¾ú½À´Ï´Ù (2010-02-03 17:06)
|