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