Sometimes You can get “TNS-12514: TNS:listener does not currently know of service requested in connect descriptor ” error.
Details of error are as follows.
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
– Check which services are currently known by the listener by executing: lsnrctl services <listener name>
– Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
– If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
– Check for an event in the listener.log file.
This error is related with the listener and registered services of database. Check listener status
$ lsnrctl status listener
Listener should be always started.
Check listener services which services are listening.
lsnrctl services <listener name>
Check the SID parameter known by the listener. If the right SID specified or not in the listener status.
If the related service name and instance don’t exist in the listener status, then set it in the database and register it to database as follows.
SQL> alter system set local_listener='(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.63.34)(PORT=1521)))' scope=both; SQL> alter system register;
Do you want to learn more details about RMAN, then read the following articles.
509 views last month, 5 views today