oracle error ORA-12514

Problem: oracle failed to log in using the service name orcl, and reported an error

ORA-12514, TNS:listener does not currently know of service requested in conn

Cause analysis:
ORA-12514 errors usually indicate that the Oracle database listener cannot recognize the service name requested by the client. This may be due to the following reasons:

1. Wrong service name: Please make sure that the service name you use is correct and matches the service name in the Oracle database. All available service names can be listed using the lsnrctl services command.
2. Listener configuration error: Please check whether the service name is correctly configured in the listener configuration file (listener.ora) and Oracle database configuration file (tnsnames.ora). Make sure both the listener and the database use the same service name.

3. The service is not started: Please make sure that the service you are trying to connect to has been started. The status of listeners and services can be checked with the lsnrctl status command.
/4. Firewall or network problem: Please make sure that the firewall allows the client to connect to the Oracle database, and the network connection is normal. You can try to use the ping command to test whether the network connection is normal.

The cmd execution lsnrctl services result graph
insert image description here
represents that the service name is orcl.mshome.net instead of orcl and
should use orcl.mshome.net connection

There is also the command tnsping localhos

Guess you like

Origin blog.csdn.net/huan1213858/article/details/130688091