백업 복구 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


::: 사람과 사람의 교감! 人터넷의 첫 시작! 댓글을 달아주세요! :::