exp 명령
1. 옵션 보기
exp help=y
2. 백업
exp scott/tiger full=y file=full.dmp
exp scott/tiger tables=emp,dept query='"where rownum<=100"' file=table100row.dmp
exp userid=scott/tiger file='exp1.dmp' tables=tableName
imp 명령
1. 옵션 보기
imp help=y
2. 백업
imp scott/tiger full=y grants=y file=full.dmp
imp scott/tiger file='dump_file_name' fromuser=가져올DB_id touser=보낼DB_id
imp scott/tiger tables=tableName grants=y file='exp1.dmp'
임포트 시에 테이블스페이스 부족으로 에러가 날 경우 테이블스페이스를 늘여준다.
alter tablespace test
add datafile 'D:/Oracle/oradata/test02.dbf' size 10000k;
!! 주의 : CLOB 형태의 컬럼이 포함된 경우 테이블스페이스 명칭을 동일하게 맞춰야만 import가 가능하다.