搜索
您的当前位置:首页OCM_Session7_12_安装listener监听

OCM_Session7_12_安装listener监听

时间:2020-11-09 来源:乌哈旅游

十二、安装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 ---------------------------------------------------------------------------------------------------------------------------------------------------
Top