一、问题描述
最近在迁移一个oracle数据库时,启动oracle监听程序时报如下错误,The listener supports no services,
二、原因分析
数据库实例没注册到listener
三、处理过程
在listener.ora里面添加了红色标记的代码,具体如下:
oracle@oracle11g admin]$ cat listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DEscriptION_LIST =
(DEscriptION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle11g)(PORT = 1521))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(SID_NAME = orcl)
)
)
ADR_base_LISTENER = /u01/app/oracle
注:根据实际情况把GLOBAL_DBNAME及SID_NAME的值换成自己数据库实际的值即可。
免责声明:本平台仅供信息发布交流之途,请谨慎判断信息真伪。如遇虚假诈骗信息,请立即举报
举报