백업
#!/bin/sh dat=`date +%Y%m%d%H%M` /app/oracle/product/920/bin/exp userid/passwd file=/user/userid/backup/oracle_$dat.dmp |
복구
FULL 백업을 한경우
user와 tablespace정보까지 함께 백업이 되므로
import할때 특별한 방법이 필요하다.
오라클관리자
1. drop user scott cascade;
2. create user scott identified by tiger
default tablespace scott_tablespace
temporary tablespace temp;
3. grant connect , resource to scott
4. imp scott/tiger file=aaa.dmp
'DataBase' 카테고리의 다른 글
[Oracle] 특정유저에게 읽기 권한주기 (0) | 2007.01.09 |
---|---|
[Oracle] Database link, Synonym How to (0) | 2007.01.09 |
[Oracle] cron을 이용한 Oracle 백업 (0) | 2007.01.09 |
[Oracle] 시퀀스 초기화 프로시저 (0) | 2007.01.09 |
[Oracle] TOAD에서 Explain Plan 보기 (1) | 2007.01.09 |