oracle 11g 修改預設監聽埠1521
OS:
Oracle Linux Server release 5.7
DB:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
1、檢視監聽狀態:
SQL> !lsnrctl status
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 12-NOV-2013 01:36:29
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=b28-122.jd.com)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 22-OCT-2013 04:02:12
Uptime 20 days 22 hr. 34 min. 16 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/oracle/diag/tnslsnr/b28-122/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=b28-122.jd.com)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "yoon" has 1 instance(s).
Instance "yoon", status READY, has 1 handler(s) for this service...
Service "yoonXDB" has 1 instance(s).
Instance "yoon", status READY, has 1 handler(s) for this service...
The command completed successfully
2、停止監聽
SQL> !lsnrctl stop
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 12-NOV-2013 02:37:43
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=b28-122.jd.com)(PORT=1521)))
The command completed successfully
3、修改tnsnames.ora和listener.ora檔案中埠號
將1521修改為1515
4、在資料庫中初始化引數local_listener
SQL> show parameter local_listener;
NAME TYPE VALUE
------------------------------------ --------------------------------- ------------------------------
local_listener string
SQL> alter system set local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST = b28-122.jd.com)(PORT = 1515))';
System altered.
SQL> show parameter local_listener;
NAME TYPE VALUE
------------------------------------ --------------------------------- ------------------------------
local_listener string (ADDRESS = (PROTOCOL = TCP)(HO
ST = b28-122.jd.com)(PORT = 15
15))
5、啟動監聽
SQL> !lsnrctl start
6、檢視監聽
SQL> !lsnrctl status
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 12-NOV-2013 02:43:08
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=b28-122.jd.com)(PORT=1515)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 12-NOV-2013 02:42:15
Uptime 0 days 0 hr. 0 min. 53 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/oracle/diag/tnslsnr/b28-122/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=b28-122.jd.com)(PORT=1515)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1515)))
Services Summary...
Service "yoon" has 1 instance(s).
Instance "yoon", status READY, has 1 handler(s) for this service...
Service "yoonXDB" has 1 instance(s).
Instance "yoon", status READY, has 1 handler(s) for this service...
The command completed successfully
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28939273/viewspace-1061504/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORACLE 修改11.2.0.4 RAC 預設監聽埠號1521為1621Oracle
- Oracle 修改預設監聽埠故障分析Oracle
- Oracle 11g 修改監聽埠Oracle
- Oracle 建立非1521埠監聽Oracle
- 【Oracle】修改oracle監聽埠Oracle
- oracle監聽【非1521埠】動態註冊Oracle
- 【Oracle】修改scan監聽器埠號Oracle
- oracle之 單例項監聽修改埠Oracle單例
- Oracle資料庫修改LISTENER的監聽埠Oracle資料庫
- [20160418]修改oracle監聽埠.txtOracle
- 修改oracle監聽佔用的8080埠(轉)Oracle
- oracle更改預設埠號,監聽器加密,限制ip訪問Oracle加密
- 預設及非預設埠的動態監聽/靜態監聽實驗彙總
- [20130422]修改oracle監聽埠.txtOracle
- 12C RAC 修改監聽埠
- 修改ORACLE的預設8080埠Oracle
- oracle 監聽配置多個埠Oracle
- Rac環境中使用非預設1521,需要修改預設的埠,否則將無法正常連線
- 網站預設埠怎麼修改,網站預設埠修改方法網站
- oracle rac scan監聽更改埠號Oracle
- 如何更改oracle監聽器的埠Oracle
- 服務端配置一個多埠號(如1521/1526)監聽器服務端
- oracle 11g 監聽檔案Oracle
- Oracle之 11gR2 RAC 修改監聽器埠號的步驟Oracle
- 【監聽】配置服務端靜態(動態)監聽/修改監聽埠及引數local_listener作用服務端
- Linux修改sshd預設埠Linux
- Oracle 11g RAC 監聽日常管理Oracle
- oracle 11g tns和監聽配置Oracle
- Oracle 預設埠列表Oracle
- Windows server 防火牆開放oracle監聽埠WindowsServer防火牆Oracle
- 修改服務端監聽器埠號為1526服務端
- 修改Windows預設遠端埠號Windows
- ArcGIS for Server預設埠6080修改Server
- Oracle 11g 檢視監聽日誌Oracle
- Oracle 11g 監聽相關檔案Oracle
- 初始化監聽埠
- samba程序與監聽埠Samba
- 修改伺服器預設遠端埠伺服器