Professional Documents
Culture Documents
TDP For Oracle
TDP For Oracle
ln -s /usr/tivoli/tsm/client/api/bin64/dsm.sys /usr/tivoli/tsm/client/ba/bin64/dsm.sys
ServerName ORACLE
nodename INVDBDV_ORA
COMMMethod TCPip
TCPPort 11500
TCPServeraddress 10.20.66.48
domain ALL-LOCAL
schedlogname /home/oracle/TSM/dsmsched_Oracle.log
schedlogretention 7 D
errorlogname /home/oracle/TSM/dsmerror_Oracle.log
errorlogretention 7 D
deduplication yes
enablededupcache yes
dedupcachesize 2048
resourceutil 4
passwordaccess generate
passworddir /home/oracle/TSM
managedservices schedule
4) Create dsm.opt on /usr/tivoli/tsm/client/oracle/bin64
dsm.opt
Servername ORACLE
DSMI_ORC_CONFIG /usr/tivoli/tsm/client/oracle/bin64/dsm.opt
ln -s /usr/tivoli/tsm/client/oracle/bin64/libobk64.a (Oracle_Home)/lib/libobk.a
For Ex:
ln -s /usr/tivoli/tsm/client/oracle/bin64/libobk64.a
/u01/app/oracle/product/12.2.0.1/dbhome_1/lib/libobk.a
}
allocate channel for maintenance device type sbt;
DELETE NOPROMPT obsolete recovery window of 31 days device type sbt;
DELETE NOPROMPT EXPIRED ARCHIVELOG ALL;
EOF
echo "$0 finished RC=$RC \n"
rm /home/oracle/TSM/$ORACLE_SID
return $RC
else
echo " Incremental Backup Already in progress"
fi
exit $RC
}
WEEKLY ()
if [ ! -f /home/oracle/TSM/$ORACLE_SID ];then
touch /home/oracle/TSM/backup
connect target /
run
{
#CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 31 DAYS;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE DEFAULT DEVICE TYPE TO sbt;
CONFIGURE DEVICE TYPE sbt PARALLELISM 6;
CONFIGURE CHANNEL DEVICE TYPE sbt PARMS
'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
allocate channel c1 type sbt parms
'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
allocate channel c2 type sbt parms
'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
allocate channel c3 type sbt parms
'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
allocate channel c4 type sbt parms
'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
allocate channel c5 type sbt parms
'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
allocate channel c6 type sbt parms
'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
[root@RHPP-INORAC01 logs]# ls -l
-rw-r--r--. 1 oracle oinstall 12006 Dec 27 15:43 INVIEW51.ARCHIVE.20191227_1540.log
-rw-r--r--. 1 oracle oinstall 11777 Dec 28 14:06 INVIEW51.ARCHIVE.20191228_1402.log
-rw-r--r--. 1 oracle oinstall 4471 Dec 28 15:52 INVIEW51.ARCHIVE.20191228_1551.log
-rw-r--r--. 1 oracle oinstall 63746 Dec 29 13:31 INVIEW51.DAILY.20191229_1258.log
-rw-r--r--. 1 oracle oinstall 62947 Dec 24 00:18 INVIEW51.WEEKLY.20191223_2354.log
-rw-r--r--. 1 oracle oinstall 64036 Dec 27 13:22 INVIEW51.WEEKLY.20191227_1257.log
-rw-r--r--. 1 oracle oinstall 2837 Dec 28 13:58 INVIEW51.YEARLY.20191228_1358.log
released channel: c1
released channel: c2
released channel: c3
released channel: c4
released channel: c5
released channel: c6
RMAN>
allocated channel: ORA_MAINT_SBT_TAPE_1
channel ORA_MAINT_SBT_TAPE_1: SID=1141 instance=INVIEW51 device type=SBT_TAPE
channel ORA_MAINT_SBT_TAPE_1: Data Protection for Oracle: version 8.1.0.0
RMAN>
no obsolete backups found
RMAN>
specification does not match any archived log in the repository
RMAN>
No ,Script File creates a lock file during backup and it prevents from running multiple backup at the
same time , following message will be displayed in log file