首页 > 数据库 > mysql教程 > OCM_Session7_12_安装listener监听

OCM_Session7_12_安装listener监听

WBOY
发布: 2016-06-07 15:54:14
原创
1243 人浏览过

十二、安装listener监听 使用oracle用户,在rac1和rac2上都可以起netca 1.打开网络配置界面,选择“Cluster configuration”集群配置方案,点击“Next”,如果你的是单实例就选择“single node configuration” 2.选中两个节点“Select all nodes”,点击“N


十二、安装listener监听

使用oracle用户,在rac1和rac2上都可以起netca
1.打开网络配置界面,选择“Cluster configuration”集群配置方案,点击“Next”,如果你的是单实例就选择“single node configuration”
\
2.选中两个节点“Select all nodes”,点击“Next”
\
3.选择监听配置模式“Listener configuration”,点击“Next”
\
4.选择“Add”添加一个新的监听,点击“Next”,如果已有监听则后三个选项可选
\
5.给listener起一个名字,我们使用系统默认名LISTENER,然后点击“Next”
\
6.选择可使用的协议,这里选择TCP协议,点击“Next”
\
7.使用默认1521端口,点击“Next”
\
8.系统问是否还要配置其他监听,选择“No”,点击“Next”
\
[oracle@rac1 database]$ netca
Oracle Net Services Configuration: Configuring Listener:LISTENER Default local naming configuration complete. rac1... rac2... Listener configuration complete.
9.监听配置完毕,可以点击“Next”退出
\
10.在终端窗口可以看到监听的配置情况,直接点击“Finish”
\
11.运行命令crs_stat -t ,可以看到刚刚配置好的两个监听进程已经启动
[oracle@rac1 ~]$ crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora....C1.lsnr application ONLINE ONLINE rac1 ora.rac1.gsd application ONLINE ONLINE rac1 ora.rac1.ons application ONLINE ONLINE rac1 ora.rac1.vip application ONLINE ONLINE rac1 ora....C2.lsnr application ONLINE ONLINE rac2 ora.rac2.gsd application ONLINE ONLINE rac2 ora.rac2.ons application ONLINE ONLINE rac2 ora.rac2.vip application ONLINE ONLINE rac2 [oracle@rac1 ~]$

[oracle@rac2 ~]$ crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora....C1.lsnr application ONLINE ONLINE rac1 ora.rac1.gsd application ONLINE ONLINE rac1 ora.rac1.ons application ONLINE ONLINE rac1 ora.rac1.vip application ONLINE ONLINE rac1 ora....C2.lsnr application ONLINE ONLINE rac2 ora.rac2.gsd application ONLINE ONLINE rac2 ora.rac2.ons application ONLINE ONLINE rac2 ora.rac2.vip application ONLINE ONLINE rac2
[oracle@rac1 ~]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 22-MAR-2014 19:55:46
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) STATUS of the LISTENER ------------------------ Alias LISTENER_RAC1 Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production Start Date 22-MAR-2014 19:44:24 Uptime 0 days 0 hr. 11 min. 21 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener_rac1.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.152)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.151)(PORT=1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully ---------------------------------------------------------------------------------------------------------------------------------------------------
相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板