Oracle 19C 監聽無法動態註冊例項
Oracle 19C 監聽無法動態註冊例項
環境:
DB:Oracle 19.3.0.0.0
OS:Red Hat Enterprise Linux Server release 7.5 (Maipo)
問題:
Oracle 19C資料庫,將主機名由CJCDB修改為CJCOS01,同時修改了listener.ora中主機名資訊,但是監聽還是無法註冊例項。
[oracle@cjcos01 admin]$ pwd
/u01/app/oracle/product/19.0.0/dbhome_1/network/admin
[oracle@cjcos01 admin]$ cat listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = cjcos01)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
問題現象:
[oracle@cjcos01 admin]$ lsnrctl status
......
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=cjcos01)(PORT=1521)))
The listener supports no services
The command completed successfully
解決方案:
嘗試新增靜態監聽
[oracle@cjcos01 admin]$ pwd
/u01/app/oracle/product/19.0.0/dbhome_1/network/admin
[oracle@cjcos01 admin]$ cat listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = cjcdb)
(ORACLE_HOME = /u01/app/oracle/product/19.0.0/dbhome_1)
(SID_NAME = cjcdb)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = cjcos01)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
可以靜態註冊例項了
[oracle@cjcos01 admin]$ lsnrctl status
......
Services Summary...
Service "cjcdb" has 1 instance(s).
Instance "cjcdb", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
為什麼監聽可以靜態註冊例項,不能動態註冊例項呢?
可能和local_listener引數有關。
SQL> show parameter local_listener
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener string LISTENER_CJCDB
檢視tnsnames.ora中有關LISTENER_CJCDB資訊,發現對應的HOST也已經修改過了。
[oracle@cjcos01 admin]$ cat tnsnames.ora
LISTENER_CJCDB =
(ADDRESS = (PROTOCOL = TCP)(HOST = cjcos01)(PORT = 1521))
由於監聽 使用預設的 1521埠,可以將local_listener重置回之前的預設值,即空值。
SQL> alter system set local_listener='';
System altered.
手動註冊
SQL> alter system register;
System altered.
監聽可以動態註冊例項了
[oracle@cjcos01 admin]$ lsnrctl status
......
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=cjcos01)(PORT=1521)))
Services Summary...
Service "86b637b62fdf7a65e053f706e80a27ca" has 1 instance(s).
Instance "cjcdb", status READY, has 1 handler(s) for this service...
Service "9cf4e5aa850e36efe0550e07b87b792a" has 1 instance(s).
Instance "cjcdb", status READY, has 1 handler(s) for this service...
Service "cjcdb" has 2 instance(s).
Instance "cjcdb", status UNKNOWN, has 1 handler(s) for this service...
Instance "cjcdb", status READY, has 1 handler(s) for this service...
Service "cjcdbXDB" has 1 instance(s).
Instance "cjcdb", status READY, has 1 handler(s) for this service...
Service "cjcpdb" has 1 instance(s).
Instance "cjcdb", status READY, has 1 handler(s) for this service...
The command completed successfully
歡迎關注我的微信公眾號"IT小Chen",共同學習,共同成長!!!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29785807/viewspace-2684545/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- HPUX 監聽無法動態註冊UX
- Oracle 動態監聽註冊Oracle
- oracle監聽靜態註冊和動態註冊Oracle
- oracle監聽動態註冊與靜態註冊Oracle
- Oracle監聽的靜態註冊和動態註冊Oracle
- Oracle監聽的動態註冊與靜態註冊Oracle
- 監聽動態註冊
- 動態註冊監聽
- 動態監聽註冊
- Oracle動態監聽註冊測試Oracle
- oracle監聽動態註冊與靜態註冊[轉帖]Oracle
- oracle 12c 資料庫例項監聽無法註冊問題一例Oracle資料庫
- 【監聽】動態註冊和靜態註冊
- oracle監聽之動態和靜態註冊Oracle
- 【原創】Oracle的動態監聽註冊Oracle
- rac監聽動態註冊
- 動態註冊監聽Listener
- ORACLE 動態註冊,靜態註冊,多個監聽,一個監聽多個埠配置Oracle
- oracle監聽器動態註冊於靜態註冊的區別Oracle
- oracle監聽器的靜態和動態註冊Oracle
- oracle監聽【非1521埠】動態註冊Oracle
- 一次Oracle監聽無法動態註冊處理過程排查分析Oracle
- rac監聽不能動態註冊
- Oracle 靜態監聽註冊詳解Oracle
- Oracle9i中的監聽動態註冊Oracle
- 轉載:oracle監聽器的靜態和動態註冊Oracle
- oracle 監聽器動態與靜態註冊服務_listenerOracle
- 理解Oracle9i中的監聽動態註冊Oracle
- Oracle監聽器的靜態註冊與動態註冊,以及DB_DOMAIN問題OracleAI
- 例項動態註冊跟蹤
- oracle10.2.0.4 動態註冊監聽配置_摘自小荷Oracle
- 理解Oracle9i中的監聽動態註冊(zt)Oracle
- 動態和靜態監聽註冊-小魚的理解
- 記一次Oracle無法動態註冊問題Oracle
- Oracle監聽服務無法啟動Oracle
- ORACLE動態監聽與靜態監聽Oracle
- oracle靜態監聽和動態監聽Oracle
- 【oracle】動態監聽與靜態監聽Oracle