分类:
2007-12-28 19:18:03
目的:通过对相关厂商文档归纳,总结相关需注意的问题。
1. 安装TDP FOR ORACLE软件及TSM客户端
tivoli.tsm.client.ba
tivoli.tsm.client.hsm.jfs2
tivoli.tsm.client.jbb
tivoli.tsm.client.api.32bit
tivoli.tsm.client.api.64bit
tivoli.tsm.client.oracle.aix.64bit
tivoli.tsm.client.oracle.tools.aix.64bit
tivoli.tsm.loc.client.oracle.aix.64bit.ela
xlC.aix50.rte
xlC.rte
xlsmp.aix50.rte
xlsmp.rte
#simtty installp
2. 链接库
#su – oracle
$ln –s /usr/lib/libobk64.a $ORACLE_HOME/lib/libobk.a
3. 配置tdpo.opt
#vi /usr/
dsmi_orc_config /usr/tivoli/tsm/client/oracle/bin64/dsm.opt
dsmi_log /usr/tivoli/tsm/client/api
4. 配置dsm.opt及dsm.sys
#vi /usr/tivoli/tsm/client/oracle/bin64/dsm.opt
Servername HTBKSVR
#vi /usr/tivoli/tsm/client/api/bin64/dsm.sys
SErvername HTBKSVR
COMMMethod TCPip
TCPPort 1500
TCPServeraddress
PasswordDir /usr/tivoli/tsm/client/api
PasswordAccess generate
NodeName
schedlogname /usr/tivoli/tsm/client/api/sched.log
errorlogname /usr/tivoli/tsm/client/api/dsmerror.log
#cp /usr/tivoli/tsm/client/api/bin64/dsm.sys /usr/tivoli/tsm/client/ba/bin
#cp /usr/tivoli/tsm/client/oracle/bin64/dsm.opt /usr/tivoli/tsm/client/ba/bin
5. 更改相关文件及用户权限
#touch /usr/tivoli/tsm/client/api/dsmerror.log
#touch /usr/tivoli/tsm/client/api/sched.log
#chown –R oracle:dba /usr/tivoli/tsm/client/api
6. 使用tdpoconf生成密码文件
#su – oracle
$cd /usr/tivoli/tsm/client/oracle/bin64
$./tdpoconf password
$./tdpoconf showenv (验证环境是否正常,有密码文件是否生成)
7. 使用sbttest测试sbt_tape是否可使用
$sbttest <测试文件>
8. 备份脚本范例
$vi backup.cmd
run {
allocate channel t1 type ’sbt_tape’
parms ’ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)’;
backup filesperset 5 format ’df_%t_%s_%p’
(database);
release channel t1;
}
$rman target / nocatalog cmdfile ./backup.cmd
9. 配置客户端schedule进程
#vi /etc/inittab
加入dsmc::once:/usr/bin/dsmc sched 2>&1 1>/dev/null
手动启动
#nohup dsmc sched 2>&1 1>/dev/null &
参考文档:
1.< Data Protection for Oracle for UNIX and Linux Installation and User’s Guide >