ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Oracle 用户密码含特殊字符时的登陆问题

Oracle 用户密码含特殊字符时的登陆问题

原创 Linux操作系统 作者:wlot378 时间:2012-11-12 11:40:15 0 删除 编辑

============================================================
Oracle 用户密码含特殊字符时的登陆问题
王磊/菜小小~@2012/10/30 13:22
============================================================
当oracle数据库用户的密码含特殊字符如 @ 时,直接使用正常的密码输入,由于oracle将@后的字符解析为网络服务名而导致登陆失败

如下演示 用户名为:wang 密码为:oracle@1 网络服务名为:sun 的情况:

Linux平台:'wang/"oracle@1"'@sun --1个双引号扩密码,1个单引号扩 用户名+密码,即: '用户名/"密码"'@服务名

[11:41:14oracle@dvd adump]$sqlplus wang/oracle@1@sun

SQL*Plus: Release 11.2.0.1.0 Production on Tue Oct 30 11:41:24 2012

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

ERROR:

ORA-12532: TNS:invalid argument

[11:42:24oracle@dvd adump]$sqlplus 'wang/"oracle@1"'@sun --1个双引号扩密码,1个单引号扩 用户名+密码,即: '用户名/"密码"'@服务名

SQL*Plus: Release 11.2.0.1.0 Production on Tue Oct 30 11:42:25 2012

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

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the OLAP and Data Mining options

wang@SUN> 

Windows 平台:wang/"""oracle@1"""@sun --3个双引号扩密码,即: 用户名/"""密码"""@服务名

C:\Users\wanglei.ITADMIN>sqlplus wang/oracle@1@sun

SQL*Plus: Release 11.2.0.1.0 Production on 星期二 10月 30 13:20:00 2012

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

ERROR:

ORA-12154: TNS: 无法解析指定的连接标识符

请输入用户名:

C:\Users\wanglei.ITADMIN>sqlplus wang/"""oracle@1"""@sun --3个双引号扩密码,即: 用户名/"""密码"""@服务名

SQL*Plus: Release 11.2.0.1.0 Production on 星期二 10月 30 13:20:30 2012

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

连接到:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the OLAP and Data Mining options

SQL>

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21162451/viewspace-749001/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-06-07

  • 博文量
    30
  • 访问量
    220619