Oracle19c rac两节点实例test,在节点1查看监听状态没有test1,但在节点2可以看到test2

Oracle19c rac两节点实例test,在节点1查看监听状态没有test1,但在节点2可以看到test2

两节点上还有实例abc,xyz的监听都正常,唯独这个节点1上test1实例没有被监听。

奇怪。

检查集群状态,貌似正常,都是online的:

尝试登录test1执行alter system register;

lsnrctl status查看还是没有注册test1。

然检查两个节点的local_listener参数,发现了问题:

节点1上显示的是-oraagent-dummy-而节点2上显示的是正常的vip信息

节点2如下:

确认ping 节点1-vip正常。

登录test1执行操作:

sqlplus / as sysdba

alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=节点1-vip)(PORT=1521))' scope=both sid='test1';

show parameter local_listener;--确认修改

lsnrctl status--确认test1注册成功。

想起之前最近节点1由于异常reboot重启过,所以导致local_listener信息丢失。

如果上述无法解决,则可能需要重启节点1的监听服务:

如果还不行就得重启下节点1监听:

srvctl stop listener -n rac1

lsnrctl status

srvctl start listener -n rac1

lsnrctl status

复制代码
参考状态检查:
[root@rac1 ~]# su - grid
Last login: Wed Nov 12 15:46:19 CST 2025
[grid@rac1:/home/grid]$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node rac1
[grid@rac1:/home/grid]$ 
[grid@rac1:/home/grid]$ srvctl status listener -n rac1
Listener LISTENER is enabled on node(s): rac1
Listener LISTENER is running on node(s): rac1
[grid@rac1:/home/grid]$ 
[grid@rac1:/home/grid]$ srvctl status listener -n rac2

Listener LISTENER is enabled on node(s): rac2
Listener LISTENER is running on node(s): rac2
[grid@rac1:/home/grid]$ 
[grid@rac1:/home/grid]$ lsnrctl status

LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 12-NOV-2025 15:59:42

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date                12-NOV-2025 15:28:10
Uptime                    0 days 0 hr. 31 min. 31 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/19.3.0/grid/network/admin/listener.ora
Listener Log File         /u01/app/grid/diag/tnslsnr/rac1/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.207.76)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "+ASM_DATA" has 1 instance(s).
  Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "42b133224fc259cde0634ccfa8c0b908" has 1 instance(s).
  Instance "jyc1", status READY, has 1 handler(s) for this service...
Service "86b637b62fdf7a65e053f706e80a27ca" has 1 instance(s).
  Instance "jyc1", status READY, has 1 handler(s) for this service...
Service "jyc" has 1 instance(s).
  Instance "jyc1", status READY, has 1 handler(s) for this service...
Service "jycXDB" has 1 instance(s).
  Instance "jyc1", status READY, has 1 handler(s) for this service...
Service "pdb" has 1 instance(s).
  Instance "jyc1", status READY, has 1 handler(s) for this service...
The command completed successfully
[grid@rac1:/home/grid]$ 
[grid@rac1:/home/grid]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
               ONLINE  ONLINE       rac1                     STABLE
               ONLINE  ONLINE       rac2                     STABLE
ora.chad
               ONLINE  ONLINE       rac1                     STABLE
               ONLINE  ONLINE       rac2                     STABLE
ora.net1.network
               ONLINE  ONLINE       rac1                     STABLE
               ONLINE  ONLINE       rac2                     STABLE
ora.ons
               ONLINE  ONLINE       rac1                     STABLE
               ONLINE  ONLINE       rac2                     STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
      1        ONLINE  ONLINE       rac1                     STABLE
      2        ONLINE  ONLINE       rac2                     STABLE
ora.DATA.dg(ora.asmgroup)
      1        ONLINE  ONLINE       rac1                     STABLE
      2        ONLINE  ONLINE       rac2                     STABLE
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       rac1                     STABLE
ora.asm(ora.asmgroup)
      1        ONLINE  ONLINE       rac1                     Started,STABLE
      2        ONLINE  ONLINE       rac2                     Started,STABLE
ora.asmnet1.asmnetwork(ora.asmgroup)
      1        ONLINE  ONLINE       rac1                     STABLE
      2        ONLINE  ONLINE       rac2                     STABLE
ora.cvu
      1        ONLINE  ONLINE       rac1                     STABLE
ora.jyc.db
      1        ONLINE  ONLINE       rac1                     Open,HOME=/u01/app/o
                                                             racle/product/19.3.0
                                                             /db_1,STABLE
      2        ONLINE  ONLINE       rac2                     Open,HOME=/u01/app/o
                                                             racle/product/19.3.0
                                                             /db_1,STABLE
ora.qosmserver
      1        ONLINE  ONLINE       rac1                     STABLE
ora.rac1.vip
      1        ONLINE  ONLINE       rac1                     STABLE
ora.rac2.vip
      1        ONLINE  ONLINE       rac2                     STABLE
ora.scan1.vip
      1        ONLINE  ONLINE       rac1                     STABLE
--------------------------------------------------------------------------------
相关推荐
BullSmall几秒前
规则+大模型混合评测:高效精准双保障
运维·自动化
网硕互联的小客服6 小时前
Linux服务器磁盘应该如何合理分区?
linux·运维·服务器
楚识科技6 小时前
合同比对全流程自动化:OCR识别+差异比对+法律风险字段抽取实战指南
运维·自动化·ocr
代码方舟6 小时前
零信任架构实战:基于天远人企关联构建自动化供应链金融网关
运维·人工智能·架构·自动化
lisanmengmeng7 小时前
nacos nrpe 监控机及被监控机部署
服务器·nacos·nagios·nrpe
贵沫末7 小时前
Ubuntu——常用软件安装
linux·运维·ubuntu
Doraemomo8 小时前
Linux内核驱动开发——中断与定时器
linux·运维·驱动开发
2301_808414388 小时前
Linux中动静态库的理解
linux·运维·服务器
分布式存储与RustFS8 小时前
模型 checkpoint 放对象存储:分片上传、断点续传与残留清理
运维·云原生·开源·对象存储·分布式存储·s3·性能基准
一条破秋裤10 小时前
Linux 线程创建:pthread_create 与基本回收
java·linux·运维