Contents
see List작성일 2016. 01. 21.
exp userid=system/manager owner=scott file='/data/exp/test03.dmp'
exp test/test file=exp.dmp log=exp.log
imp system/manager file=/data/exp/test03.dmp fromuser=scott touser=scott
imp test/test file=exp.dmp log=imp.log
10g 이후론
(sql에서) create or replace directory dp as 'c:\경로' ;
export
$ expdp system/oracle directory=dp dumpfile=test01.dmp full=y
$ expdp system/oracle directory=dp dumpfile=test01.dmp schemas=scott exclude=table:\"=\'EMP\'\"
$ expdp system/oracle directory=dp dumpfile=test02.dmp schemas=scott \
exclude=table:\"IN \(\'EMP\', \'DEPT\'\)\"
$ expdp system/oracle directory=dp dumpfile=test03.dmp schemas=scott \
exclude=index:\"\=\'idx_emp_ename\'\"
$ expdp system/oracle directory=dp dumpfile=test04.dmp schemas=scott \
query=emp:\"\'where sal \> 1000\'\"
$ expdp system/oracle directory=dp dumpfile=test_p_%U.dmp schemas=scott \
job_name=dp_t1 parallel=4
$ expdp system/oracle attach=dp_t1
$ expdp system/oracle directory=dp dumpfile=test01.dmp schemas=scott exclude=table:\"=\'EMP\'\"
$ expdp system/oracle directory=dp dumpfile=test02.dmp schemas=scott \
exclude=table:\"IN \(\'EMP\', \'DEPT\'\)\"
$ expdp system/oracle directory=dp dumpfile=test03.dmp schemas=scott \
exclude=index:\"\=\'idx_emp_ename\'\"
$ expdp system/oracle directory=dp dumpfile=test04.dmp schemas=scott \
query=emp:\"\'where sal \> 1000\'\"
$ expdp system/oracle directory=dp dumpfile=test_p_%U.dmp schemas=scott \
job_name=dp_t1 parallel=4
$ expdp system/oracle attach=dp_t1
import
$ impdp system/oracle dumpfile=test01.dmp table_exists_action=truncate schemas=scott
$ impdp system/oracle directory=dp dumpfile=test01.dmp table_exists_action=truncate schemas=scott
$ impdp system/oracle directory=dp dumpfile=test02.dmp schemas=scott \
remap_schema=scott:hr
$ impdp system/oracle directory=dp dumpfile=test02.dmp schemas=scott \
remap_tablespace='users':'example' table_exists_action=truncate
$ impdp system/oracle directory=dp dumpfile=test02.dmp schemas=scott \
remap_schema=scott:hr
$ impdp system/oracle directory=dp dumpfile=test02.dmp schemas=scott \
remap_tablespace='users':'example' table_exists_action=truncate
database
| No | 작성일 | Title |
|---|---|---|
| 365 | 2016. 07. 05. | [ mssql ] Atomikos XA SQLServerXADataSource |
| 364 | 2016. 06. 10. | [ oracle ] get date range list 오라클 기간(연,월,일) 별 사이 리스트 구하기 |
| 361 | 2016. 06. 02. | [ oracle ] paging query 페이징 처리 속도 향상 |
| 355 | 2016. 03. 24. | [ mysql ] oracle -> mysql 쿼리 변경 |
| 354 | 2016. 03. 17. | [ oracle ] over |
| 342 | 2016. 01. 23. | [ oracle ] tablespace 테이블 스페이스 생성,삭제, |
| 341 | 2016. 01. 23. | [ oracle ] 테이블 목록조회 table list |
| 340 | 2016. 01. 23. | [ oracle ] drop table cascade constraint 종속제거 |
| 339 | 2016. 01. 21. | [ oracle ] oracle export and import 오라클 백업 및 복원하기 |
| 329 | 2015. 11. 06. | [ oracle ] partition 오라클 파티션 지정하기 |