DB 2008. 12. 1. 17:31

ORACLE9I] EXPORT / IMPORT


EXPORT : DB에있는 데이타를 OS DUMP파일로 만들어주는 툴

IMPORT : OS DUMP파일을 DB에 넣어주는 툴

이것을 이용해서 DB의 내용을 다른 DB로 이관시킬수도 있으며 매우 활용도가 높음..
 

EXPORT

  : 1. 테이블 재구성 효과를 가진다.

    2. tablespace 변경

    3. DB간 데이타 전송용도

    4. 소유권 변경

    5. Backup 과 recovery 효과를 가진다.

 

IMPORT

  :

 

============================================================================================

*export 명령어

c:\ exp help=y  [도움말보는방법]

       exp userid='sys/oracle as sysdba' full=y file=c:\f200807031635.dmp   

       exp userid=scott/tiger@db1 tables=msg file=c:\remote.dmp

               -> full = y  db전체의 내용을 가져오는 명령어

 

*import 명령어

imp help=y

       imp userid='sys/oracle as sysdba' full=y file=c:\f200807031635.dmp   

               -> full = y  파일에 대한 전체에 대한 내용

       imp userid='sys/oracle as sysdba' fromuser=scott touser=scott tables='emp' file=c:\f200807031635.dmp

               -> scott계정의 emp테이블만 추출하여 import

       imp userid=scott/tiger full=y tables=msg file=c:\remote.dmp

       imp userid=scott/tiger@db1 full=y tables=msg file=c:\remote.dmp