OCM_Session7_12_安装listener监听
十二、安装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 &nb