Problem debut:
[oracle@my-e450 ~]$ lsnrctl status
……
The listener supports no services
The command completed successfully
SQL> conn sys/[email protected]:1521/orcl as sysdba
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
Resolution process:
SQL> alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.133)(PORT=1521))';
System altered.
verification:
[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/[email protected]:1521/orcl as sysdba
Connected.
Ah, the problem solved!
Note: oracle version 12.2.0.1.0
Written on Oct.30, 2019