- 论坛徽章:
- 0
|
nsrnmo.bat如下:
ECHO OFF
REM
REM $Id: nsrnmo.bat,v 1.2.32.3.4.2 2007/04/19 18:45:14 lecoue Exp $ Copyright (c) 2004-2007 EMC Corporation.
REM
REM All rights reserved.
REM
REM nsrnmo.bat
REM
REM This script is part of the EMC NetWorker Module for Oracle.
REM Modification of this script should be done with care and only after reading
REM the administration manual included with this product.
REM
REM Users should be aware that no system environment variables will be
REM inherited from a parent process. Any environment variables to be used
REM in this file have to be set in this file.
REM
REM This script should only be run as part of a scheduled savegroup.
REM
REM Returns 0 on success; 1 on failure.
REM
REM
REM Make environment variable changes local
REM
SETLOCAL
REM
REM Configuration variables, modifiable by users.
REM
REM
REM REQUIRED Variable: ORACLE_HOME
REM
REM Default value: none (site specific)
REM
REM Description: Specifies where the Oracle Server installation is located.
REM It is a requirement that rman or rman80 be located in
REM %ORACLE_HOME%\bin.
REM
REM Samples:
REM SET ORACLE_HOME=e:\orant
REM
SET ORACLE_HOME=C:\oracle\product\10.2.0\db_1\
REM
REM REQUIRED Variable: PATH
REM
REM Default value: none (site and platform specific)
REM
REM Description: Set up the PATH environment variable. This must be
REM configured to include the path to "nsrnmostart" and "save".
REM
REM Samples:
REM SET PATH=e:\orant\bin;c:\win32app\nsr\bin
REM SET PATH=e:\orant\bin;c:\Program Files\nsr\bin
REM SET PATH=e:\orant\bin;c:\Program Files\Legato\nsr\bin
REM
SET PATH=C:\Program Files\Legato\nsr\bin;C:\Program Files\Legato\nsr\bin
REM
REM Optional Variable: ORACLE_SID
REM
REM Default value: NONE (site specific)
REM
REM Description: Specifies the SID of the Oracle database being backed up.
REM It is a requirement that rman be located in ORACLE_HOME/bin. It is
REM required by proxy copy backups when catalog synchronization is enabled.
REM
REM Samples:
REM ORACLE_SID=orcl901
REM
SET ORACLE_SID=orcl
REM
REM Optional Variable: NLS_LANG
REM
REM Default value: NONE (site specific)
REM
REM Description: This environment variable specifies the language,
REM territory, and character set used by the Oracle Database.
REM See Oracle National Language Support for more information.
REM
REM Example:
REM NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
REM
REM SET NLS_LANG=
REM
REM Optional Variable: NSR_RMAN_ARGUMENTS
REM
REM Default value: none (site specific)
REM
REM Description: Provide extra rman parameters.
REM You must enclose the command in quotes or it will not be
REM passed correctly to rman.
REM
REM Samples:
REM SET NSR_RMAN_ARGUMENTS="nocatalog msglog 'c:\Program Files\Legato\nsr\applogs\msglog.log' append"
REM
REM SET NSR_RMAN_ARGUMENTS="nocatalog"
REM
SET NSR_RMAN_ARGUMENTS="nocatalog msglog 'c:\Program Files\Legato\nsr\applogs\msglog.log' append"
REM
REM Optional Variable: NSR_RMAN_OUTPUT
REM
REM Default value: NONE (site specific)
REM
REM Description: Provide option to capture the RMAN standard output
REM if RMAN "msglog" or "log" command line option is
REM not set. The connect strings will be hidden in this file.
REM
REM Samples:
REM SET NSR_RMAN_OUTPUT="c:\Program Files\Legato\nsr\applogs\msglog.log append"
REM
REM SET NSR_RMAN_OUTPUT="c:\Program Files\Legato\nsr\applogs\msglog.log"
REM
SET NSR_RMAN_OUTPUT="c:\Program Files\Legato\nsr\applogs\msglog.log"
REM
REM Optional Variable: NSR_SB_DEBUG_FILE
REM
REM Default value: none (site specific)
REM
REM Description: To enable debugging output for NMO scheduled backups set
REM the following to an appropriate path and file name.
REM Set this variable for debugging purposes only
REM Samples:
REM SET NSR_SB_DEBUG_FILE=c:\Program Files\Legato\nsr\applogs\nsrnmostart.log
REM
SET NSR_SB_DEBUG_FILE=c:\Program Files\Legato\nsr\applogs\nsrnmostart.log
REM
REM Optional Variable: PRECMD
REM Default value: NONE
REM Description: This variable can be used to run a command or command script
REM before nsrnmostart. It will be launched once for every saveset
REM entered in the client setup.
REM
SET PRECMD=
REM
REM Optional Variable: POSTCMD
REM Default value: NONE
REM Description: This variable can be used to run a command or command script
REM after nsrnmostart has completed. It will be launched once for
REM every saveset entered in the client setup.
REM
SET POSTCMD=
REM
REM Optional Variable: TNS_ADMIN
REM Default value: NONE
REM Description: This variable needs to be set if Oracle Net configuration
REM files are not located in default locations.
REM
SET TNS_ADMIN=
REM
REM Execute the backup command
REM
SET args=%*
nsrnmostart %args%
REM
REM Cleanup from the command
REM
ENDLOCAL |
|