实验环境为WIN SERVER + LINUX 客户端
Server
TSMSRV5360_WIN.exe
TSM_ISC_5320_WIN.exe
TSMAdminCenter5330.exe
Client
TSM536C_LINUX86.tar
TDP-Oracle.i386.bin
下载地址
ftp://ftp.software.ibm.com/storage/tivoli-storage-management/maintenance
Server的安装没什么好说的,NEXT就是,安装完服务器端和控制台
Client 的安装,需要安装TSM536C_LINUX86.tar的TIVsm-API.i386.rpm, TIVsm-BA.i386.rpm
TDP-Oracle.i386.bin文件赋予执行权限,直接运行既可,注意,在RH4自带的JAVA下无法弹出安装界面,使用ORACEL10的JDK就可以了,由于TDP for linux的版本不带license,需要找个win下的agent.lic,拷贝到/opt/tivoli/tsm/client/oracle/bin/agent.lic
安装完后,登录Server的控制台,会进行系统初始化,默认一路下去就可以,只需要在Client Node Configuration Wizard中配置上一个客户端,客户端使用默认的STANDARD策略
接下来先ISC添加服务器,通过http://hostname:8421/ibm/console访问,用户名为iscadmin,密码是在前面安装过程中设置的。进去后,在tivol storage manage中点击Server Maintenance连接,进去Maintenance script界面,配置TSM服务器。
添加用于oracle备份的存储池,在ISC界面中,点击Storage Devices,在下拉列表中点击Add a Storage pool,创建新的存储池并添加设备,将设备添加进OraclePool中
下面,将Oracle存储池分配给Standard策略,登录SERVER服务器,选择Wizard中的 Client Node Configuration Wizard,进入到Define TSM client nodes and policy中,在左边找到定义的主机,选择主机,点击Edit,进去后选择Standard策略,在点击Edit,选择Storage pool为ORACLEPOOL
下面进行客户端配置:
/opt/tivoli/tsm/client/ba/bin/dsm.sys
SErvername tsmserver
COMMMethod TCPip
TCPPort 1500
TCPServeraddress 192.168.123.129
Passwordaccess prompt
/opt/tivoli/tsm/client/ba/bin/dsm.opt
SErvername tsmserver
测试:
dsmc,用户名密码为最开始服务器初始化时添加客户端设置的
tsm> incr /tmp
Incremental backup of volume '/tmp'
Successful incremental backup of '/tmp'
Total number of objects inspected: 1
Total number of objects backed up: 0
Total number of objects updated: 0
Total number of objects rebound: 0
Total number of objects deleted: 0
Total number of objects expired: 0
Total number of objects failed: 0
Total number of bytes transferred: 0 B
Data transfer time: 0.00 sec
Network data transfer rate: 0.00 KB/sec
Aggregate data transfer rate: 0.00 KB/sec
Objects compressed by: 0%
Elapsed processing time: 00:00:22
接着配置TDP for Oracle
将前面配置的dsm.opt dsm.sys拷贝到
/opt/tivoli/tsm/client/api/bin/dsm.sys
/opt/tivoli/tsm/client/api/bin/dsm.opt
/opt/tivoli/tsm/client/oracle/bin/tdpo.opt
*DSMI_ORC_CONFIG /opt/tivoli/tsm/client/oracle/bin/dsm.opt
*DSMI_LOG /opt/tivoli/tsm/client/oracle/bin
*TDPO_FS /adsmorc
TDPO_NODE WESTZQ
*TDPO_OWNER root
*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
然后建立libobk.so的连接:
ln -s /opt/tivoli/tsm/client/oracle/bin/libobk.so /u01/oracle9/app/oracle/product/9.2.0/db_1/lib/libobk.so
修改文件权限
/opt/tivoli/tsm/client/oracle/bin/dsm.sys oracle用户要能读
/opt/tivoli/tsm/client/oracle/bin/dsm.opt oracle用户要能读
/opt/tivoli/tsm/client/oracle/bin/tdpo.opt oracle用户要能读
/opt/tivoli/tsm/client/oracle/bin/tdpoerror.log oracle用户要能读写
tdpoconf password设置密码
测试:
[root@WESTZQ ~]# su - oracle9
[oracle9@WESTZQ ~]$ sbttest test
The sbt function pointers are loaded from libobk.so library.
-- sbtinit succeeded
Return code -1 from sbtinit, bsercoer = 0, bsercerrno = 0
Message 0 not found; product=RDBMS; facility=SBT
备份:
[oracle9@WESTZQ ~]$ export TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin/tdpo.opt
[oracle9@WESTZQ ~]$ rman target /
Recovery Manager: Release 9.2.0.8.0 - Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
connected to target database: SOURCE9 (DBID=2098103960)
RMAN> show all
2> ;
using target database controlfile instead of recovery catalog
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
RMAN configuration has no stored or default parameters
RMAN configuration has no stored or default parameters
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/oracle9/app/oracle/product/9.2.0/db_1/dbs/snapcf_SOURCE9.f'; # default
RMAN> CONFIGURE DEFAULT DEVICE TYPE TO SBT_TAPE
2> ;
new RMAN configuration parameters:
CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
new RMAN configuration parameters are successfully stored
RMAN> backup datafile 1;
Starting backup at 26-MAY-09
allocated channel: ORA_SBT_TAPE_1
channel ORA_SBT_TAPE_1: sid=11 devtype=SBT_TAPE
channel ORA_SBT_TAPE_1: Data Protection for Oracle: version 5.3.3.0
channel ORA_SBT_TAPE_1: starting full datafile backupset
channel ORA_SBT_TAPE_1: specifying datafile(s) in backupset
including current SPFILE in backupset
including current controlfile in backupset
input datafile fno=00001 name=/u01/oracle9/app/oracle/oradata/SOURCE9/system01.dbf
channel ORA_SBT_TAPE_1: starting piece 1 at 26-MAY-09
channel ORA_SBT_TAPE_1: finished piece 1 at 26-MAY-09
piece handle=06kg038i_1_1 comment=API Version 2.0,MMS Version 5.3.3.0
channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:55
Finished backup at 26-MAY-09
RMAN> list backup;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2 Full 132M SBT_TAPE 00:00:51 26-MAY-09
BP Key: 2 Status: AVAILABLE Tag: TAG20090526T104642
Piece Name: 06kg038i_1_1
SPFILE Included: Modification time: 26-MAY-09
List of Datafiles in backup set 2
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
1 Full 237139 26-MAY-09 /u01/oracle9/app/oracle/oradata/SOURCE9/system01.dbf
其他脚本
run {
allocate channel tdp1 type 'SBT_TAPE' parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin/tdpo.opt)';
backup database;
release channel tdp1;
}
run {
allocate channel tdp1 type 'SBT_TAPE' parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin/tdpo.opt)';
copy datafile 1;
release channel tdp1;
}
allocate channel for MAINTENANCE type 'SBT_TAPE' parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin/tdpo.opt)';
delete backup;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8242091/viewspace-604175/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/8242091/viewspace-604175/