Solution to connect user with “@” Password using sqlplus

Solution to connect user with “@” Password using sqlplus

Verify the telnet with specific port as shown below

C:\Users>telnet 192.168.1.1 1521

Or

[oracle@localhost ~]$ telnet 192.168.1.1 1521

Trying 192.168.1.1...
Connected to 192.168.1.1
Escape character is '^]'

Try to connect with user which has password as “M@R” using sqlplus

[oracle@localhost ~]$ sqlplus mir/"M@R"

SQL*Plus: Release 11.2.0.4.0 Production on Tue Sep 5 14:53:15 2017

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

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

[oracle@localhost ~]$

Solution:

Syntax:
sqlplus scott/\”scott@test\”@TEST_DB

or
sqlplus scott/\”t@ger@\”@IP/SID
C:\Users>sqlplus MIR/\"M@R\"@192.168.1.1/testdb

SQL*Plus: Release 11.2.0.3.0 Production on Tue Sep 5 14:28:33 2017

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>

Note: Recommend not to create the user password which include @

Hence Resolved

Comments

Popular posts from this blog

RAC Failure Scenario - Testing in our RAC Test DB - Node 1 & Node 2

ORA-01110: data file 1: '/oradata/datafiles/system01.dbf'

Expdp from Higher version 12c (12.1.0.2) to lower version 11g (11.2.0.4)