tod连接oracle,TSM linux oracle安装

一、首先安装以下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 (*).

************************************************************************

* SErvername A server name defined in the dsm.sys file

ServerName TSMSERVER(ba)

ServerName ORA_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.

************************************************************************

SErvername TSMSERVER(ba)

COMMMethod TCPip(ba)

TCPPort 1500(ba)

TCPServeraddress 10.20.11.51(ba)

NODENAME FILE_JYPDGD(ba)

PasswordAccess generate(ba)

SErvername ORA_TAPE

COMMMethod TCPip

TCPPort 1500

TCPServeraddress 10.20.11.51

NODENAME ORA_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_FS adsmorc

TDPO_NODE ORA_JYPDGD

*TDPO_OWNER

*TDPO_PSWDPATH /opt/tivoli/tsm/client/oracle/bin

*TDPO_DATE_FMT 1

*TDPO_NUM_FMT 1

*TDPO_TIME_FMT 1

*TDPO_MGMT_CLASS_2 mgmtclass2

*TDPO_MGMT_CLASS_3 mgmtclass3

*TDPO_MGMT_CLASS_4 mgmtclass4

五、为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 $?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值