2013年5月9日 星期四

設定TDPO


1.設定tdpo.opt
---------------------
cd /usr/tivoli/tsm/client/oracle/bin64/
copy tdpo.opt.smp to tdpo.opt
修改內容如下:
DSMI_ORC_CONFIG    /usr/tivoli/tsm/client/oracle/bin64/dsm.opt
DSMI_LOG           /tmp
TDPO_NODE          <nodename> TSM設定的node name

2.建立dsm.sys
---------------------
copy /usr/tivoli/tsm/client/api/bin64/dsm.sys.smp to
     /usr/tivoli/tsm/client/oracle/bin64/dsm.sys
修改內容如下:
SErvername  tdpo
CHANGINGRETRIES 0
NODENAME <nodename> TSM設定的node name
PASSWORDACCESS prompt
COMMMethod         TCPip
TCPPort            1500
TCPServeraddress   <address> TSM Server的address

3.建立dsm.opt
---------------------
cd /usr/tivoli/tsm/client/oracle/bin64/
產生dsm.opt,內容如下:
SERVERNAME tdpo

4.在TSM上面註冊TDPO NOde(option)
------------------------------------------------
在TSM上面註冊Oracle Server
TSM:TSM_SERVER> reg node <nodename> orabakpw maxnummp=2 passexp=0

使用RMAN catalog的archiving and expiration設定來控制backup retention
TSM:TSM_SERVER> update node <nodename> backupdelete=yes

5.設定TSM Copy Group Options(option)
------------------------------------------------
因為RMAN每次備份產生的檔案都是唯一的,使得TSM上面備份的檔案永遠不會過期,
所以要設定copy group attribute : verdeleted = 0,讓TDPO可以從TSM backup storage pool
移除RMAN設定成inactive or expired的檔案
TSM:TSM_SERVER> update copygroup standard standard standard verdeleted=0

6.產生TSM Server使用的密碼檔
------------------------------------------
為了不使每次做RMAN backup都必須輸入密碼,我們可以建立密碼檔
先看環境設定:
root@hostname> tdpoconf showenvironment
或是
root@hostname> tdpoconf showenvironment -tdpo_optfile=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt


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


ANS1035S (RC406)  Options file '*' could not be found.

如果發生上面的錯誤,請依照下面指示除錯:
copy /usr/tivoli/tsm/client/ba/bin/dsm.opt and dsm.sys to
        /usr/tivoli/tsm/client/api/bin64


設定密碼:
root@hostname> tdpoconf password
或是
root@hostname> tdpoconf password -tdpo_optfile=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt

7.建立symbolic links in the Oracle library directory
---------------------------------------------------------
oracle@hostname> ln -s /usr/lib/libobk64.a $ORACLE_HOME/lib/libobk.a

8.測試TDPO連線
--------------------------
設定TDPO_OPTFILE環境變數指向tdpo.opt
oracle@hostname> export TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt
oracle@hostname> sbttest test
The sbt function pointers are loaded from libobk.a(shr.o) library.
Return code -1 from sbtinit, bsercoer = 7011, bsercerrno = 106
sbtopen: System error - eg. malloc, fork errors

確保 /usr/tivoli/tsm/client/oracle/bin64/tdpoerror.log 或是 /tmp/tdpoerror.log,
ORACLE用戶要有寫入權限

依照上文的設定,我們改變/tmp/tdpoerror.log 的權限:
chmod 777 /tmp/tdpoerror.log

oracle@hostname> 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

99.其他參考文件
-------------------------
IBM TSM:
http://publib.boulder.ibm.com/infocenter/tivihelp/v1r1/index.jsp?topic=%2Fcom.ibm.itsmerp.doc%2Ffbro000017.htm
TDP FOR TSM 單機實作:
http://www.aixchina.net/club/viewthread.php?action=printable&tid=70057

沒有留言:

張貼留言