ORA-12154 means Oracle Net could not turn the connect identifier in your SQL*Plus command into a connect descriptor. If you use a tnsnames.ora alias, start with the client: check which configuration it reads, whether the alias is present, and whether the file parses. Restarting the listener will not fix a missing alias. See Oracle’s ORA-12154 cause and actions.
Start with the client that reported the error
This procedure covers SQL*Plus 19c on Linux x86-64 connecting over TCP to Oracle Database 19c. Use an existing installation, an account authorized for the target service, and the alias, listener host and port, and database service name supplied by your DBA. If the target is a pluggable database (PDB), use the service intended for that PDB. For client installation, see installing Oracle Instant Client and SQL*Plus.
Check the active naming files
- Check the
TNS_ADMINdirectory in the environment that starts SQL*Plus. It points to a directory, not totnsnames.oraitself. For other search locations, including the Oracle home and Instant Client’snetwork/adminsubdirectory, see Oracle’s 19c local naming search order. - If the active
sqlnet.orasetsNAMES.DIRECTORY_PATH, confirm thatTNSNAMESis included for local aliases. If your organization uses LDAP instead, check that naming method with your DBA; editing a local file is not a fix for an unavailable directory. - Confirm that
tnsnames.orais readable and contains the alias you typed. Check the entire file for unmatched parentheses, stray characters, or smart quotes. If the file is centrally managed, ask its owner to correct it rather than replacing it.
In this example, APP_PDB is the client-side alias. The separate SERVICE_NAME tells the listener which service you want. Replace the example values with those supplied by your DBA. The structure follows Oracle’s general syntax for tnsnames.ora.
APP_PDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = dbhost.example.com)(PORT = 1521))
(CONNECT_DATA = (SERVICE_NAME = app_pdb.example.com))
)
Retry the alias, then isolate the failure
From the same environment, retry with your approved account. Omit the password and enter it only at the prompt. The SQL*Plus 19c guide documents this net service name syntax.
sqlplus app_user@APP_PDB
If plain TCP and Easy Connect are permitted, compare with a connection to the same host, port, and service. If NAMES.DIRECTORY_PATH is set, Oracle’s ORA-12154 guidance says to check for EZCONNECT before using this test. Do not substitute plain TCP for a required wallet or TLS connection.
sqlplus /nolog
At the SQL*Plus prompt:
CONNECT app_user@"dbhost.example.com:1521/app_pdb.example.com"
If the direct connection succeeds but the alias still reports ORA-12154, recheck the local naming file and the environment loading it. If either attempt returns ORA-12514, the listener received a request but did not recognize the requested service; send your DBA the host, port, service, and error code. Verify the original alias by getting a successful login with it, not merely by getting a different error.
If the alias works on one workstation but fails on another, compare the Oracle Net configuration on both first. For a separate reachability check from a laptop without an Ethernet port, this USB adapter lets you connect it to an authorized wired lab network.

