My Oracle Support Banner

ORA-12154: Cannot Connect to SQLPLUS When Username or Password Contains "@" Special Character (Doc ID 2761789.1)

Last updated on JANUARY 14, 2024

Applies to:

SQL*Plus - Version 19.5 and later
Information in this document applies to any platform.


SQL*Plus fails to connect to database with the following error when username or password contains "@" special character:

ORA-12154: TNS:could not resolve the connect identifier specified

This behavior is only happening when the username or password contains @ special character. No other special character is causing errors at connection.

The problem is not seen in older versions, but appears to show up in sqlplus 19c.




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.