Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backup status with brarchive

Status
Not open for further replies.

saiplent

MIS
Mar 9, 2004
13
CA
Hi,

So my problem comes from a archive log backup for a small SAP database.
Sometimes there are no file to be backed up and the status code in the Admin Console of NB is 6.

In fact when I check the log in /Oracle/Saparch in the cds/sve file I got

BR007I End of offline redo log processing: admunicj.cds 2004-03-07 17.08.42

BR280I Time stamp 2004-03-07 17.08.43

BR004I BRARCHIVE terminated successfully with warnings

Execution of BRARCHIVE command failed – exiting
.


The problem is coming (I think) from the temp file for the communication between the backup and the console.

When I check the script executed by NB and the end I have :

To communicate with NetBackup's job monitor for an automatic schedule
REM a "STATUS_FILE" variable is created by NetBackup (bphdb) that contains
REM a path to a file. This file is check by Netbackup to determine if the
REM automatic schedule was successful. It is up to the script to write
REM a 0 (passed) or 1 (failure) to the status file to communicate to NetBackup
REM the status of the execution of the script. The following code echo a 0
REM to %STATUS_FILE% if succcessful and echo a 1 to %STATUS_FILE% for a
REM failure.

if errorlevel 1 goto errormsg
echo BRARCHIVE successful
if "%STATUS_FILE%" == "" goto end
if exist "%STATUS_FILE%" echo 0 > "%STATUS_FILE%"
goto end
:errormsg
echo Execution of BRARCHIVE command failed - exiting
if "%STATUS_FILE%" == "" goto end
if exist "%STATUS_FILE%" echo 1 > "%STATUS_FILE%"
:end


So is this errorlevel is the problem ? Is that the status of the backup ?
Should I modify the script to
if [errorlevel -gt 1] goto errormsg

Or is there a way to do that or will I be paged every evening :)

Tks

Julien
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top