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

时间: 2024-10-15 05:31:54

oracle 11g 修改默认监听端口1521的相关文章

Oracle 11g ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务

最近在装ORACLE的时候爆出了一个问题, Oracle 11g ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务 以前装ORACLE好多遍了网上搜了好多方法还是解决不了,最后通过自己的摸索找到了一个不显眼的原因, 打开Oracle - OraDb11g_home1/配置和移植工具/  下面的Net Manager,配置好服务名后,打开监听程序右上角选择数据库服务 一开始的数据库服务中配置是有问题的,一般一开始这个目录是空的需要自己手动添加更改,如下图一开始我的Net Ma

Linux Oracle 11g, lsnrctl start 监听服务启动失败解决办法

[本文谢绝转载原文来自http://990487026.blog.51cto.com] 报错的现象: [[email protected] ~]$ lsnrctl start LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 29-AUG-2016 10:38:59 Copyright (c) 1991, 2009, Oracle.  All rights reserved. Starting /opt/oracle/app/produc

zookeeper 3.5.0 修改管理控制台监听端口的方法

zookeeper 3.5.0 修改管理控制台 jetty 的监听端口是通过参数-Dzookeeper.admin.serverPort=8088来实现的 而不是-Djetty.port=8088,源代码为 org.apache.zookeeper.server.admin.JettyAdminServer 中的64-67行 public JettyAdminServer() throws AdminServerException {        this(Integer.getInteger

修改默认监听

oracle 监听器如果使用动态注册的话,默认只能动态注册1521端口 如果要修改端口号:必须修改数据库中的参数 local_listener 如下: 1. 监听文件 [email protected] /u01/app/oracle11g/product/11.2.0/dbhome_1/network/admin$ vi listener.ora LISTENER = (ADDRESS_LIST= (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.100)(PORT

oracle 11g RAC数据库监听配置相关

oracle RAC 监听配置基本和单实例的配置相同 11g之后 安装RAC的过程中,不需要执行netca来手动创建监听,在安装集群软件的时候,会自动创建监听程序: 而在DBCA建库的时候,又会自动创建tnsname.ora文件 强烈推荐这篇: http://www.oracle.com/technetwork/cn/articles/database-performance/oracle-rac-connection-mgmt-1650424-zhs.html http://www.cnblo

Oracle修改监听端口教程

Oracle默认监听端口1521,一众扫描器通常通过探测1521端口是否开启来探测是否存在Oracle服务,如果修改默认监听端口在一定程度上可以提升数据库和主机的安全性. 比如这里我们修改成2521为例. 1.查看当前监听状态 lsnrctl status 2.停止监听 lsnrctl stop 3.修改监听配置文件 vi $ORACLE_HOME/network/admin/listener.ora 将监听端口1521修改为2521 4.修改连接配置文件 vi $ORACLE_HOME/net

Oracle RAC 11gR2 修改本地及SCAN监听端口

昨天同事说有套RAC集群客户要求修改数据库的监听端口,在处理的过程中,发现网上的相关资料都不是很全面,所以整理了一下,希望给其他有需要的朋友提供一点有利的参考资料.具体操作过程如下: --修改配置信息中保存的端口信息 使用GRID用户修改 srvctl modify listener -l LISTENER -p 15210srvctl modify scan_listener -p 15210 --修改本地监听及SCAN监听端口 以oracle用户登陆,执行以下修改: alter system

Oracle非默认监听的处理会遇到的问题以及处理方法

第一种情况:只是修改默认端口 1.当前监听状态: C:\Windows\system32>lsnrctl status LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 05-3月 -2015 11:48:45 Copyright (c) 1991, 2010, Oracle. All rights reserved. 正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=zen

运行问题,如何修改APACHE的监听端口和密码

1.当wamp的图标为绿色时,正常运行: 2.图标为黄色是,检查Mysql和Apache端口(两个中的一个会出错). 3.图标为红色是,端口被占用. 监听端口: 1.在界面中选apache,弹出隐藏菜单选项,打开配置文件httpd.conf; 2.找到Listen 80和 ServerName loalhost:80; 3.将80改成8080(改的时候一定要在8与0之间添加,先0后8)所有都修改. 4.保存,重启所有程序. PHP Parse Error: syntax error, unexp