說明:在DataGuard的搭建中,運行rman恢復的時候報錯ORA-12528的錯誤;
腳本如下:RMAN> connect auxiliary sys/Oracle@SCMPRD02
解決步驟:
1、檢查監(jiān)聽是否啟動,腳本:tnsping SCMPRD02
方法一:配置數據庫的監(jiān)聽為靜態(tài)參數步驟:在ORACLE_HOME/network/admin 下面檢查是否有l(wèi)istener.ora參數文件,如果沒有的話運行netca創(chuàng)建數據庫的監(jiān)聽,配置完成的監(jiān)聽文件如下:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = SCMPRDDB02)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
ADR_BASE_LISTENER = /u01/app/oracle
方法二:修改tnsnames.ora文件
SCMPRD02 =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)(HOST = WELL)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED) (
SERVICE_NAME = SCMPRD02)
(UR = A) //增加該備注//
)
)
總結:ORA-12528: TNS:listener: all appropriate instances are blocking new connections
因為我們復制數據庫只是在nomount下打開,而數據庫并沒有mount,在11g下所有的監(jiān)聽都是動態(tài)監(jiān)聽,而只有在數據庫mount以后,PMON進程起來以后,才能動態(tài)注冊。所以對輔助數據庫沒有辦法注冊,只能被鎖住。所以修改數據庫的監(jiān)聽為靜態(tài)監(jiān)聽,或者增加(UR=A)即可解決問題。謝謝閱讀,希望能幫到大家,請繼續(xù)關注腳本之家,我們會努力分享更多優(yōu)秀的文章。