Oracle 11g RAC 數(shù)據(jù)庫監(jiān)聽默認(rèn)都是grid用戶通過集群工具來進(jìn)行管理的,但是有些時(shí)候我們會(huì)發(fā)現(xiàn)數(shù)據(jù)庫監(jiān)聽程序有oracle用戶啟動(dòng)的,這里就存在一些問題。比如,出現(xiàn)的多余的監(jiān)聽進(jìn)程我們可以kill掉
成都創(chuàng)新互聯(lián)公司專注于企業(yè)營銷型網(wǎng)站、網(wǎng)站重做改版、承留網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、H5場景定制、成都做商城網(wǎng)站、集團(tuán)公司官網(wǎng)建設(shè)、成都外貿(mào)網(wǎng)站建設(shè)、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為承留等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。$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
$kill -9 11067
-bash: kill: (11067) - Operation not permitted
$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 用戶啟動(dòng)監(jiān)聽,這種肯定是錯(cuò)誤的操作。
$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
$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
$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
$
$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 ~]#
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。