虚拟化容器,大数据,DBA,中间件,监控。

ORACLE启动监听器 The listener supports no services 问题解决方法

30 03月
作者:admin|分类:DBA运维

Oracle 12c   linux 64bit  启动ORACLE监听器,结尾报 The listener supports no services ,数据库实例services没被注册监听.


2种方法解决:
一、手工注册,每次重启监听都需要手工注册:
SQL> alter system register;
System altered.

二、修改 listener.ora,一劳永逸解决问题
在LISTENER里添加内容:
SID_LIST_LISTENER =
(SID_LIST =
  (SID_DESC =
  (GLOBAL_DBNAME = orcl)
  (SID_NAME = orcl)
  )
)
另,感觉这是个bug,google下·看到:http://www.askmaclean.com/archives/11gr2-rac-add-listener-static-register.html
原来在11gr2新建和修改监听后,不会自动静态注册,需要退出netca 界面,启动netmgr界面,为监听加入静态注册的信息:
点选方才创建的监听器,选择Database Services菜单
填入Global Database Name和本地实例的SID信息,并确认ORACLE HOME Directory(应是Grid Infrastructure的Home目录)正确后点选Save Network Configuration。
重启监听即可


[oracle@localhost admin]$ lsnrctl status

LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 19-APR-2016 10:51:08

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.230.129)(PORT=1521)))

STATUS of the LISTENER

Alias LISTENER
Version TNSLSNR for Linux: Version 12.1.0.2.0 - Production
Start Date 19-APR-2016 10:43:19
Uptime 0 days 0 hr. 7 min. 49 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/12.1.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary…
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.230.129)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully

这样启动后远程连接会造成
oracle ORA-12514:TNS:listener does not currently know of service requested in connect descriptor

–查看监听状态
$lsnrctl status


  • 解决方案

Oracle Net Manager修改配置

在下图的Listeners->Database Services中配置要监听的SID及ORACLE_HOME,退出保存。

这里写图片描述

在Liunx环境下使用netmgr命令完成!!!

[oracle@localhost bin]$ netmgr


浏览2665 评论0
返回
目录
返回
首页
oracle错误:ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener Oracle WebLogic Server Java反序列化漏洞CVE-2018-2628