Oracle 11G r2单数据库多实例单监听问题解决
今天遇到一个多实例监听配置问题,数据库是Oracle 11G R2 for Windows。
数据库中有两个实例:orcl 和 orclsj
要实现多实例单个监听程序,实例监听端口不同:orcl-->1521;orclsj-->1522;
原来配置为如下:(问题是这配置当系统重启后,有个实例不起来)
# listener.ora Network Configuration File: D:\app\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
#LISTENER =
#ADR_BASE_LISTENER = D:\app
SID_LIST_LSNR_B =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orclsj)
(ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
(SID_NAME = orclsj)
)
)
SID_LIST_LSNR_A =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
(SID_NAME = orcl)
)
)
LSNR_B =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.244)(PORT = 1522))
)
)
LSNR_A =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.244)(PORT = 1521))
)
)
如下为修改的简单配置:
# listener.ora Network Configuration File: D:\app\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.244)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.244)(PORT = 1522))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
ADR_BASE_LISTENER = D:\app
【不用指定实例名,直接指定端口即可】
C:\Users\Administrator>lsnrctl status
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 23-8月 -2011 13:4
3:33
Copyright (c) 1991, 2010, Oracle. All rights reserved.
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.244)(PORT=1521)))
LISTENER 的 STATUS
------------------------
别名 LISTENER
版本 TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
ction
启动日期 23-8月 -2011 13:29:58
正常运行时间 0 天 0 小时 13 分 39 秒
跟踪级别 off
安全性 ON: Local OS Authentication
SNMP OFF
监听程序参数文件 D:\app\product\11.2.0\dbhome_1\network\admin\listener.
ora
监听程序日志文件 &n
相关新闻>>
- 发表评论
-
- 最新评论 更多>>