TSM ORACLE 备份调度

/home/oracle9/scfull_bk.rman

run
{allocate channel t1 type 'sbt_tape' parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin/tdpo.opt)';
backup format '%d_full_%t_%s_%p' database;
sql 'alter system archive log current';
backup format '%d_arch_%t_%s_%p' archivelog all delete input;
release channel t1;
}


/home/oracle9/scfull_bk.sh

#!/usr/bin/ksh
export NLS_DATE_FORMAT=YYYY-MM-DD HH24:MI:SS
export ORACLE_HOME=/u01/oracle9/app/oracle/product/9.2.0/db_1
export ORACLE_HOME=SOURCE9
PATH=$ORACLE_HOME/bin:$PATH;export PATH
su oracle -c "rman target sys/sys cmdfile /home/oracle9/scfull_bk.rman msglog /home/oracle9/rman.log"

dsmadmc注册调度TSM>
def sched standard daily_scfullbk_oracle desc="Daily Online ora9i full Backup" action=command bjects="/home/oracle9/scfull_bk.sh" starttime=00:05 duration=15 duru=minutes period=1 perunits=day dayofweek=any
TSM>define association standard daily_scfullbk_oracle WESTZQ

使用console的 Schedule Configuration可以很方便的配置

启动调度
nohup dsmc schedule -password=admin > /dev/null &

 


 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8242091/viewspace-604377/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8242091/viewspace-604377/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值