ORA-00130: invalid listener address
今天再重啟測試庫的時候,發現有這麼一個報錯資訊:
ORA-00130: invalid listener address (ADDRESS=(PROTOCOL=TCP)(HOST=test2)(PORT=1521))
開始懷疑是監聽得設定有問題,開啟監聽檔案,內容如下:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.107)(PORT = 1521))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /opt/oracle/product/9.2.0)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = sc2test)
(ORACLE_HOME = /opt/oracle/product/9.2.0)
(SID_NAME = sc2test)
)
)
奇怪的是在監聽中並沒有發現HOST=test2的資訊,再檢視/etc/hosts
admin]$ more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.201 test
也沒有發現test2的資訊
最後檢查hostname
[oracle@test2 admin]$ hostname
test2
終於發現test2的蹤跡了,但為什麼會監聽test2呢?
這是一個多IP伺服器,同時存在著3個IP。
我估計是oracle在啟動的時候會同時註冊一個與hostname相關的listener,但由於調整了/etc/hosts,hostname並不是伺服器的名字,所以導致了錯誤。
修正這個錯誤很簡單,執行
hostname test
把hostname修改為與/etc/hosts中本機IP對應的hostname相同即可。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/231499/viewspace-63735/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 關於“INS-40922 Invalid Scan Name – Unresolvable to IP address”
- ORA-00130 引發的故障
- Listener
- Listener refused the connection with the following error:ORA-12514, TNS:listenerError
- [LeetCode] Validate IP AddressLeetCode
- fitter&listener
- JavaWeb-ListenerJavaWeb
- Filter&ListenerFilter
- Redo Byte Address (RBA)(轉)
- 7、listener監聽
- 4.5.1.3 srvctl add listener
- mysql bind_address如何配置多個地址 mysql bind-address選項MySql
- Oracle啟動出現了ORA-00119,ORA-00130Oracle
- listener_scan1.log、listener.log監聽日誌清理
- cluster-wide IP address managementIDE
- JavaScript invalid 事件JavaScript事件
- found an invalid color
- Presto Event Listener開發REST
- Sanic listener() 方法/函式函式
- ORACLE之手動註冊監聽listener。alter system set local_listener="XXX"Oracle
- Invalid time zone indicator ‘ ‘Indicator
- StreamCorruptedException: invalid stream headerExceptionHeader
- Cookie,Session Filter,Listener詳解CookieSessionFilter
- Oracle listener log配置與管理Oracle
- oracle-listener 4GOracle
- Oracle OCP(43):listener.oraOracle
- Redis 啟動報錯Address already in useRedis
- python: invalid value encountered in divide以及invalid value encountered in double_scalars報錯PythonIDE
- TNS問題排查 The listener supports no services
- day25-Listener監聽器
- Oracle listener log 日誌分析方法Oracle
- 深入理解Flutter的Listener元件Flutter元件
- 關於RAC的remote_listenerREM
- SpringBoot如何註冊Servlet、Filter、ListenerSpring BootServletFilter
- OSError: [Errno 22] Invalid argumentError
- SSL - SSLHandshakeException: No subject alternative names matching IP address foundException
- telnet localhost 44444 telnet: connect to address ::1: Connection refusedlocalhost
- 解決 eclipse出現 Address already in use: bindEclipse