backing up SQL-Backtrack archive logs to specific MGMT class

spiffy

ADSM.ORG Member
Joined
Feb 9, 2007
Messages
374
Reaction score
1
Points
0
I am trying to get a sql-backtrack client to backup to a specific mgmt class and i cannot seem to get it to work.

I have asked the oracle admin to add this line in the script that kicks off the archive log backup.

DT_ADSM_MGMTCLASS=archivelogs; export DT_ADSM_MGMTCLASS

The line was added before the command to backup.

For some reason it will not work on this client, but on another SQL-backtrack client, on the same tsm server, in the same policy domain, it works perfectly

Now the only thing different between the two is one is the one that works uses the Korn Shell and the one that does not is using Bourne Shell. This is foreign to me.... i dont speak korn or bourne... ha..

anyone know what i can do here to push the archive log backups to a specific mgmt class?

I assume something in the script that calls the archive backup needs to be added/adjusted.

here is one of the scripts

"AP_CDP_P_archive" 26 lines, 1016 characters
#!/bin/sh
#%DT% SQL-BackTrack <DO NOT REMOVE OR CHANGE THIS LINE>

# SQL-BackTrack for Oracle - Copyright (c) 1991-2000
#
# This is a generated script; call this script from cron or

# from other schedulers to perform the requested operation at regular
# intervals.

DTBASE=/usr/datatools; export DTBASE
DSMI_DIR=/usr/tivoli/tsm/client/ba/bin; export DSMI_DIR
DSMI_CONFIG=/usr/tivoli/tsm/client/api/bin/dsm.opt; export DSMI_CONFIG
DT_ADSM_MGMTCLASS=archivelogs; export DT_ADSM_MGMTCLASS
# the line above is the one we added to push the logs to a specific mgmt class

# cd to a known directory...
cd /usr/datatools

export ORACLE_HOME=/oracle/app/oracle/product/8.1.7
export ORACLE_SID=AP_CDP_P

/usr/datatools/obacktrack-3.3.00.5-32-o8lib/bin/dtobackup /usr/datatools/oracatalog -database AP_CDP_P -archiv
elogs -nologswitch -full -quiet -noprompt -wait -noexpire -logfile /usr/datatools/obacktrack/log/dtarchtools.l
og
status=$?

# Be sure to exit the script with the exit status. If you add
# anything to the script after the command you should be sure
# to exit with the correct status.
exit $status


Thanks



 
Back
Top