oracle用户密码不小心设置了带有“@”符号,正常登陆总是无法登陆,提示无法解析的连接字符串错误,其实解决办法很简单,转义即可,如下:
-
方法一:
-
-
C:\Users\Administrator>sqlplus h2/\"hydee@soft123\"@huarun_h2
-
-
SQL*Plus: Release 11.2.0.1.0 Production on 星期四 11月 19 10:31:26 2015
-
-
Copyright (c) 1982, 2010, Oracle. All rights reserved.
-
-
-
连接到:
-
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> exit;
-
方法二:
-
-
C:\Users\Administrator>sqlplus h2/"""hydee@soft123"""@huarun_h2
-
-
SQL*Plus: Release 11.2.0.1.0 Production on 星期四 11月 19 10:32:28 2015
-
-
Copyright (c) 1982, 2010, Oracle. All rights reserved.
-
-
-
连接到:
-
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>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21251711/viewspace-1840960/
,如需转载,请注明出处,否则将追究法律责任。