Oracle 11g RAC 监听日常管理

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle 11g RAC 监听日常管理相关的知识,希望对你有一定的参考价值。

需要必须掌握的命令,上周遇到了一个小问题,就是需要重启数据库监听,有的同学竟然使用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 监听日常管理的主要内容,如果未能解决你的问题,请参考以下文章

oracle 11g RAC数据库监听配置相关

oracle 11g rac 监听无法启动

oracle 11g rac dbca建库时提示创建监听

oracle rac 监听日志在啥位置

vmware安装oracle 12c rac内存一般设多大

oracle 11g RAC 的一些基本概念