码迷,mamicode.com
首页 > 数据库 > 详细

Oracle 11g RAC 监听日常管理

时间:2018-07-09 11:17:20      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:roi   oracl   操作   重启   listener   can   数据   acl   run   

需要必须掌握的命令,上周遇到了一个小问题,就是需要重启数据库监听,有的同学竟然使用oracle用户重启监听,原理就搞错了怎么行。以下操作都需要再grid用户下进行操作。

1、查看监听状态

<roidb2:+ASM2:/home/grid>$srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): roidb1,roidb2
<roidb2:+ASM2:/home/grid>$srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node roidb2
<roidb2:+ASM2:/home/grid>$

2、关闭监听

<roidb2:+ASM2:/home/grid>$srvctl stop listener -n roidb1
<roidb2:+ASM2:/home/grid>$srvctl status listener -n roidb1
Listener LISTENER is enabled on node(s): roidb1
Listener LISTENER is not running on node(s): roidb1
<roidb2:+ASM2:/home/grid>$
<roidb2:+ASM2:/home/grid>$srvctl stop scan_listener
<roidb2:+ASM2:/home/grid>$srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
<roidb2:+ASM2:/home/grid>$

3、启动监听

<roidb2:+ASM2:/home/grid>$srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): roidb1,roidb2
<roidb2:+ASM2:/home/grid>$srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node roidb2
<roidb2:+ASM2:/home/grid>$

Oracle 11g RAC 监听日常管理

标签:roi   oracl   操作   重启   listener   can   数据   acl   run   

原文地址:http://blog.51cto.com/roidba/2138962

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!