返回顶部
首页 > 资讯 > 数据库 >The listener supports no services The command completed successfully
  • 1693
分享到

The listener supports no services The command completed successfully

thelistenersupports 2022-11-30 23:11:26 1693人浏览 八月长安
摘要

启动监听出现以下错误信息,找不到服务.错误信息如下:[oracle@dg1 admin]$ lsnrctl statusLSNRCTL for linux: Version 11.2.0.1.0 - Pro

启动监听出现以下错误信息,找不到服务.错误信息如下:

[oracle@dg1 admin]$ lsnrctl status

LSNRCTL for linux: Version 11.2.0.1.0 - Production on 18-NOV-2016 11:17:54

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))

STATUS of the LISTENER

------------------------

Alias           LISTENER

Version          TNSLSNR for Linux: Version 11.2.0.1.0 - Production

Start Date       18-NOV-2016 11:15:22

Uptime           0 days 0 hr. 2 min. 31 sec

Trace Level      off

Security          ON: Local OS Authentication

SNMP             OFF

Listener Parameter File   /u01/product/11.2.0.1/db_1/network/admin/listener.ora

Listener Log File         /u01/diag/tnslsnr/dg1/listener/alert/log.xml

Listening Endpoints Summary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dg1)(PORT=1521)))

The listener supports no services

The command completed successfully

[oracle@dg1 admin]$ 


解决方法1:

[oracle@dg1 admin]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 18 11:19:06 2016

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup


Total System Global Area  830930944 bytes

Fixed Size                  2217912 bytes

Variable Size             545261640 bytes

Database Buffers          281018368 bytes

Redo Buffers                2433024 bytes

Database mounted.

Database opened.

SQL> show parameter service_names

NAME                    TYPE       VALUE

------------------------------------ ----------- ------------------------------

service_names             string      tong

SQL> alter system reGISter;    --强行注册监听

System altered.

SQL> 

[oracle@dg1 admin]$ lsnrctl start    --启动监听


解决方法2:

[oracle@dg2 ~]$ vim /u01/product/11.2.0.1/db_1/network/admin/listener.ora

LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

      (ADDRESS = (PROTOCOL = TCP)(HOST = dg2)(PORT = 1521))

    )

  )

SID_LIST_LISTENER =          --添加以下行

(SID_LIST =

  (SID_DESC =

  (GLOBAL_DBNAME = orcl)

  (SID_NAME = orcl)

  )

)

ADR_BASE_LISTENER = /u01

[oracle@dg2 ~]$ lsnrctl start


您可能感兴趣的文档:

--结束END--

本文标题: The listener supports no services The command completed successfully

本文链接: https://lsjlt.com/news/173672.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作