pmdba, March 12, 2017 - 4:03 am UTC
The special characters you decide to allow or not allow in your passwords may depend in part on the tools and client operating systems that your users will be making use of. While the database can technically handle just about anything, client software may be an issue. Depending on the software, double-quotes may or may not be included around the password when it is submitted, or users may need to be reminded to place quotes themselves. Some things may work fine from within an application, or perfectly well on a web site, but not from a command-line, and different client operating systems may have different reserved characters for their own uses. You may have to experiment some to determine whether there are any "problem" characters in your own setup.
Best practice
Adrian, March 13, 2017 - 1:50 pm UTC
Just to add a swerveball to the question/answer - what is 'allowed' by Oracle may not suit your company's best practice. For example using non-repeating characters, passwords that end with '123'. I know this isn't necessarily a direct answer to the question but over 21 years in this industry I'm still amazed at easily guessed passwords being used
The solution that worked for me
Clay Mitchell, May 08, 2019 - 7:57 pm UTC
Overall, this was the most useful of all my searches. As I am trying to connect to sqlplus from a Linux command-line, the following did not work for me:
sqlplus XXX_user/"x@yyyzzz"@//host:port/service
This returns the TNS not found error.
However surrounding the connection string with single quotes does work:
sqlplus 'XXX_user/"x@yyyzzz"@//host:port/service'
May 10, 2019 - 8:04 am UTC
Thanks for sharing.
It worked successfully with double quotes in password
Anchal Todariya, August 06, 2021 - 12:05 pm UTC
Thanks a lot this suggestion worked for me:
By-
Clay Mitchell, May 08, 2019 - 7:57 pm UTC
SQL> connect XXX_user/"x@yyyzzz"@tns_service_name
surrounded the password with double quotes and sqlplus was able to interpret the password correctly.
August 06, 2021 - 3:28 pm UTC
Great