Oracle R2 11g rac监听启动/停止

切换到grid用户,在其中一个节点执行如下:

srvctl stop listener -n  ams2
srvctl start listener -n ams2
srvctl stop listener -n  ams1
srvctl start listener -n ams1

crs_stop ora.LISTENER_SCAN1.lsnr
crs_stop ora.scan1.vip
crs_start -all

1、查看监听状态

[grid@ams1 ~]$srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): ams2,ams1
[grid@ams1 ~]$srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node ams2

2、关闭监听

[grid@ams1 ~]$srvctl stop listener -n ams2
[grid@ams1 ~]$srvctl stop listener -n ams1
[grid@ams1 ~]$srvctl status listener  -n ams1
[grid@ams1 ~]$srvctl status listener  -n ams2
[grid@ams1 ~]$srvctl stop scan_listener

3、启动监听

[grid@ams1 ~]$srvctl start listener -n ams2
[grid@ams1 ~]$srvctl start listener -n ams1
[grid@ams1 ~]$srvctl status listener  -n ams1
[grid@ams1 ~]$srvctl status listener  -n ams2
[grid@ams1 ~]$srvctl start scan_list
[grid@ams1 ~]$srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node ams2

转载于:https://blog.51cto.com/fengjiahu/2339737

你可能感兴趣的:(Oracle R2 11g rac监听启动/停止)