当前位置: 首页 > news >正文

oracle rac11G安装——重启两节点监听服务

1.节点1

# 查看节点1监听状态[grid@rac1 ~]$ srvctl status listener -n rac1 监听程序 LISTENER 已在节点上启用: rac1 监听程序 LISTENER 未在节点上运行: rac1
# 启动节点1监听[grid@rac1 ~]$ lsnrctl start listener LSNRCTLforLinux: Version11.2.0.4.0 - Production on26-DEC-2025 09:38:33 Copyright(c)1991,2013, Oracle. All rights reserved. Starting /u01/app/11.2.0/grid/bin/tnslsnr: please wait... TNSLSNRforLinux: Version11.2.0.4.0 - Production System parameterfileis /u01/app/11.2.0/grid/network/admin/listener.ora Log messages written to /u01/app/grid/diag/tnslsnr/rac1/listener/alert/log.xml Listening on:(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))Listening on:(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rac1)(PORT=1521)))Connecting to(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))STATUS of the LISTENER ------------------------ Alias listener Version TNSLSNRforLinux: Version11.2.0.4.0 - Production Start Date26-DEC-2025 09:38:34 Uptime0days0hr.0min.0sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/11.2.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=EXTPROC1521)))(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rac1)(PORT=1521)))The listener supports no services Thecommandcompleted successfully
# 查看节点1监听状态[grid@rac1 ~]$ srvctl status listener -n rac1 监听程序 LISTENER 已在节点上启用: rac1 监听程序 LISTENER 正在节点上运行: rac1

2. 节点2

#查看节点2监听状态[grid@rac2 ~]$ srvctl status listener 监听程序 LISTENER 已启用 监听程序 LISTENER 未运行
# 查看日志[grid@rac2 ~]$vi/u01/app/11.2.0/grid/log/rac2/agent/crsd/oraagent_oracle/oraagent_oracle.log# 启动节点2[grid@rac2 ~]$ lsnrctl start listener LSNRCTLforLinux: Version11.2.0.4.0 - Production on26-DEC-2025 09:39:15 Copyright(c)1991,2013, Oracle. All rights reserved. Starting /u01/app/11.2.0/grid/bin/tnslsnr: please wait... TNSLSNRforLinux: Version11.2.0.4.0 - Production System parameterfileis /u01/app/11.2.0/grid/network/admin/listener.ora Log messages written to /u01/app/grid/diag/tnslsnr/rac2/listener/alert/log.xml Error listening on:(ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))TNS-12542: TNS:address alreadyinuse TNS-12560: TNS:protocol adapter error TNS-00512: Address alreadyinuse Linux Error:98: Address alreadyinuse Listener failed to start. See the error message(s)above...
# kill 节点2占用的进程[grid@rac2 ~]$netstat-anp|grep:1521(Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.)tcp00192.168.85.204:15210.0.0.0:* LISTEN2831/tnslsnr[grid@rac2 ~]$lsof-i:1521 COMMAND PIDUSERFD TYPE DEVICE SIZE/OFF NODE NAME tnslsnr2831grid 14u IPv41062580t0 TCP rac-scan:ncube-lm(LISTEN)[grid@rac2 ~]$kill-92831[grid@rac2 ~]$lsof-i:1521
# 重新启动[grid@rac2 ~]$ lsnrctl start listener LSNRCTLforLinux: Version11.2.0.4.0 - Production on26-DEC-2025 09:42:13 Copyright(c)1991,2013, Oracle. All rights reserved. Starting /u01/app/11.2.0/grid/bin/tnslsnr: please wait... TNSLSNRforLinux: Version11.2.0.4.0 - Production System parameterfileis /u01/app/11.2.0/grid/network/admin/listener.ora Log messages written to /u01/app/grid/diag/tnslsnr/rac2/listener/alert/log.xml Listening on:(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rac2)(PORT=1521)))Connecting to(ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))STATUS of the LISTENER ------------------------ Alias listener Version TNSLSNRforLinux: Version11.2.0.4.0 - Production Start Date26-DEC-2025 09:42:14 Uptime0days0hr.0min.0sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora Listener Log File /u01/app/grid/diag/tnslsnr/rac2/listener/alert/log.xml Listening Endpoints Summary...(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rac2)(PORT=1521)))The listener supports no services Thecommandcompleted successfully
# 在节点1查看节点1和2的监听状态[grid@rac1 ~]$ srvctl status listener -n rac1 监听程序 LISTENER 已在节点上启用: rac1 监听程序 LISTENER 正在节点上运行: rac1[grid@rac1 ~]$ srvctl status listener -n rac2 监听程序 LISTENER 已在节点上启用: rac2 监听程序 LISTENER 正在节点上运行: rac2
http://www.zskr.cn/news/159229.html

相关文章:

  • 2026主治医师考试题库app排行榜, 高效备考实用题库 - 资讯焦点
  • 类图——类和接口的表示方式
  • 主管护师考试十大题库app排行榜,2025最新推荐 - 资讯焦点
  • 检测React/Next.js高危反序列化漏洞CVE-2025–66478/CVE-2025–55182的实战指南
  • 基于开源AI智能客服、AI智能名片与S2B2C商城小程序的微信个人号营销危机管理研究
  • 2025年12月山东土工膜厂家推荐榜:HDPE/糙面/单糙面/双糙面/柱点/防渗/聚乙烯/光面/防水/加糙土工膜,山东恒阳凭优质多元化土工膜登榜 - 海棠依旧大
  • Docker 镜像从 1GB 瘦身到 10MB?全网最全 Dockerfile 优化最佳实践 (多阶段构建实战)
  • 小程序心理健康辅导系统(安卓APP)_3vjf7e64
  • RyTuneX(Win1011系统优化工具)
  • 【vLLM 学习】Profiling
  • 基于米尔核心板的V2G通信开发:MSE102x GreenPHY实战
  • 深入解析:【Elasticsearch】索引别名 aliases
  • 告别无效调用:高效实现 AI Agent 的 Function 交互设计
  • Spring Boot+MyBatis:用 PageHelper 实现 Oracle 12c 的 OFFSET 分页
  • LSTM量化交易策略的环境适应性与入参稳定性评估
  • 2025年兰州口碑好的水性艺术涂料实力厂家选哪家,微晶石艺术漆/艺术漆/艺术肌理漆/环保艺术涂料,水性艺术涂料产品哪家好 - 品牌推荐师
  • 【优化协调】基于小生境粒子群算法含光伏电站配电网有功无功协调优化附Matlab代码
  • 强化学习结合LSTM的量化交易策略奖励函数与入参关联
  • 传感器|基于改进贪心算法的最佳传感器位置选择(Matlab代码实现)
  • Claude Skills动态工具过滤深度解析:智能代理开发的革命性突破,收藏必备!
  • CSV大文件处理全流程:数据清洗、去重与格式标准化深度实践
  • 2026企业微信SCRM新趋势:AI如何助力客户转化率提升300%
  • 【车辆控制】基于模型预测控制MPC的摩托车主动悬挂控制附Matlab代码
  • 云舟观测报表管理功能:从业务到智能运维
  • 学长亲荐8个AI论文工具,自考毕业论文格式规范必备!
  • NC verilog :force命令
  • 2025年济南做得好的翅片管公司有哪些,乏风取热箱/表冷器/翅片管/新风机组/干冷器/空调机组/空气幕/冷却器/散热器翅片管企业哪家好 - 品牌推荐师
  • 课后作业2
  • Type Hints:花1小時寫,省18小時除錯的投資回報率分析
  • 学长亲荐9个AI论文工具,研究生高效写作必备!