oracle用戶密碼設(shè)置為什么不能有特殊字符-創(chuàng)新互聯(lián)

本篇內(nèi)容主要講解“oracle用戶密碼設(shè)置為什么不能有特殊字符”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學(xué)習(xí)“oracle用戶密碼設(shè)置為什么不能有特殊字符”吧!

成都創(chuàng)新互聯(lián)長期為近1000家客戶提供的網(wǎng)站建設(shè)服務(wù),團隊從業(yè)經(jīng)驗10年,關(guān)注不同地域、不同群體,并針對不同對象提供差異化的產(chǎn)品和服務(wù);打造開放共贏平臺,與合作伙伴共同營造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為靖遠(yuǎn)企業(yè)提供專業(yè)的成都做網(wǎng)站、成都網(wǎng)站建設(shè)、成都外貿(mào)網(wǎng)站建設(shè)靖遠(yuǎn)網(wǎng)站改版等技術(shù)服務(wù)。擁有十年豐富建站經(jīng)驗和眾多成功案例,為您定制開發(fā)。

當(dāng)oracle用戶的密碼里帶有如@、$、!等特殊字符時,會出現(xiàn)一些問題。

以hr用戶為例:

當(dāng)oracle用戶的密碼里帶有@時:

SYS@ORCL> alter user hr identified by qwet@2017;

alter user hr identified by qwet@2017

*

ERROR at line 1:

ORA-00922: missing or invalid option

SYS@ORCL> alter user hr identified by 'qwet@2017';

alter user hr identified by 'qwet@2017'

*

ERROR at line 1:

ORA-00988: missing or invalid password(s)

SYS@ORCL> alter user hr identified by "qwet@2017";

User altered.

修改密碼需用雙引號包含密碼;

[oracle@hhu Desktop]$ sqlplus hr/qwet@2017

SQL*Plus: Release 11.2.0.4.0 Production on Thu Sep 7 10:09:09 2017

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

ERROR:

ORA-12543: TNS:destination host unreachable

Enter user-name:

[oracle@hhu Desktop]$ sqlplus 'hr/"qwet@2017"'

SQL*Plus: Release 11.2.0.4.0 Production on Thu Sep 7 10:08:28 2017

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

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

HR@ORCL>

在linux腳本或shell中需要填寫用戶名和密碼時候按以下格式稍加修改;

            '用戶名/"密碼"',加一對單引號和一對雙引號

當(dāng)使用!時:

HR@ORCL> alter user hr identified by qwet!2017;

alter user hr identified by qwet!2017

*

ERROR at line 1:

ORA-00922: missing or invalid option

HR@ORCL> alter user hr identified by "qwet!2017";

User altered.

[oracle@hhu Desktop]$ sqlplus 'hr/"qwet!2017"'

SQL*Plus: Release 11.2.0.4.0 Production on Thu Sep 7 10:01:38 2017

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

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

HR@ORCL>

當(dāng)使用$時:

HR@ORCL> alter user hr identified by qwet$2017;

User altered.

HR@ORCL> conn hr/qwet$2017;

Connected.

[oracle@hhu Desktop]$ sqlplus hr/qwet$2017

SQL*Plus: Release 11.2.0.4.0 Production on Thu Sep 7 10:00:21 2017

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

ERROR:

ORA-01017: invalid username/password; logon denied

Enter user-name:

[oracle@hhu Desktop]$ sqlplus hr/"qwet$2017"

SQL*Plus: Release 11.2.0.4.0 Production on Thu Sep 7 10:00:35 2017

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

ERROR:

ORA-01017: invalid username/password; logon denied

Enter user-name:

[oracle@hhu Desktop]$ sqlplus 'hr/"qwet$2017"'

SQL*Plus: Release 11.2.0.4.0 Production on Thu Sep 7 10:00:44 2017

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

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

HR@ORCL>

到此,相信大家對“oracle用戶密碼設(shè)置為什么不能有特殊字符”有了更深的了解,不妨來實際操作一番吧!這里是創(chuàng)新互聯(lián)網(wǎng)站,更多相關(guān)內(nèi)容可以進入相關(guān)頻道進行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!

分享文章:oracle用戶密碼設(shè)置為什么不能有特殊字符-創(chuàng)新互聯(lián)
文章路徑:http://bm7419.com/article24/dcocce.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供域名注冊網(wǎng)站內(nèi)鏈、ChatGPT、手機網(wǎng)站建設(shè)App開發(fā)、網(wǎng)站制作

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

搜索引擎優(yōu)化