CentOS7 + Oracle12c 在注册监听时无效 遇到的问题及解决方法

SQL> alter system register;

System altered.

SQL> alter system register;

System altered.

SQL> alter system register;

System altered.

SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
[oracle@heavensvr ~]$ lsnrctl status

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 25-JUL-2017 14:24:32

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.xxx.xxx.189)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date                25-JUL-2017 02:32:16
Uptime                    0 days 11 hr. 52 min. 16 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /home/u01/app/oracle/product/12c/db_1/network/admin/listener.ora
Listener Log File         /home/u01/app/oracle/product/12c/diag/tnslsnr/heavensvr/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.189)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully


处理方式:

SQL> conn /as sysdba;
Connected.
SQL> show parameter local

NAME                                 TYPE
------------------------------------ ----------------------
VALUE
------------------------------
local_listener                       string

parallel_force_local                 boolean
FALSE
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
[oracle@heavensvr ~]$ ps -ef | grep tns
root        18     2  0 02:30 ?        00:00:00 [netns]
oracle    2614     1  0 02:32 ?        00:00:00 /home/u01/app/oracle/product/12c/db_1/bin/tnslsnr LISTENER -inherit
oracle   24743 23747  0 14:27 pts/1    00:00:00 grep --color=auto tns
[oracle@heavensvr ~]$ sqlplus /nolog

SQL*Plus: Release 12.2.0.1.0 Production on Tue Jul 25 14:29:48 2017

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

SQL> conn /as sysdba;
Connected.
SQL> alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.xxx.xxx.189)(PORT=1521))' scope=both;

System altered.

SQL> alter system register;

System altered.

SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
[oracle@heavensvr ~]$ lsnrctl status

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 25-JUL-2017 14:30:52

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.xxx.xxx.189)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date                25-JUL-2017 02:32:16
Uptime                    0 days 11 hr. 58 min. 36 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /home/u01/app/oracle/product/12c/db_1/network/admin/listener.ora
Listener Log File         /home/u01/app/oracle/product/12c/diag/tnslsnr/heavensvr/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.189)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=heavensvr.xxx.xxx.xxx)(PORT=5500))(Security=(my_wallet_directory=/home/u01/app/oracle/admin/YMS/xdb_wallet))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "YMS" has 1 instance(s).
  Instance "YMS", status READY, has 1 handler(s) for this service...
Service "YMSXDB" has 1 instance(s).
  Instance "YMS", status READY, has 1 handler(s) for this service...
The command completed successfully


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值