當啟動第二個listener時
$ lsnrctl start
LSNRCTL for IBM/AIX RISC System/
(c) Copyright
TNS
$ oerr tns
// *Cause: Another listener is already listening on one of the ADDRESSes
// specified
// *Action: Shutdown the previous listener specified by the listener name
// before starting this one
問題產生原因
兩個實例的LISTENER
解決辦法
修改key的值即可
o
# LISTENER
# Generated by Oracle configuration tools
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = loopback)(PORT =
)
)
(DESCRIPTION =
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
)
(ADDRESS = (PROTOCOL = TCP)(HOST = loopback)(PORT =
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle)
(PROGRAM = extproc)
)
(SID_DESC =
(ORACLE_HOME = /oracle)
(SID_NAME = o
)
)
# LISTENER
# Generated by Oracle Net
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = TESTo
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = loopback)(PORT =
)
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = ora
(ORACLE_HOME = /ora
(PROGRAM = extproc)
)
)
From:http://tw.wingwit.com/Article/program/Oracle/201311/18431.html