oracle監聽【非1521埠】動態註冊
Oracle9i起例項使用動態服務註冊來通知監聽程式有關其資料庫服務的資訊。
服務註冊依賴PMON 程式向監聽程式註冊例項資訊 註冊間隔為1分鐘左右
手動註冊命令 alter system register;
無需在listener.ora 檔案中設定任何資訊 此檔案可以不存在,如下:
]$ lsnrctl start
....
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db1)(PORT=1521)))
The listener supports no services
The command completed successfully
]$ sql
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
Enter user-name:
]$ 因為沒有註冊 所以不能連線
SQL> alter system register;
]$ sql
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
注意:
如果listener.ora中定義了監聽埠(非1521)
此時還想使用動態註冊 需要設定local_listener引數[連線描述符]
如:
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db1)(PORT=1522)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
此時手動註冊無效 PMON預設只能註冊預設埠1521
SQL> alter system register;Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db1)(PORT=1522)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
修改引數local_listener 後註冊成功
~]$ lsnrctl status
.....................
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "dbsm" has 1 instance(s).
Instance "dbsm", status READY, has 1 handler(s) for this service...
Service "dbsmXDB" has 1 instance(s).
Instance "dbsm", status READY, has 1 handler(s) for this service...
Service "dbsm_XPT" has 1 instance(s).
Instance "dbsm", status READY, has 1 handler(s) for this service...
The command completed successfully
local_listener的值一定要在tnsname.ora中設定 否則報錯
~]$ cat /oracle/ora10/product/10.2.0/db_1/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File: /oracle/ora10/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
DBSM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = sdw0)(PORT = 1522))
)
(CONNECT_DATA =
(SERVICE_NAME = dbsm)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27000195/viewspace-739735/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 實現Oracle非1521標準埠動態註冊Oracle
- Oracle 建立非1521埠監聽Oracle
- ORACLE 動態註冊,靜態註冊,多個監聽,一個監聽多個埠配置Oracle
- Oracle 動態監聽註冊Oracle
- oracle監聽靜態註冊和動態註冊Oracle
- oracle監聽動態註冊與靜態註冊Oracle
- Oracle監聽的靜態註冊和動態註冊Oracle
- Oracle監聽的動態註冊與靜態註冊Oracle
- 監聽動態註冊
- 動態註冊監聽
- 動態監聽註冊
- Oracle動態監聽註冊測試Oracle
- oracle監聽動態註冊與靜態註冊[轉帖]Oracle
- 【監聽】動態註冊和靜態註冊
- oracle監聽之動態和靜態註冊Oracle
- 【原創】Oracle的動態監聽註冊Oracle
- rac監聽動態註冊
- 動態註冊監聽Listener
- oracle監聽器動態註冊於靜態註冊的區別Oracle
- oracle監聽器的靜態和動態註冊Oracle
- rac監聽不能動態註冊
- Oracle 靜態監聽註冊詳解Oracle
- Oracle9i中的監聽動態註冊Oracle
- 【LISTENER】修改 LISTENER的監聽埠為1526(動態註冊)
- HPUX 監聽無法動態註冊UX
- 轉載:oracle監聽器的靜態和動態註冊Oracle
- oracle 監聽器動態與靜態註冊服務_listenerOracle
- 理解Oracle9i中的監聽動態註冊Oracle
- oracle 11g 修改預設監聽埠1521Oracle
- Oracle監聽器的靜態註冊與動態註冊,以及DB_DOMAIN問題OracleAI
- srvctl新增新的監聽和埠並靜態註冊
- Oracle 19C 監聽無法動態註冊例項Oracle
- oracle10.2.0.4 動態註冊監聽配置_摘自小荷Oracle
- 理解Oracle9i中的監聽動態註冊(zt)Oracle
- 預設及非預設埠的動態監聽/靜態監聽實驗彙總
- 【LISTENER】實現將資料庫例項同時動態註冊到兩個非預設監聽埠資料庫
- 動態和靜態監聽註冊-小魚的理解
- 【LISTENER】修改 LISTENER的監聽埠為1526(靜態註冊)