導出腳本內容
@echo off
REM
REM File name Daily
REM Batch Process
Reload DB Backup
REM
REM Author Frank
REM Modification History
Created
REM Modified
REM
for /F "tokens=
#取系統當前日期
for /F "tokens=
#取系統當前時間
SET USERNAME=SYSTEM #oracle帳號
SET USERPASSWD=
SET SERVICENAME=QEWAY #oracle SID
SET SCHEMASNAME=ISCOP #oracle SCHEMA帳號
SET RARTOOL=C:\Program Files\WinRAR #設定WINRAR路徑(各個機器不同)
SET DBBACKUPPATH=D:\DBBAK #設定被導出的文件路徑
SET DBADIRECTORIES=DBBAK #oracle內設置的Directory目錄名
SET DBBACKUPFILENAME=QEWAY_%FILENAMEDT%
goto main
:main
ECHO Exporting schemas
expdp %USERNAME%/%USERPASSWD%@%SERVICENAME% DUMPFILE=%DBADIRECTORIES%:%DBBACKUPFILENAME%
ECHO Done exporting schemas
ECHO =======================================================
ECHO
if exist %DBBACKUPPATH%\%DBBACKUPFILENAME%
"%RARTOOL%\winrar
del %DBBACKUPPATH%\%DBBACKUPFILENAME%
Echo
forfiles /p "%DBBACKUPPATH%" /m *
#刪除
REM
start D:\DBBAK\Batch_notification_Daily
EXIT
郵件通知VBS文件內容
NameSpace = "
set Email = CreateObject("CDO
Email
Email
Email
Email
with Email
end with
Email
Set Email=Nothing
From:http://tw.wingwit.com/Article/program/Oracle/201311/19111.html