千家信息网

rman备份密码报错的示例分析

发表于:2025-02-02 作者:千家信息网编辑
千家信息网最后更新 2025年02月02日,小编给大家分享一下rman备份密码报错的示例分析,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!同事备份遇到了一个报错,提示
千家信息网最后更新 2025年02月02日rman备份密码报错的示例分析

小编给大家分享一下rman备份密码报错的示例分析,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

同事备份遇到了一个报错,提示用户密码拒绝。经过确认用户和密码都没有问题,那可能是什么问题呢!

1、现象

$$sh rman.sh Recovery Manager: Release 11.2.0.4.0 - Production on Tue Feb 13 22:12:56 2018Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.connected to target database: ORCL (DBID=1483481154)RMAN> 2> 3> using target database control file instead of recovery catalogRMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-12001: could not open channel t1RMAN-10008: could not create channel contextRMAN-10003: unable to connect to target databaseORA-01017: invalid username/password; logon deniedRMAN>

2、部分脚本内容

$vi rman.sh$ORACLE_HOME/bin/rman target / <

3、解决方法

$$cat rman.sh $ORACLE_HOME/bin/rman target / <

shell 脚本中特殊符号需要使用\转义处理一下。

再次执行

$sh rman.sh Recovery Manager: Release 11.2.0.4.0 - Production on Tue Feb 13 22:13:20 2018Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.connected to target database: ORCL (DBID=1483481154)RMAN> 2> 3> using target database control file instead of recovery catalogallocated channel: t1channel t1: SID=46 device type=DISKreleased channel: t1RMAN>

当我们在shell脚本里执行相关命令,一定要关注特殊符号的转义问题。

以上是"rman备份密码报错的示例分析"这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注行业资讯频道!

0