Oracle使用者密碼含特殊字元時登陸失敗問題_oracle

來源:互聯網
上載者:User

當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>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.