rman備份密碼報(bào)錯(cuò)的示例分析

小編給大家分享一下rman備份密碼報(bào)錯(cuò)的示例分析,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!

你所需要的網(wǎng)站建設(shè)服務(wù),我們均能行業(yè)靠前的水平為你提供.標(biāo)準(zhǔn)是產(chǎn)品質(zhì)量的保證,主要從事成都網(wǎng)站建設(shè)、網(wǎng)站制作、企業(yè)網(wǎng)站建設(shè)、移動(dòng)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)、成都品牌網(wǎng)站建設(shè)、網(wǎng)頁制作、做網(wǎng)站、建網(wǎng)站。創(chuàng)新互聯(lián)建站擁有實(shí)力堅(jiān)強(qiáng)的技術(shù)研發(fā)團(tuán)隊(duì)及素養(yǎng)的視覺設(shè)計(jì)專才。

同事備份遇到了一個(gè)報(bào)錯(cuò),提示用戶密碼拒絕。經(jīng)過確認(rèn)用戶和密碼都沒有問題,那可能是什么問題呢!

1、現(xiàn)象

<roidb01:orcl:/u01/app/oracle/product/11.2.0/dbhome_1/network/admin>$
<roidb01:orcl:/u01/app/oracle/product/11.2.0/dbhome_1/network/admin>$sh rman.sh 

Recovery Manager: Release 11.2.0.4.0 - Production on Tue Feb 13 22:12:56 2018

Copyright (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 catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-12001: could not open channel t1
RMAN-10008: could not create channel context
RMAN-10003: unable to connect to target database
ORA-01017: invalid username/password; logon denied

RMAN>

2、部分腳本內(nèi)容

<roidb01:orcl:/u01/app/oracle/product/11.2.0/dbhome_1/network/admin>$vi rman.sh
$ORACLE_HOME/bin/rman target / <<EOF
run{
allocate channel t1 device type disk connect 'sys/xxxx$2017_sys@orcl';
#發(fā)現(xiàn)這個(gè)密碼里有特殊符號(hào)$
}
exit
EOF

3、解決方法

<roidb01:orcl:/u01/app/oracle/product/11.2.0/dbhome_1/network/admin>$
<roidb01:orcl:/u01/app/oracle/product/11.2.0/dbhome_1/network/admin>$cat rman.sh 
$ORACLE_HOME/bin/rman target / <<EOF
run{
allocate channel t1 device type disk connect 'sys/xxxx\$2017_sys@orcl';
}
exit
EOF

shell 腳本中特殊符號(hào)需要使用\轉(zhuǎn)義處理一下。

再次執(zhí)行

<roidb01:orcl:/u01/app/oracle/product/11.2.0/dbhome_1/network/admin>$sh rman.sh 

Recovery Manager: Release 11.2.0.4.0 - Production on Tue Feb 13 22:13:20 2018

Copyright (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 catalog
allocated channel: t1
channel t1: SID=46 device type=DISK
released channel: t1

RMAN>

當(dāng)我們?cè)趕hell腳本里執(zhí)行相關(guān)命令,一定要關(guān)注特殊符號(hào)的轉(zhuǎn)義問題。

以上是“rman備份密碼報(bào)錯(cuò)的示例分析”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!

本文名稱:rman備份密碼報(bào)錯(cuò)的示例分析
當(dāng)前路徑:http://muchs.cn/article12/ghoodc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站建設(shè)、微信公眾號(hào)App開發(fā)、品牌網(wǎng)站設(shè)計(jì)、軟件開發(fā)響應(yīng)式網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)