【RAC】lsnrctl 工具不適合管理監聽
oracle 11gr2 不應使用lsnrctl管理LISTENER,而需使用srvctl或crsctl工具管理,否則lsnrctl將不會識別endpoints_listener.ora中的資訊,造成監聽沒有在必要地址、埠上工作。
grid@rac1:/home/grid>cat /opt/11202/11.2.0/grid/network/admin/endpoints_listener.ora
LISTENER_RAC1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=10.250.7.225)(PORT=1521)(IP=FIRST)))) # line added by Agent
grid@rac1:/home/grid>cat /opt/11202/11.2.0/grid/network/admin/listener.ora
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
grid@rac1:/home/grid>
grid@rac1:/home/grid>lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 04-DEC-2011 22:15:09
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 03-DEC-2011 22:55:26
Uptime 0 days 23 hr. 19 min. 42 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/11202/11.2.0/grid/network/admin/listener.ora
Listener Log File /opt/rac/grid/diag/tnslsnr/rac1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.250.7.225)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.250.7.111)(PORT=1521)))
Services Summary...
Service "rac" has 1 instance(s).
Instance "rac1", status READY, has 1 handler(s) for this service...
Service "racXDB" has 1 instance(s).
Instance "rac1", status READY, has 1 handler(s) for this service...
The command completed successfully
grid@rac1:/home/grid>
grid@rac1:/home/grid>lsnrctl reload
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 04-DEC-2011 22:15:36
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
The command completed successfully
grid@rac1:/home/grid>lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 04-DEC-2011 22:15:38
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 03-DEC-2011 22:55:26
Uptime 0 days 23 hr. 20 min. 12 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/11202/11.2.0/grid/network/admin/listener.ora
Listener Log File /opt/rac/grid/diag/tnslsnr/rac1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
The listener supports no services
The command completed successfully
grid@rac1:/home/grid>
使用srvctl 工具重新啟動監聽
grid@rac1:/home/grid>srvctl stop listener
grid@rac1:/home/grid>srvctl status listener
監聽程式 LISTENER 已啟用
監聽程式 LISTENER 未執行
grid@rac1:/home/grid>srvctl start listener
grid@rac1:/home/grid>
grid@rac1:/home/grid>
grid@rac1:/home/grid>srvctl status listener
監聽程式 LISTENER 已啟用
監聽程式 LISTENER 正在節點上執行: rac2,rac1
grid@rac1:/home/grid>
grid@rac1:/home/grid>
grid@rac1:/home/grid>lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 04-DEC-2011 22:16:52
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 04-DEC-2011 22:16:40
Uptime 0 days 0 hr. 0 min. 11 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/11202/11.2.0/grid/network/admin/listener.ora
Listener Log File /opt/rac/grid/diag/tnslsnr/rac1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.250.7.225)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.250.7.111)(PORT=1521)))
The listener supports no services
The command completed successfully
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22664653/viewspace-712696/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 11g RAC 監聽日常管理Oracle
- rac監聽不能動態註冊
- oracle rac scan監聽更改埠號Oracle
- 12C RAC 修改監聽埠
- 11g rac監聽配置解析
- oracle 資料庫lsnrctl監聽的日誌路徑和trace檔案Oracle資料庫
- 如何在rac環境中增加監聽
- 融雲猿桌派:聽說女生不適合搞 IT,哈?
- oracle rac的scan監聽狀態Not All Endpoints RegisteredOracle
- 究竟你適不適合買Mac?Mac
- 注意別聽人忽悠!其實這4類人並不適合IT行業行業
- Python適合不適合零基礎學習呢?Python
- Android 監聽生命週期工具庫Android
- Flutter - 生命週期監聽和管理Flutter
- 如何選擇合適的小型專案管理工具?專案管理
- python到底適不適合大型專案呢?Python
- 監聽 watch props物件屬性監聽 或深度監聽物件
- 選擇最適合的線上專案管理工具專案管理
- Kubernetes不適合哪些企業? - qovery
- IT專案管理工具推薦:選擇最適合你的優秀工具專案管理
- 哪種代理適合價格監控?
- 專案管理必備,如何選擇適合自己的專案管理工具?專案管理
- 5 個適合系統管理員使用的告警視覺化工具視覺化
- 監聽MySQL的binlog日誌工具分析:CanalMySql
- Spring Boot 中動態管理 Kafka 監聽器Spring BootKafka
- sql server 警報管理及實時監聽SQLServer
- Oracle OCP(44):LSNRCTLOracle
- 如何選擇合適的 BI 工具?
- 伺服器管理工具有適合vps撥號伺服器?伺服器
- WPF 實現檔案/資料夾監聽工具
- watch監聽
- 敏捷創業(1)問問自己適不適合當老闆?敏捷創業
- 選擇最適合的產品研發和運營管理工具
- 適合寫筆記的文字筆記管理工具Keep It for Mac好用嗎?筆記Mac
- 為什麼說Docker 不適合跑 MySQL?DockerMySql
- python為什麼不適合web開發PythonWeb
- Python 並不適合職場程式設計Python程式設計
- 如何根據需求選擇合適的資料庫管理工具?Navicat OR DBeaver資料庫
- 推薦幾款專案管理工具 總有一款適合你專案管理