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 |
|---|---|---|
| 326 | 2015. 11. 04. | [ oracle ] SET DEFINE OFF - 특수문자 인서트시 문자열로 인식하기 |
| 317 | 2015. 10. 15. | [ oracle ] merge |
| 287 | 2015. 06. 02. | [ Oracle ] update join view 이용하여 빠른 업데이트 |
| 274 | 2015. 05. 02. | [ Oracle ] 오라클 계층구조 즉 댓글 전부 삭제하기 |
| 272 | 2015. 04. 29. | [ oracle ] 널처리 NVL , NVL2 함수 |
| 271 | 2015. 04. 29. | [ Oracle ] 오라클 계증구조 쿼리 답글 댓글리스트 |
| 266 | 2015. 03. 26. | [ oracle ] 오라클 drop table ( 테이블 삭제) 시 복구방법 |
| 166 | 2015. 03. 02. | [ oracle ] ORA-28001: the password has expired 처리방법 |
| 143 | 2015. 01. 24. | [ Oracle ] 오라클 dmp 파일로 쉬운 복구 |
| 124 | 2015. 01. 05. | [ Oracle ] 오라클에서 날짜의 월 간격구하기 |