一、首先安装以下3个包分别在client与oracle两张盘下
5.4.1.0-TIV-TSMORA-LinuxX86.bin
TIVsm-API.i386.rpm
TIVsm-BA.i386.rpm
二、修改配置文件
# more /opt/tivoli/tsm/client/ba/bin/dsm.opt(/opt/tivoli/tsm/client/api(oracle)/bin/dsm.opt)
************************************************************************
* IBM Tivoli Storage Manager*
**
* Sample Client User Options file for UNIX (dsm.opt.smp)*
************************************************************************
*This file contains an option you can use to specify the TSM
*server to contact if more than one is defined in your client
*system options file (dsm.sys).Copy dsm.opt.smp to dsm.opt.
*If you enter a server name for the option below, remove the
*leading asterisk (*).
************************************************************************
* SErvernameA server name defined in the dsm.sys file
ServerNameTSMSERVER(ba)
ServerNameORA_TAPE
# more /opt/tivoli/tsm/client/ba/bin/dsm.sys(/opt/tivoli/tsm/client/api(oracle)/bin/dsm.sys)
************************************************************************
* IBM Tivoli Storage Manager*
**
* Sample Client System Options file for UNIX (dsm.sys.smp)*
************************************************************************
*This file contains the minimum options required to get started
*using TSM.Copy dsm.sys.smp to dsm.sys.In the dsm.sys file,
*enter the appropriate values for each option listed below and
*remove the leading asterisk (*) for each one.
*If your client node communicates with multiple TSM servers, be
*sure to add a stanza, beginning with the SERVERNAME option, for
*each additional server.
************************************************************************
SErvernameTSMSERVER(ba)
COMMMethodTCPip(ba)
TCPPort1500(ba)
TCPServeraddress10.20.11.51(ba)
NODENAMEFILE_JYPDGD(ba)
PasswordAccessgenerate(ba)
SErvernameORA_TAPE
COMMMethodTCPip
TCPPort1500
TCPServeraddress10.20.11.51
NODENAMEORA_JYPDGD
PasswordAccess(generate )prompt
三、注册节点
在TSM服务器中注册节点
register node FILE_JYPDUIP admin passexp=0 domain=FILE backdelete=yes
register node ORA_JYPDUIP admin passexp=0 domain=ORA_TAPE backdelete=yes
在客户端运行dsmc进入一次,密码为admin
四、拷贝配置文件
将ba下dsm.opt与dsm.sys拷贝到oracle目录下,并将TSMSERVER相关删除
修改tdpo.conf文件
# more tdpo.opt
***************************************************************************
* IBM Tivoli Storage Manager for Databases
*Data Protection for Oracle
*
* Sample tdpo.opt for the Linux86 Data Protection for Oracle
*********************************************************************
DSMI_ORC_CONFIG/opt/tivoli/tsm/client/oracle/bin/dsm.opt
DSMI_LOG/opt/tivoli/logs
*TDPO_FSadsmorc
TDPO_NODEORA_JYPDGD
*TDPO_OWNER
*TDPO_PSWDPATH/opt/tivoli/tsm/client/oracle/bin
*TDPO_DATE_FMT1
*TDPO_NUM_FMT1
*TDPO_TIME_FMT1
*TDPO_MGMT_CLASS_2mgmtclass2
*TDPO_MGMT_CLASS_3mgmtclass3
*TDPO_MGMT_CLASS_4mgmtclass4
五、为TSM目录赋oracle用户执行权限
# chown -R oracle.oinstall /opt/tivoli/tsm/client/oracle/bin
# chmod -R 755 /opt/tivoli/tsm/client/oracle/bin
六、生成password文件
#./tdpoconf password -TDPO_OPTfile=/opt/tivoli/tsm/client/oracle/bin/tdpo.opt
七、注册目标数据库
rman target sys/oracle@TJEPGD catalog userdisk/admin@TSMRMAN
register database;
quit
八、日志赋权
使oracle用户可以对DSMI_LOG/opt/tivoli/logs下的tdpoerror.log文件有写权限
DEFINE SCHEDULE ORA_TAPE ORA_JYPDGD_L0 TYPE=CLIENT ACTION=COMMAND OBJECT= /backup/scripts/ora_tape_l0.sh STARTTIME=02:00 DAYOFWEEK= SUNDAY
DEFINE ASSOCIATION ORA_TAPE ORA_JYPDGD_L0 ORA_JYPDGD
DEFINE SCHEDULE ORA_TAPE ORA_JYPDGD_L1 TYPE=CLIENT ACTION=COMMAND OBJECT=/backup/scripts/ora_tape_l1.sh STARTTIME=02:0 schedstyle=enhanced DAYOFWEEK=mon,tue,wed,thu,fri,sat
DEFINE ASSOCIATION ORA_TAPE ORA_JYPDGD_L1 ORA_JYPDGD
#!/bin/bash
export DSM_LOG=/opt/tivoli/logs
export DSM_DIR=/opt/tivoli/tsm/client/ba/bin
export DSM_CONFIG=/opt/tivoli/tsm/client/ba/bin/dsm.opt
nohup dsmc sched -servername=ORA_TAPE 2> /dev/null &
exit $?