'백업/복구'에 해당되는 글 1건

  1. [2010/07/07] [ORACLE] EXP/IMP 백업/복구

[ORACLE] EXP/IMP 백업/복구

[■DataBase/OO ORACLE OO]
[출처] : http://www.syuos.codns.com/?mid=study&a ··· %3D11561

백업 복구  export / import



- 테이블 재구성 : Row migration 이 많이 발생하는 경우, 빈 블럭이 많은 경우, fragmentation이 많이 발생하는 경우,
                        경합을 최소화 하기위해 등 테이블 재구성시 사용

============================================================================================================
export

table export
exp system/비번 tables=(테이블명, 테이블명) grants=y indexes=y

user export
:사용자의 모든 객체를 덤프
exp system/비번 file=백업명.dmp owner=사용자명 grants=y rows=y compress=y


full export
: DBA 사용자가 전체 데이타베이스 덤프하고자 할때
exp system/비번 full=y file=덤프명.dmp grants=y rows=y

=============================================================================================

import

table import
imp system/비번 file=덤프명.dmp fromuser=이전사용자명 tables=(테이블명,테이블명)
빈 테이블만 복구
imp system/비번 file=덤프명.dmp fromuser=이전사용자명 tables=dept
다른사용자에게 복구
imp system/비번 file=덤프명.dmp fromuser=이전사용자명 touser=현재사용자명 tables=(테이블명)



imp system/비번 file=덤프명.dmp
크리에이티브 커먼즈 라이센스
Creative Commons License