sqlplus登入出错,密码含有特殊字符

有时候设置密码时候,里面包含了特殊字符,如$, @ ....等等

当密码中含有特殊字符解决办法﹕

例如﹕
SYS AS SYSDBA> alter user win identified by win@123$;
alter user win identified by win@123$
                                *
ERROR at line 1:
ORA-00922: missing or invalid option


Elapsed: 00:00:00.01
SYS AS SYSDBA> alter user win identified by "win@123$";

User altered.

Elapsed: 00:00:00.03
SYS AS SYSDBA> exit

[oracle@node ~]$ sqlplus win/"win@123$"

SQL*Plus: Release 10.2.0.1.0 - Production on Fri Mar 13 19:20:15 2009

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

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


Enter user-name:

[oracle@node ~]$ sqlplus 'win/"win@123$"'
WIN >
再此win 用戶進入了﹐所以在有特殊字符时是需要转义的

----------

alter user win identified by win@123$;
alter user win identified by win@123$
                                *
ERROR at line 1:
ORA-00922: missing or invalid option


Elapsed: 00:00:00.01
這條語句是會拋出錯的﹐

下面我們可以用oracle 中的password 命令來修改user 的密碼﹕

SYS AS SYSDBA> password win
Changing password for win
New password: win@123$
Retype new password: win@123$
Password changed
SYS AS SYSDBA> exit;

[oracle@node ~]$ sqlplus 'win/"win@123$"'
WIN >

此時密碼當成一連串的字符來處理了。

 

 

------------------------------------------------------------------------------------

引用来自:    http://www.itpub.net/thread-1138128-1-1.html

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

转载于:http://blog.itpub.net/8111049/viewspace-624311/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值