Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1146377
  • 博文数量: 251
  • 博客积分: 8431
  • 博客等级: 中将
  • 技术积分: 2699
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-22 16:24
文章分类

全部博文(251)

文章存档

2016年(2)

2015年(5)

2014年(4)

2013年(10)

2012年(8)

2011年(14)

2010年(20)

2009年(33)

2008年(51)

2007年(104)

分类: 服务器与存储

2010-05-10 15:15:53

一、首先安装以下3个包分别在clientoracle两张盘下

       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

四、拷贝配置文件

badsm.optdsm.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 $?

阅读(2797) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~