返回顶部
首页 > 资讯 > 数据库 >11g rac grid用户来管理监听程序
  • 823
分享到

11g rac grid用户来管理监听程序

2024-04-02 19:04:59 823人浏览 八月长安
摘要

oracle 11g RAC 数据库监听默认都是grid用户通过集群工具来进行管理的,但是有些时候我们会发现数据库监听程序有oracle用户启动的,这里就存在一些问题。比如,出现的多余的监听进程我们可以ki

oracle 11g RAC 数据库监听默认都是grid用户通过集群工具来进行管理的,但是有些时候我们会发现数据库监听程序有oracle用户启动的,这里就存在一些问题。比如,出现的多余的监听进程我们可以kill掉

<roidb2:+ASM2:/home/grid>$ps -ef|grep tns
root        10     2  0 08:11 ?        00:00:00 [netns]
grid      4880     1  0 08:24 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN1 -inherit
oracle   11067     1  0 09:09 ?        00:00:00 /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr LISTENER -inherit
grid     11745     1  0 09:13 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
grid     11977 11140  0 09:14 pts/0    00:00:00 grep tns
<roidb2:+ASM2:/home/grid>$kill -9 11067
-bash: kill: (11067) - Operation not permitted
<roidb2:+ASM2:/home/grid>$exit
loGout
[root@roidb2 ~]# kill -9 11067
[root@roidb2 ~]# ps -ef|grep tns
root        10     2  0 08:11 ?        00:00:00 [netns]
grid      4880     1  0 08:24 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN1 -inherit
grid     11745     1  0 09:13 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
root     12046  2589  0 09:15 pts/0    00:00:00 grep tns
[root@roidb2 ~]# 
[root@roidb2 ~]# 

Oracle 用户启动监听,这种肯定是错误的操作。
<roidb2:orcl2:/home/oracle>$lsnrctl status

LSNRCTL for linux: Version 11.2.0.4.0 - Production on 09-JUL-2018 09:18:55

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
<roidb2:orcl2:/home/oracle>$lsnrctl start

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 09-JUL-2018 09:18:58

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Log messages written to /u01/app/oracle/diag/tnslsnr/roidb2/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=roidb2)(PORT=1521)))

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                09-JUL-2018 09:18:58
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Log File         /u01/app/oracle/diag/tnslsnr/roidb2/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=roidb2)(PORT=1521)))
The listener supports no services
The command completed successfully
<roidb2:orcl2:/home/oracle>$ps -ef|grep tns
root        10     2  0 08:11 ?        00:00:00 [netns]
grid      4880     1  0 08:24 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN1 -inherit
grid     11745     1  0 09:13 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
oracle   12598     1  0 09:18 ?        00:00:00 /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr LISTENER -inherit
oracle   12605 12521  0 09:19 pts/0    00:00:00 grep tns
<roidb2:orcl2:/home/oracle>$
<roidb2:orcl2:/home/oracle>$exit
logout
[root@roidb2 ~]# kill -9 12598
[root@roidb2 ~]# ps -ef|grep tns
root        10     2  0 08:11 ?        00:00:00 [netns]
grid      4880     1  0 08:24 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN1 -inherit
grid     11745     1  0 09:13 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
root     12695  2589  0 09:19 pts/0    00:00:00 grep tns
[root@roidb2 ~]# 
您可能感兴趣的文档:

--结束END--

本文标题: 11g rac grid用户来管理监听程序

本文链接: https://lsjlt.com/news/41969.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作