27 02 2014
Oracle 백업/복구 Import or Export
| 
					 1 2 3  | 
						FULL Level Export  C:\>exp  userid=system/manager  file='C:\full.dmp'   full=y User Level Export C:\>exp   userid=scott/tiger owner='scott'  file='C:\scott.dmp'  | 
					
| 
					 1 2 3  | 
						Table Level Export       C:\>exp userid=system/manager file='C:exp.dmp' tables=(scott.EMP, scott.DEPT)  | 
					
=> 위와 같이 table의 schema(user)명까지 지정해야만 export가 성공합니다.
C:\>exp userid=scott/tiger file=’C:\exp.dmp’ tables=(EMP, DEPT) log=exp.log
=> user가 자신의 table을 export할 때에는 schema 명을 지정할 필요 없습니다.
FULL Level Import
예제1) 전체 데이터베이스가 IMPORT됩니다. (Full Level)
| 
					 1  | 
						 C:\>imp userid=system/manager file='C:\full.dmp'  full=y  | 
					
예제2) scott의 유저 IMPORT를 실행 합니다.(User Level)
| 
					 1  | 
						C:\>imp userid=scott/tiger fromuser='scott' touser='scott' file='C:\scott.dmp'  | 
					
예제3) 다른 계정으로 IMPORT하기
==> scott유저의 데이터를 EXPORT받아서 test 유저에게 IMPORT하는 예제 입니다.
| 
					 1 2 3  | 
						C:\>exp userid=system/manager file='C:\scott.dmp' owner=scott C:\>imp userid=system/manager file='C:\scott.dmp' fromuser=scott touser=test  | 
					
Oracle Table Space 생성 Oracle Flash Back을 이용한 데이타 복구