ITPub博客

首页 > 数据库 > Oracle > oracle监听不到实例服务

oracle监听不到实例服务

原创 Oracle 作者:hellohf123 时间:2022-01-11 15:45:16 0 删除 编辑

现象:监听启动正常,数据库正常,能查询到文件。我的19c是从11g升级过来的。

[oracle@dbserver admin]$ lsnrctl status
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 11-JAN-2022 15:29:28
Copyright (c) 1991, 2019, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dbserver)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date                11-JAN-2022 15:29:20
Uptime                    0 days 0 hr. 0 min. 7 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/19c/dbhome_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/dbserver/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbserver)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully


我的实例名称为prod


[oracle@dbserver admin]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Tue Jan 11 15:28:24 2022
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle.  All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
SQL>  show parameter local_listener
NAME                                 TYPE
------------------------------------ ----------------------
VALUE
------------------------------
local_listener                       string
LISTENER_PROD
SQL> Alter system set local_listener='PROD';
System altered.
SQL>



重启监听

[oracle@dbserver admin]$ lsnrctl stop
[oracle@dbserver admin]$ lsnrctl start
[oracle@dbserver admin]$ lsnrctl status
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 11-JAN-2022 15:43:43
Copyright (c) 1991, 2019, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dbserver)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date                11-JAN-2022 15:42:46
Uptime                    0 days 0 hr. 0 min. 56 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/19c/dbhome_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/dbserver/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbserver)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "prod" has 1 instance(s).
  Instance "prod", status READY, has 1 handler(s) for this service...
Service "prodXDB" has 1 instance(s).
  Instance "prod", status READY, has 1 handler(s) for this service...
The command completed successfully


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70004783/viewspace-2851748/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2021-08-05

  • 博文量
    78
  • 访问量
    81369