NBU调用RMAN时报RMAN-01009错误

同事在测NBU调用RMAN进行备份时,出现如下错误:

Both single and double quotes(’ or ”) are accepted for a quoted-string.
Quotes are not required unless the string contains embedded white-space.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00552: syntax error in command line arguments
RMAN-01009: syntax error: found “dot”: expecting one of: “double-quoted-string, equal, identifier, single-quoted-string”
RMAN-01007: at line 2 column 1 file: command line arguments
Script ./hot_database_backup.sh
==== ended in error on Fri Feb 20 15:47:36 CST 2009 ====

发生这个错误的原因是:热备脚本hot_database_backup.sh 中的$RMAN_LOG_FILE变量来自shell变量$0,使用了相对路径,而有些版本rman不支持相对路径,因此执行时报错。

解决方法是给$RMAN_LOG_FILE予绝对路径:

修改$RMAN_LOG_FILE变量:

原来:

RMAN_LOG_FILE=${0}.out

修改成:

$RMAN_LOG_FILE=`pwd`/${0}.out

更详细的介绍可参考veritas的文档:Document ID: 249670

  
« 小米长牙了:)            Home            一些事 »

1 Comment so far

Leave a comment

Name(required)
Mail (will not be published)(required)
Website

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URLs must be fully qualified (eg: http://www.dbifan.com),and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.

    搜索本站

    站点日历

    2月 2009
    « 1   5 »
     1
    2345678
    9101112131415
    16171819202122
    232425262728  

    订阅本站

    文章分类

    最新日志

    热点文章

    日志存档

    常用标签