今天在写一RAC数据库的rman删除归档的脚本时,遭遇以下报错:
因为该脚本之前在另外一套RAC上是没问题的,为啥在这套库上出了问题?先查看了下RMAN的配置信息,发现与之前没问题的那套库之间还是有些差异,差异内容主要体现在configure channel上,根据官方文档的解释如下:
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of delete command at 02/20/2014 10:26:51
RMAN-12001: could not open channel ORA_DISK_1
RMAN-10008: could not create channel context
RMAN-10003: unable to connect to target database
ORA-01017: invalid username/password; logon denied
因为该脚本之前在另外一套RAC上是没问题的,为啥在这套库上出了问题?先查看了下RMAN的配置信息,发现与之前没问题的那套库之间还是有些差异,差异内容主要体现在configure channel上,根据官方文档的解释如下:
Symptoms
~~~~~~~~~
A RMAN command such as "delete" results in errors like these:
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of delete command at 09/05/2006 17:26:51
RMAN-12001: could not open channel ORA_DISK_1
RMAN-10008: could not create channel context
RMAN-10003: unable to connect to target database
ORA-01017: invalid username/password; logon denied
Changes
~~~~~~~~
Modification or addition of the persistent configuration parameter for
connecting to the target database.
Cause
~~~~~~
The RMAN "show all" command will show a setting like this one or with an incorrect
password, incorrect userid, etc:
CONFIGURE CHANNEL 1 DEVICE TYPE DISK CONNECT '*';
Solution
~~~~~~~~~
1) Return this persistent configuration parameter back to the default setting
as follows:
RMAN> CONFIGURE CHANNEL 1 DEVICE TYPE DISK CLEAR;
of change the configuration to a correct value
RMAN> CONFIGURE CHANNEL 1 DEVICE TYPE DISK connect '<username/password>';
2) Re-submit the failing operation.
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




