Version 5,> (C) Copyright IBM Corporation 1997, 2008. All rights reserved.
Data Protection for Oracle Information
Version: 5
Release: 5
Level: 1
Sublevel: 0
Platform: 32bit TDPO Linux86
Tivoli Storage Manager Server Information
Server Name: TSM-ORA
Server Address: 10.1.1.140
Server Type: Windows
Server Port: 1500
Communication Method: TCP/IP
Session Information
Owner Name: oracle
Node Name: TSM-ORA
Node Type: TDPO Linux86
DSMI_DIR: /opt/tivoli/tsm/client/api/bin
DSMI_ORC_CONFIG: /opt/tivoli/tsm/client/oracle/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.
联系TSM server,当前密码为注册节点时的密码
[root@rhel5-ora bin]# pwd
/opt/tivoli/tsm/client/oracle/bin
[root@rhel5-ora bin]# ./tdpoconf password
IBM Tivoli Storage Manager for Databases:
Data Protection for Oracle
Version 5,> (C) Copyright IBM Corporation 1997, 2008. 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:
ANU0260I Password successfully changed.
如果是root用户来执行 tpdoconf password命令的话,需要在tdpo.opt 中添加行 TDPO_NODE RHEL5X64TSMCLIORA-ORA
确保Oracle用户对tdpoerror.log, dsierror.log这两个文件有写权限.
测试
su - oracle
rman log=/home/oracle/logs/bacup_full_`date +%y%m%d_%H%M%S`.log cmdfile=/home/oracle/script/backup_full.rman
脚本
[oracle@rhel5-ora script]$ cat backup_full.rman
connect target /
connect catalog rman/rman@RMAN
run{
allocate channel ch1 type 'sbt_tape';
BACKUP INCREMENTAL LEVEL=0 tag 'TESTDB1' format 'testdb1%d_%s_%T' DATABASE include current controlfile;
BACKUP current controlfile format 'testdb1_controlfile1%d_%s_%T';
sql 'alter system archive log current';
backup format 'testdb1_arch1%d_%s_%T' archivelog all delete input;
release channel ch1;
}
su - oracle -c "rman log=./logs/rman_backup_full_`date +%y%m%d`.log cmdfile=/home/oracle/script/backup_full.rman"