互联网服务故障诊断Oracle

tdp for oracle测试出错

我是初学tsm,硬着头皮照着下载的文档安装虚拟带库,然后装tsm,装oracle,想先搭一套环境之后再慢慢学理论
现在linux装好了,虚拟带库也装好了,oracle也装好了,tsm server和tsm client,tsm isc与tsm ac都装好了,但在tdp for oracle这一块碰到问题了。

另外上网查了有个贴子问题和我差不多,说是我使用的tdpo for oracle是从网上下载的,所以有问题,如果是使用原厂光盘就不会有问题,不知道是不是这原因
http://bbs.chinaunix.net/thread-1331069-1-1.html

我下载的文档tsm5[1].5+VTL+oracle10G.pdf上是这么写的

1 安装 tsm for oracle
[root@vistor tsm]# ./5.5.2.0-TIV-tdp-LinuxX86.bin

2  设置环境变量
TSM API Client  环境:
export   DSMI_CONFIG=/opt/tivoli/tsm/client/api/bindsm.opt
export   DSMI_DIR=/opt/tivoli/tsm/client/api/bin
export   DSMI_LOG=/opt/tivoli/tsm/client/api/bin/log/tdpoerror.log

3  修改参数配置文件
A)编辑/opt/tivoli/tsm/client/api/bin/dsm.sys 内容
SErvername  SERVER1
COMMMethod         TCPip
TCPPort            1500
TCPServeraddress   10.10.10.133
nodename          oracle
ENABLELANFREE         yes   
LANFREECommMethod  TCPIP   
LANFREETCPPort    1500   
注:红色为新增内容,用于连接TSM SAN Agent 和开启LAN Free
B)编辑/opt/tivoli/tsm/client/api/bin/dsm.opt 内容
SErvername SERVER1
C)编辑/opt/tivoli/tsm/client/oracle/bin/tdpo.opt
DSMI_ORC_CONFIG    /opt/tivoli/tsm/client/api/bin/dsm.opt
DSMI_LOG             /opt/tivoli/tsm/client/api/bin/log
TDPO_NODE          oracle
注:
/opt/tivoli/tsm/client/api/bin64/dsm.opt oracle  用户必须 有权读取
/opt/tivoli/tsm/client/api/bin64/dsm.sys oracle  用户必须 有权读取
opt/tivoli/tsm/client/api/bin64/log oracle  用户必须 有权写和读取

4  链接库文件
#ln -sf /opt/tivoli/tsm/client/oracle/bin/libobk.so /oracle/product/10.2.0/db_1/lib/libobk.so
#chmod 777 $ORACLE_HOME/lib/libobk.so
# chmod 777 /opt/tivoli/tsm/client/oracle/bin/libobk.so
注:
$ORACLE_HOME/lib/libobk.a oracle 用户必须有权读取执行
/usr/tivoli/tsm/client/oracle/bin64/libobk64.a oracle 用户必须有权读取执行

测试LINK是否成功
在ORACLE用户下执行sbttest test
$ sbttest test
The sbt function pointers are loaded from libobk.a(shr.o) library.
-- sbtinit succeeded
Return code -1 from sbtinit, bsercoer = 0, bsercerrno = 0
Message 0 not found;  product=RDBMS; facility=SBT  
5 在 TSM server注册客户端
该客户机节点的属性必须是:BACKDELETE=YES
register    node   oracle admin archdelete=no backdelete=yes
   

设置tsm服务器并修改密码
cd /optvoli/tsm/client/oracle/bin
./tdpoconf password
该口令与TSM server注册该节点时的口令相同

检查tdp 的配置是否正确
#cd /opt/tivoli/tsm/client/oracle/bin
#./tdpoconf showenvironment
输出类似如下:
IBM Tivoli Storage Manager for Databases:
Data Protection for Oracle
Version 5, Release 5, Level 2.0
(C) Copyright IBM Corporation 1997, 2009. All rights reserved.


Data Protection for Oracle Information
  Version:              5
  Release:              5
  Level:                2
  Sublevel:             0
  Platform:               32bit TDPO Linux86

Tivoli Storage Manager Server Information
  Server Name:          SERVER1
  Server Address:       10.10.10.133
  Server Type:          Linux/i386
  Server Port:          1500
  Communication Method: TCP/IP

Session Information
  Owner Name:            
  Node Name:            oracle
  Node Type:            TDPO Linux86
  DSMI_DIR:             /opt/tivoli/tsm/client/api/bin
  DSMI_ORC_CONFIG:      /opt/tivoli/tsm/client/api/bin/dsm.opt
  TDPO_OPTFILE:         /opt/tivoli/tsm/client/oracle/bin/tdpo.opt
  Password Directory:   /opt/tivoli/tsm/client/oracle/bin
  Compression:          FALSE   License Information:  License file exists and contains valid license data.


