resources

Diagnose ORA-12514 in Oracle Database 19c

ORA-12514 means an Oracle Net listener received your connection request but did not know the requested database service. Compare the service name in the client’s connection identifier with the services known to the listener at that host and port. See Oracle’s ORA-12514 cause and actions.

Confirm the endpoint and the requested service

This guide covers SQL*Plus 19c and a single-instance Oracle Database 19c CDB on Linux x86-64, with a local TCP listener and a service for a pluggable database (PDB). Use an approved database account. The listener check requires access to the host running the listener and its Oracle software; if you only have client access, ask your DBA to run it. For the client setup, see installing Oracle Instant Client and SQL*Plus.

Read the host, port, and service name from the exact connection that failed. With an Easy Connect identifier, the part after the slash is the service name, not the instance SID. With a local alias, check the ADDRESS and CONNECT_DATA in the active tnsnames.ora. An alias can have a different name from its SERVICE_NAME. See the SQL*Plus 19c connection identifier examples and Oracle’s 19c local naming reference.

Check what the intended listener knows

On the listener host, use the first command if the listener uses the default name, or the second if it has a different name. Replace listener_name with the configured name. According to Oracle’s Listener Control reference for SERVICES, the command lists services, instances, and handlers; it does not change configuration.

lsnrctl services
lsnrctl services listener_name
  1. If the listener lists the intended service under a different name than the one the client used, confirm the correct name with the DBA and correct the client’s connection identifier.
  2. If the service is absent, confirm that you queried the listener at the endpoint used by the client. Then have the DBA verify that the target PDB is open and that its intended service is running and registered. Just after listener startup, Oracle advises waiting briefly and retrying because registration may not yet have completed.
  3. If the service remains absent, have the DBA review dynamic registration and the local listener address. Do not restart the listener or edit listener.ora as a first diagnostic step. Oracle deprecates customer use of the SERVICE_NAMES initialization parameter in 19c; do not confuse it with the client descriptor’s singular SERVICE_NAME.

Verify from the original client

After correcting the endpoint or service, or after registration completes, retry the original connection from the same client. If you also use a direct test and plain TCP is approved, the following follows Oracle’s SQL*Plus /NOLOG and Easy Connect examples. Substitute your approved endpoint and account. Keep the password at the prompt and retain any required wallet or TLS configuration.

sqlplus /nolog

At the SQL*Plus prompt:

CONNECT app_user@"dbhost.example.com:1521/app_pdb.example.com"

A successful login on the original connection verifies more than a populated listener service list. If ORA-12514 persists, send the DBA the failing endpoint, service, and time of the attempt so they can compare the failure with the listener log. A different Oracle error should be diagnosed separately.

If you are reproducing a service-name mismatch in a two-host lab, a small Ethernet switch can connect the client and database server on the same test network. Keep the listener address fixed while comparing the registered service with the name in the client connection string.

Oracle Net listener troubleshooting illustration
Article illustration
TP-Link TL-SG105
5-port Gigabit Ethernet switch
View on Amazon (paid link)