수요일, 6월 14, 2006

[oracle]hot backup end script

다른 미디어로의 백업이 끝나면 이 명령들을 실행해서
테이블스페이스의 백업상태를 해제한다.

begin 스크립트는 자체적으로 백업을 수행하는 스크립트가 아니다
테이블스페이스를 백업이 가능한 상태로 변경하는 스크립트이다.

이 스크립트에서는 마지막 부분에 주의한다.
(<<)부분에서 양쪽 괄호는 뺄것

--sample

#!/usr/bin/ksh
sqlplus system/rnd202wjs (<<)eofarch1
alter tablespace SYSTEM end backup;
alter tablespace UNDOTBS1 end backup;
alter tablespace TEMP end backup;
alter tablespace INDX end backup;
alter tablespace TOOLS end backup;
alter tablespace USERS end backup;
alter tablespace MESMGRD end backup;
alter tablespace BCDMGRD end backup;
alter tablespace OQCMGRD end backup;
alter tablespace MRXMGRD end backup;
alter tablespace SIFMGRD end backup;
alter tablespace MESMGRX end backup;
alter tablespace BCDMGRX end backup;
alter tablespace OQCMGRX end backup;
alter tablespace MRXMGRX end backup;
alter tablespace SIFMGRX end backup;
alter tablespace TEMPAPP end backup;
alter tablespace TS_N1MES_TMP_DAT01 begin backup;
alter database backup controlfile to trace;
exit
EOFarch1

0 Comments:

댓글 쓰기

<< Home