The listener supports no services oracle註冊監聽

問題登場:oracle

[oracle@my-e450 ~]$ lsnrctl statusthis

……ip

The listener supports no services
The command completed successfullyservice

 

SQL> conn sys/oracle@192.168.1.133:1521/orcl as sysdba
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptorrequest

 

解決過程:command

SQL> alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.133)(PORT=1521))';db

System altered.vi

 

驗證:handler

[oracle@my-e450 ~]$ lsnrctl statusdba

……

Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...

Service "orclpdb" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...

 

SQL> conn sys/oracle@192.168.1.133:1521/orcl as sysdba
Connected.

嗯,問題解決了!

注: oracle 版本爲 12.2.0.1.0

寫於 Oct.30, 2019

相關文章
相關標籤/搜索