The listener supports no services oracle注册监听
问题登场:
[oracle@my-e450 ~]$ lsnrctl status
……
The listener supports no services
The command completed successfully
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
descriptor
解决过程:
SQL> alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.133)(PORT=1521))';
System altered.
验证:
[oracle@my-e450 ~]$ lsnrctl status
……
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