使用duplicate命令做dataguard時遇到 ORA-12523

msdnchina發表於2011-07-15

在primary端連線standby時,有如下的報錯:

RMAN> connect auxiliary sys/aaaaaa@STANDBY

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04006: error from auxiliary database: ORA-12523: TNS:listener could not find instance appropriate for the client connection

後來搜了一下,

http://www.oracleblog.org/working-case/service-status-is-blocked/

記錄了跟我一樣的情況。

解決方法是將standby庫的監聽檔案改為靜態註冊。可是我已經改為靜態註冊了啊,莫非寫的有問題?複查了standby庫上的listener.ora檔案,靠,寫錯了。。。如下的是正確的listener.ora



[oracle@rhel43 admin]$ cat listener.ora
# LISTENER.ORA Network Configuration File: /u01/app/product/9i/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rhel43)(PORT = 1521))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/product/9i/db_1)
(PROGRAM = extproc)

)


(SID_DESC =
(GLOBAL_DBNAME = orac)
(ORACLE_HOME = /u01/app/product/9i/db_1)
(SID_NAME = orac)
)


)

--粗體大字型是新加的。

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/161195/viewspace-1052471/,如需轉載,請註明出處,否則將追究法律責任。

相關文章