登陸資料庫時,如果密碼中包含@字元時,需要進行轉義,否時報ORA-12154?

hurp_oracle發表於2015-04-27
作業系統下登陸資料庫時,如果密碼中包含@字元時,需要進行轉義,否時報ORA-12154

oracle@TBZJS1:[/oracle/app/oracle/product/11.2.0/dbhome_1/bin] sqlplus  CHENJING/bzzw@4321@TBZJS1_obzjs1
SQL*Plus: Release 11.2.0.2.0 Production on Mon Apr 27 14:45:47 2015
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified

-----加雙引號同樣報錯
oracle@TBZJS1:[/oracle/app/oracle/product/11.2.0/dbhome_1/bin] sqlplus  CHENJING/"bzzw@4321"@TBZJS1_obzjs1
SQL*Plus: Release 11.2.0.2.0 Production on Mon Apr 27 14:45:47 2015
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
-----加雙引號同時對雙引號進行轉義可以正常登陸
oracle@TBZJS1:[/oracle] sqlplus  CHENJING/\"bzzw@4321\"@BZJS
SQL*Plus: Release 11.2.0.2.0 Production on Mon Apr 27 14:53:41 2015
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


SQL> 
SQL> 
SQL>  





來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29446986/viewspace-1606824/,如需轉載,請註明出處,否則將追究法律責任。

相關文章