可是我在做测试LINK是否成功时出错了

[oracle@xiaxh ~]$ sbttest test
The sbt function pointers are loaded from libobk.so library.
Return code -1 from sbtinit, bsercoer = 7011, bsercerrno = 106
sbtopen: System error - eg. malloc, fork errors

做./tdpoconf password也出错
[root@xiaxh bin]# ./tdpoconf password

IBM Tivoli Storage Manager for Databases:
Data Protection for Oracle
Version 5, Release 5, Level 2.0
(C) Copyright IBM Corporation 1997, 2009. All rights reserved.

***************************************************************
*   IBM Tivoli Storage Manager for Databases Utility
*   Password file initialization/update program
***************************************************************
Please enter current password:

Please enter new password:

Please reenter new password for verification:

ANS1353E (RC53)   Session rejected: Unknown or incorrect ID entered


在网上查了贴子,有人和我是类似的情况,据说是我使用的是网上下载的tdpo for oracle,好像有问题,用原厂光盘tdpo for oracle就没问题,不知道是不是这原因,或者有人知道是什么原因,请告诉我如何解决,谢谢。

可以参考下这个贴子,和我问题类似,说是网上下载的安装程序有问题的
http://bbs.chinaunix.net/thread-1331069-1-1.html
参与15

11同行回答

wangqlwangql系统工程师NULL
sbttest test不成功1.tdp相关配置文件出错2.tdperror.log权限不够3.oracle用户需添加变量 export LANG=en_US再把这几个目录的权限也改成777/usr/tivoli/tsm/client/oracle/bin64/usr/tivoli/tsm/client/ba/bin/usr/tivoli/tsm/client/api/bin64...显示全部
sbttest test不成功
1.tdp相关配置文件出错
2.tdperror.log权限不够
3.oracle用户需添加变量 export LANG=en_US
再把这几个目录的权限也改成777
/usr/tivoli/tsm/client/oracle/bin64
/usr/tivoli/tsm/client/ba/bin
/usr/tivoli/tsm/client/api/bin64收起
IT咨询服务 · 2011-02-11
浏览4046
huangmbhuangmb系统运维工程师huawei
tdpoconf showenvSession Information Owner Name: Node Name: oracle Node Type: TDPO Linux86 DSMI_DIR: /opt/tivoli/tsm/client/api/bin DSMI_ORC_CONFIG: /opt/tivoli/tsm/client/api/bin/dsm.opt ...显示全部

tdpoconf showenv

Session Information
Owner Name:
Node Name: oracle
Node Type: TDPO Linux86
DSMI_DIR: /opt/tivoli/tsm/client/api/bin
DSMI_ORC_CONFIG: /opt/tivoli/tsm/client/api/bin/dsm.opt
TDPO_OPTFILE: /opt/tivoli/tsm/client/oracle/bin/tdpo.opt
Password Directory: /opt/tivoli/tsm/client/oracle/bin
Compression: FALSE
License Information: License File Error - see tdpoerror.log for details.
提示:license有问题!
而且这个文件没找到: /opt/tivoli/tsm/client/oracle/bin/agent.lic
TDP for oracle是7.1.3.0-TIV-TSMORA-LinuxX64.bin 从官网下载的
请问各位大神,是怎么解决这个问题的

收起
互联网服务 · 2017-11-10
浏览2647
huyangghuyangg技术经理hgg
收藏,学习!!!!!!!!显示全部
收藏,学习!!!!!!!!收起
互联网服务 · 2011-06-02
浏览3847
coolpizzacoolpizza系统工程师华夏
学习了~~谢谢各位大大~~显示全部
学习了~~谢谢各位大大~~收起
银行 · 2011-02-15
浏览3801
风影子风影子数据库管理员深圳
我基本按你的都做了,除了第1点我不确定对不对外,其它的都按你的做了,还是不行,估计还是少lic文件的问题。显示全部
我基本按你的都做了,除了第1点我不确定对不对外,其它的都按你的做了,还是不行,估计还是少lic文件的问题。收起
互联网服务 · 2011-02-11
浏览3782
风影子风影子数据库管理员深圳
sbttest test不成功1.tdp相关配置文件出错2.tdperror.log权限不够3.oracle用户需添加变量 export LANG=e ...少东家 发表于 2011-2-11 12:42 好的,我马上试试。但我机器上没有/opt/tivoli/tsm/client/oracle/bin/agent.lic这个文件,是否把这个文件弄过来就行了?...显示全部
sbttest test不成功
1.tdp相关配置文件出错
2.tdperror.log权限不够
3.oracle用户需添加变量 export LANG=e ...
少东家 发表于 2011-2-11 12:42


