【LISTENER】修改 LISTENER的監聽埠為1526(靜態註冊)
【強調一點】
動態註冊預設只註冊到預設的監聽器上(名稱是LISTENER、埠是1521、協議是TCP),如果需要向非預設監聽註冊,則需要配置local_listener引數。
此文不討論透過設定local_listener引數完成監聽的的動態註冊。我們將採用“靜態註冊”的方法來完成監聽埠的調整。
【修改步驟】
1.修改listener.ora檔案,埠從1521修改成1526;同時將監聽改為“靜態註冊”
listener.ora檔案修改前:
ora10g@testdb /home/oracle$ cat $ORACLE_HOME/network/admin/listener.ora
# listener.ora Network Configuration File: /oracle/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 144.194.192.183)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)
listener.ora檔案修改後:
ora10g@testdb /home/oracle$ cat $ORACLE_HOME/network/admin/listener.ora
# listener.ora Network Configuration File: /oracle/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
(SID_DESC = ## 靜態註冊在這裡體現
(GLOBAL_DBNAME = ora10g)
(ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
(SID_NAME = ora10g)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 144.194.192.183)(PORT = 1526)(IP = FIRST)) ## 埠修改在這裡體現
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)
2.修改tnsnames.ora檔案,將其中出現的1521埠號修改為1526
ora10g@testdb /home/oracle$ cat $ORACLE_HOME/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File: /oracle/app/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORA10G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 144.194.192.183)(PORT = 1526))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora10g)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
3.重新啟動LISTENER
LSNRCTL> stop
LSNRCTL> start
Starting /oracle/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /oracle/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /oracle/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=144.194.192.183)(PORT=1526)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=144.194.192.183)(PORT=1526)(IP=FIRST)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 21-JUL-2009 16:21:21
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /oracle/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=144.194.192.183)(PORT=1526)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "ora10g" has 1 instance(s).
Instance "ora10g", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>
4.使用“ora10g”進行測試
ora10g@testdb /home/oracle$ sqlplus sec/sec@ora10g
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jul 21 16:21:32 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
sec@ora10g>
一切OK,修改成功!
5.小結
使用“靜態註冊”方法修改監聽埠的步驟如下:
1)修改listener.ora檔案,埠從1521修改成1526;同時將監聽改為“靜態註冊”;
2)修改tnsnames.ora檔案,將其中出現的1521埠號修改為1526;
3)重新啟動LISTENER;
4)測試。
Good luck.
secooler
09.07.21
-- The End --
動態註冊預設只註冊到預設的監聽器上(名稱是LISTENER、埠是1521、協議是TCP),如果需要向非預設監聽註冊,則需要配置local_listener引數。
此文不討論透過設定local_listener引數完成監聽的的動態註冊。我們將採用“靜態註冊”的方法來完成監聽埠的調整。
【修改步驟】
1.修改listener.ora檔案,埠從1521修改成1526;同時將監聽改為“靜態註冊”
listener.ora檔案修改前:
ora10g@testdb /home/oracle$ cat $ORACLE_HOME/network/admin/listener.ora
# listener.ora Network Configuration File: /oracle/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 144.194.192.183)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)
listener.ora檔案修改後:
ora10g@testdb /home/oracle$ cat $ORACLE_HOME/network/admin/listener.ora
# listener.ora Network Configuration File: /oracle/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
(SID_DESC = ## 靜態註冊在這裡體現
(GLOBAL_DBNAME = ora10g)
(ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
(SID_NAME = ora10g)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 144.194.192.183)(PORT = 1526)(IP = FIRST)) ## 埠修改在這裡體現
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)
2.修改tnsnames.ora檔案,將其中出現的1521埠號修改為1526
ora10g@testdb /home/oracle$ cat $ORACLE_HOME/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File: /oracle/app/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORA10G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 144.194.192.183)(PORT = 1526))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora10g)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
3.重新啟動LISTENER
LSNRCTL> stop
LSNRCTL> start
Starting /oracle/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /oracle/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /oracle/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=144.194.192.183)(PORT=1526)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=144.194.192.183)(PORT=1526)(IP=FIRST)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 21-JUL-2009 16:21:21
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /oracle/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=144.194.192.183)(PORT=1526)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "ora10g" has 1 instance(s).
Instance "ora10g", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>
4.使用“ora10g”進行測試
ora10g@testdb /home/oracle$ sqlplus sec/sec@ora10g
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jul 21 16:21:32 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
sec@ora10g>
一切OK,修改成功!
5.小結
使用“靜態註冊”方法修改監聽埠的步驟如下:
1)修改listener.ora檔案,埠從1521修改成1526;同時將監聽改為“靜態註冊”;
2)修改tnsnames.ora檔案,將其中出現的1521埠號修改為1526;
3)重新啟動LISTENER;
4)測試。
Good luck.
secooler
09.07.21
-- The End --
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/519536/viewspace-609822/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【LISTENER】修改 LISTENER的監聽埠為1526(動態註冊)
- 動態註冊監聽Listener
- oracle 監聽器動態與靜態註冊服務_listenerOracle
- 【監聽】配置服務端靜態(動態)監聽/修改監聽埠及引數local_listener作用服務端
- Oracle Listener 動態註冊 與 靜態註冊Oracle
- Oracle listener靜態註冊和動態註冊Oracle
- Oracle Listener 動態註冊與靜態註冊Oracle
- oracle動態和靜態監聽listenerOracle
- Oracle資料庫修改LISTENER的監聽埠Oracle資料庫
- listener的靜態註冊與動態註冊詳述
- oracle listener 靜態和動態註冊Oracle
- listener靜態註冊和動態註冊總結
- 【listener】oracle靜態監聽和動態監聽 【轉載】Oracle
- Oracle listener靜態註冊和動態註冊總結Oracle
- 再說Oracle Listener動靜態註冊Oracle
- listener的動態註冊
- oracle listener 靜態監聽與動態監聽的一些小事Oracle
- ORACLE 動態註冊,靜態註冊,多個監聽,一個監聽多個埠配置Oracle
- 【監聽】動態註冊和靜態註冊
- srvctl新增新的監聽和埠並靜態註冊
- ORACLE之手動註冊監聽listener。alter system set local_listener="XXX"Oracle
- Oracle監聽的靜態註冊和動態註冊Oracle
- Oracle監聽的動態註冊與靜態註冊Oracle
- oracle監聽靜態註冊和動態註冊Oracle
- oracle監聽動態註冊與靜態註冊Oracle
- 關於Listener動態註冊
- 修改服務端監聽器埠號為1526服務端
- 7、listener監聽
- 【LISTENER】使用“alter system register;”解決動態監聽註冊緩慢問題
- oracle監聽動態註冊與靜態註冊[轉帖]Oracle
- Oracle 靜態監聽註冊詳解Oracle
- Oracle listener靜態及動態註冊總結(轉自網路)Oracle
- oracle監聽器動態註冊於靜態註冊的區別Oracle
- oracle監聽器的靜態和動態註冊Oracle
- 【LISTENER】實現將資料庫例項同時動態註冊到兩個非預設監聽埠資料庫
- oracle監聽之動態和靜態註冊Oracle
- 12c 如何為每個pdb對應一個靜態註冊的監聽埠
- 【故障處理】【LISTENER】主機名修改為IP地址後LISTENER無法監聽到例項