日期:2014-05-17 浏览次数:20899 次
c:> exp=%PARFILE%:
REM +--------------------------------------+
REM
------解决方案--------------------
VALIDATE COMMAND-LINE PARAMETERS
------解决方案--------------------
REM +--------------------------------------+
if (%1)==() goto USAGE
if (%2)==() goto USAGE
if (%3)==() goto USAGE
REM +--------------------------------------+
REM
------解决方案--------------------
VALIDATE ENVIRONMENT VARIABLES
------解决方案--------------------
REM +--------------------------------------+
REM set ORABACKUP=C:\oracle\orabackup\JEFFDB\export
REM set ORALOG=C:\oracle\custom\oracle\log
REM set ORATMP=C:\oracle\custom\oracle\temp
if (%ORALOG%)==() goto ENV_VARIABLES
if (%ORATMP%)==() goto ENV_VARIABLES
if (%ORABACKUP%)==() goto ENV_VARIABLES
REM +--------------------------------------+
REM
------解决方案--------------------
DECLARE ALL GLOBAL VARIABLES.
------解决方案--------------------
REM +--------------------------------------+
set FILENAME=export_backup_online_full_9i
set DB_USERNAME=%1%
set DB_PASSWORD=%2%
set TNS_ALIAS=%3%
set PARFILE=%ORATMP%\%FILENAME%_%TNS_ALIAS%.parfile
set LOGFILE=%ORALOG%\%FILENAME%_%TNS_ALIAS%.log
set DUMPFILE=%ORABACKUP%\exp_full_%TNS_ALIAS%.dmp
REM +--------------------------------------+
REM
------解决方案--------------------
REMOVE OLD LOG AND PARAMETER FILE(S).
------解决方案--------------------
REM +--------------------------------------+