日期:2014-05-17  浏览次数:20942 次

crontab调用rman报错!!!!!!在线等待!!!!!急
报错内容:
Message file RMAN<lang>.msb not found
Verify that ORACLE_HOME is set properly

平台redhat linux +oracle11.2.0
我在oracle用户下创建crontab任务:
30 1 * * * 1-5 /home/oracle/rman_full.sh > /home/oracle/rman_full.log 2>&1

其中/home/oracle/rman_full.sh的内容:
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
export ORACLE_SID=dbm
export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH
export LANG=en_US.utf8
/u01/app/oracle/product/11.2.0/db_1/bin/rman cmdfile=/home/oracle/rman.txt msglog=/home/oracle/rman.log

其中/home/oracle/rman.txt的内容:
connect target /
list backupset;


执行失败,每次查看/home/oracle/rman_full.log的内容都是:
Message file RMAN<lang>.msb not found
Verify that ORACLE_HOME is set properly

------解决方案--------------------
奇怪,怎么没有人回答啊?请高手帮忙啊!!!

------解决方案--------------------
补充说明:这些rman打头的文件我都设置权限如下:
chown oracle:dba rman*
chmod 777 rman*
------解决方案--------------------
这个 rman_full.sh 里的ramn 备份代码 你手动测试过了么??
------解决方案--------------------
30 17 * * 0,4 su - oracle -c /oracle/rmanscripts/rmanlevel0.sh

把oracle 用户加入cron 组后,在crontab 中就不必指出执行的用户
你再百度看看 ,祝你好运