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 |
|---|---|---|
| 1997 | 2025. 11. 30. | SQL 쿼리 최적화 10가지 팁 |
| 1996 | 2025. 11. 30. | 데이터베이스 정규화와 반정규화 전략 |
| 1995 | 2025. 11. 30. | PostgreSQL vs MySQL - 어떤 DB를 선택할까 |
| 1994 | 2025. 11. 30. | Oracle 성능 튜닝 기초 - 실행계획 분석과 인덱스 최적화 |
| 1826 | 2022. 05. 25. | [Oracle] ORA-01950 오류 오라클 설치 or 유저 생성시 해두면 좋은것들 |
| 1282 | 2017. 10. 12. | maven jar 추가하기 |
| 1281 | 2017. 10. 12. | mssql sqljdbc java1.8 지원안될때 SQL Server version 8 is not supported by this driver |
| 1056 | 2016. 08. 25. | [ mybatis ] set null 처리 |
| 367 | 2016. 07. 06. | [ datatable ] db 별 mybatis selectkey |
| 366 | 2016. 07. 06. | [ mssql ] Enable XA transactions for SQL Server |