ORACLE

1. 백업을 위한 디렉토리 생성(d:\ora_backup)

 

2. 백업을 위한 batch file 작성(d:\ora_backup\exp_daily.bat)

 

@echo off

SET ORACLE_SID=ORCL

for %%a in (%date%) do SET day=%%a

md D:\ORA_BACKUP\%day%

c:\oraclexe\app\oracle\product\11.2.0\server\bin\EXP spring/1234 file=D:\ORA_BACKUP\%DAY%\%DAY%-full.dmp full=y 

 

먼저 테스트로 cmd 에서 실행

c:\oraclexe\app\oracle\product\11.2.0\server\bin\EXP hr/1111 file=D:\ORA_BACKUP\test.dmp full=y

 

3. 윈도우 작업스케줄러 등록(cmd에서 실행, 관리자 권한으로 실행해야 함)

at 00:00 /every:m,t,w,th,f,s,su d:\ora_backup\exp_daily.bat

 

 

 

 

http://edu.lifesoft.org/board/show.aspx?category=db&idx=1097&page=0

 

 

 

 

about author

PHRASE

Level 1  머나먼나라

댓글 ( 4)

댓글 남기기

작성