참조 : http://blog.naver.com/tyboss/70033321734
1. Export(내보내기)
- 전체 데이터베이스 내보내기
::exp userid=id/pass file='C:/full.dmp' full=y
- 여러 서비스가 존재할 경우. 서비스명 명시
::exp userid=id/pass@서비스명 file='C:/full.dmp' full=y
- User별로 내보내기.
:: exp userid=scott/tiger file='c:/scott.dmp"
- SYSTEM/MANAGER로 접속한 DBA가 여러 user소유의 오브젝트를 내보내기.
::exp userid=system/manager owner=scott file='C:/scott.dmp'
- system user로 다른 유저의 table 몇 개만 내보내기
::exp userid=system/manager file='c:/exp.dmp' tables=(scott.EMP, scott.DEPT)
- scott user로 table 몇 개만 내보내기
::exp userid=scott/tiger file='C:/exp.dmp' tables=(EMP, DEPT) log=exp.log
exp 추가 옵션.
full=y : 전체 데이터 추출 여부 결정
direct : 직접경로 방식으로 내보내기
indexs: 인덱스 포함 여부
triggers : 트리거 포함여부
rows=n : 오브젝트에 대한 정의만 export (테이블의 저장된 데이터는 export 제외)buffer : 작업 단위 크기 설정compress : 익스텐트 통합여부 지정(기본값 y)grants : 오브젝트 권한 설정에 대한 정보 추출 여부(기본값 y)log : 로그를 저장할 파일 지정row : 테이블의 데이터 추출 여부(기본값 y)consistents : 대상 테이블의 읽기 일관성 지정(기본값 n)prfile : 필요한 옵션을 파라미터 파일에 설정한 후 해당 파라미터 파일을 export 시 적용query : 쿼리 조건에 맞는 데이터만 적용 ex) query=\"where id\=100\"
- 특정 테이블의 특정 부분만 내보내기
:: exp userid/pass tables=tablename query="where query" file='c:\dump.dmp'
= >>> exp scott/tiger tables=numbers query='where num>10 and num < 100' file='c:\dumpfile\numbers.dmp'
: scott 유저로 접속해서 numbers 테이블에서 num이 10보다 크고 100보다 작은 데이터를 c:\dumpfile\numbers.dmp로 내보내라~~~~~
[출처] 오라클 export import 백업 복구 exp imp|작성자 마루아라
'Database > Oracle' 카테고리의 다른 글
[Oracle] 값의 변화 부분을 확인하는 쿼리. (0) | 2022.06.13 |
---|---|
[Oracle] 테이블별 사용량 조회 (0) | 2022.06.07 |
[Oracle] 테이블별 레코드 수 확인하기 (0) | 2022.06.07 |
[Oracle] 테이블별 사이즈 확인하기 (0) | 2022.06.07 |
[Oracle] Windows 7(64bit)에 Oracle 11g 64bit 설치 및 설정 (0) | 2011.10.14 |
댓글