环境:AIX系统的ORACLE R2
Windows2003的TSM5.4
IBM带库TS3100
1、查看TSM日志:q actlog begind=-3
如下:
日期/时间: 10/13/2009 09:45:54
消息: ANR2017I 管理员 ADMIN 发出命令:QUERY SERVER STORAGECSXXDBS02 F=D (会话: 86)
日期/时间: 10/13/2009 09:56:11
消息: ANR3605E 无法与存储代理程序通信。 (会话: 81)
日期/时间: 10/13/2009 09:56:11
消息: ANR3605E 无法与存储代理程序通信。 (会话: 84)
日期/时间: 10/13/2009 09:56:34
消息: ANR0406I 节点 ORA_DBS01(AIX)(Tcp/Ip 10.21.8.20(43769))的会话 87 已启动。 (会话: 87)
日期/时间: 10/13/2009 09:56:34
消息: ANR0403I 节点 ORA_DBS01(AIX)的会话 87 已终止。 (会话: 87)
日期/时间: 10/13/2009 10:05:38
消息: ANR0406I 节点 ORA_DBS01(AIX)(Tcp/Ip 10.21.8.20(43839))的会话 88 已启动。 (会话: 88)
日期/时间: 10/13/2009 10:05:38
消息: (会话: 88, 节点: ORA_DBS01) ANS4048W LAN-Free connection failed.(会话: 88)
日期/时间: 10/13/2009 10:05:38
消息: ANR2579E 节点 ORA_DBS01 的域 ORA_TAPE 的调度 DATE.SH 失败(返回码 126)。 (会话: 88)
2、Oracle数据库的rman备份日志:
using target database control file instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on t1 channel at 10/13/2009 09:47:43
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27000: skgfqsbi: failed to initialize storage subsystem (SBT) layer
IBM AIX RISC System/6000 Error: 106: Reserved errno was encountered
Additional information: 7011
ORA-19511: Error received from media manager layer, error text:
SBT error = 7011, errno = 106, sbtopen: system error
Recovery Manager complete.
解决步骤:
1、确定TSM 客户端(ORACLE服务器端)的配置文件正确
TSM Client的三个配置文件,一般位于
/usr/tivoli/tsm/client/ba/bin/dsm.sys这是配置TSM Client的调度节点文件
/usr/tivoli/tsm/client/api/bin64/dsm.sys
/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt这是数据库的配置文件
2、进入ORACLE的RMAN查看备份的设置(数据库RMAN的默认备份是到磁盘,需要该成磁带)
$ rman target/
Recovery Manager: Release 10.2.0.1.0 - Production on Mon Oct 12 18:19:08 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: BJOMS (DBID=1676153908)
RMAN> show all;
using target database control file 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 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/oms/102_64/dbs/snapcf_BJOMS.f';
# default
配置控制文件自动备份
RMAN>CONFIGURE CONTROLFILE AUTOBACKUP ON;
配置默认备份空间为磁带
RMAN> configure default device type to 'SBT_TAPE';
new RMAN configuration parameters:
CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
new RMAN configuration parameters are successfully stored
配置IO设备
RMAN> CONFIGURE DEVICE TYPE SBT PARALLELISM 2;
再次查看RMAN配置:
RMAN> show all;
3、查看/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt文件中的路径是否有权限
如下:确认如下的权限系统的oracle用户是否有读写的权限。
DSMI_ORC_CONFIG /usr/tivoli/tsm/client/oracle/bin64/dsm.opt
DSMI_LOG /usr/tivoli/tsm/client/oracle/bin
TDPO_NODE ORA_DBS01
TDPO_PSWDPATH /usr/tivoli/tsm/client/oracle/bin64
因为系统oracle用户对/usr/tivoli/tsm/client/oracle/bin没有读写的权限导致了上面的错误。
可以把该目录设置成oracle用户的权限,如:chown -R oracle:dba /usr/tivoli/tsm/client/oracle/bin
或者把/usr/tivoli/tsm/client/oracle/bin目录改成其他oracle用户可以读写的目录(如:/tmp)
再次执行备份,正常!
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12778571/viewspace-616429/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12778571/viewspace-616429/