好的,我马上试试。但我机器上没有
/opt/tivoli/tsm/client/oracle/bin/agent.lic
这个文件,是否把这个文件弄过来就行了?收起
互联网服务 · 2011-02-11
浏览3814
风影子风影子数据库管理员深圳
之前的错误信息是[oracle@xiaxh ~]$ sbttest testThe sbt function pointers are loaded from libobk.so library.Return code -1 from sbtinit, bsercoer = 7011, bsercerrno = 106sbtopen: System error - eg. malloc, fork errors在网上查了说是errno=106的意思是某些...显示全部
之前的错误信息是

[oracle@xiaxh ~]$ sbttest test
The sbt function pointers are loaded from libobk.so library.
Return code -1 from sbtinit, bsercoer = 7011, bsercerrno = 106
sbtopen: System error - eg. malloc, fork errors

在网上查了说是
errno=106的意思是某些文件不可访问或者不可写。

于是我把log目录给了777权限之后再执行sbttest test
[oracle@xiaxh ~]$ sbttest test
The sbt function pointers are loaded from libobk.so library.
Return code -1 from sbtinit, bsercoer = 7011, bsercerrno = 2512
sbtopen: System error - eg. malloc, fork errors

看了日志和我查的贴子报一样的错
02/11/2011 01:27:35 TID<3082> ==> ANU2512E Could not open license file: /opt/tivoli/tsm/client/oracle/bin/agent.lic
02/11/2011 01:39:23 TID<3104> ==> ANU2512E Could not open license file: /opt/tivoli/tsm/client/oracle/bin/agent.lic收起
互联网服务 · 2011-02-11
浏览4109
风影子风影子数据库管理员深圳
[root@xiaxh bin]# ./tdpoconf showenvironmentIBM Tivoli Storage Manager for Databases:Data Protection for OracleVersion 5, Release 5, Level 2.0(C) Copyright IBM Corporation 1997, 2009. All rights reserved.Data Protection for Oracle Information Version...显示全部
[root@xiaxh bin]# ./tdpoconf showenvironment


IBM Tivoli Storage Manager for Databases:
Data Protection for Oracle
Version 5, Release 5, Level 2.0
(C) Copyright IBM Corporation 1997, 2009. All rights reserved.


Data Protection for Oracle Information
Version:              5
Release:              5
Level:                2
Sublevel:             0
Platform:             32bit TDPO Linux86

Tivoli Storage Manager Server Information
Server Name:          SERVER1
Server Address:       10.8.3.10
Server Type:          Linux/i386
Server Port:          1500
Communication Method: TCP/IP

Session Information
Owner Name:           
Node Name:            xiaxh
Node Type:            TDPO Linux86
DSMI_DIR:             /opt/tivoli/tsm/client/api/bin
DSMI_ORC_CONFIG:      /opt/tivoli/tsm/client/api/bin/dsm.opt
TDPO_OPTFILE:         /opt/tivoli/tsm/client/oracle/bin/tdpo.opt
Password Directory:   /opt/tivoli/tsm/client/oracle/bin
Compression:          FALSE
License Information:  License File Error - see tdpoerror.log for details

看来真是lic的问题了,和那个贴子基本完全一样的状况了。不知道这个lic的问题要怎么解决?网上有原厂光盘下载么,知道的给个地址好不?收起
互联网服务 · 2011-02-11
浏览3765
风影子风影子数据库管理员深圳
./tdpoconf password执行成功了,开始不成功是因为两个配置文件中的nodename和注册的节点名弄错了,我弄成client的节点名了,实际上应当是机器名,改对后就成功了。但sbttest test还是执行不成功,继续求解。...显示全部
./tdpoconf password执行成功了,开始不成功是因为两个配置文件中的nodename和注册的节点名弄错了,我弄成client的节点名了,实际上应当是机器名,改对后就成功了。

但sbttest test还是执行不成功,继续求解。收起
互联网服务 · 2011-02-11
浏览3768
风影子风影子数据库管理员深圳
很有可能是lic的问题rockguo 发表于 2011-2-11 08:58 那要怎么解决呢?用原厂的光盘安装么?显示全部
很有可能是lic的问题
rockguo 发表于 2011-2-11 08:58



那要怎么解决呢?用原厂的光盘安装么?收起
互联网服务 · 2011-02-11
浏览3783

提问者

风影子
数据库管理员深圳
擅长领域: 服务器LinuxUnix

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2011-02-10
  • 关注会员:2 人
  • 问题浏览:15030
  • 最近回答:2017-11-10
  • X社区推广