[oracle export]

1. 전체
exp scott/tiger full=y file='d:\expdat.dmp'

2. 테이블/유저
c:\>exp scott/tiger tables=emp,dept flie='d:\expdat.dmp'

3. 조건식
c:\>exp scott/tiger tables=emp,dept query='"where deptno = 10"' flie='d:\expdat.dmp'

4. tns예제
c:\>exp
scott/tiger@scott_dev fromuser=scott touser=scott flie='d:\expdat.dmp'


[oracle import]

1. 전체
c:\>imp scott/tiger full=y file='d:\expdat.dmp'

2. 테이블/유저
c:\>imp scott/tiger tables=emp,dept file='d:\expdat.dmp'

4. tns예제
c:\>imp
scott/tiger@scott_dev fromuser=scott touser=scott flie='d:\expdat.dmp'


[import시 주의사항]

1. import 시에 import하는 유저권한이 불충분할 수 있으므로 연습용이나 학습용시 system or sys계정으로....

2. import 시에 tablespace의 공간 부족으로 error가 날 경우에는 해당 tablespace 공간을 늘려줘야 함

ex) alter tablespace [tablespace_name]
    add datafile 'd:\oracle\product\10.2.0\oradata\orcl\[file name].dbf' size 500m


 


'Program... > Oracle' 카테고리의 다른 글

물리적인 DB관리 (2)  (0) 2009.03.13
물리적인 DB관리 (1)  (0) 2009.03.13
DataBase 정규화  (0) 2009.03.13
오라클 Sys 접속 및 계정생성  (0) 2009.03.13
ORACLE PARTION 관리 및 검색  (0) 2009.03.12
Posted by Duritz

공지사항

Yesterday
Today
Total
05-18 21:07

달력

 « |  » 2024.5
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31