免费观看又色又爽又黄的小说免费_美女福利视频国产片_亚洲欧美精品_美国一级大黄大色毛片

Oracle密碼文件與用戶密碼的關(guān)系-創(chuàng)新互聯(lián)

今天一位同事接到一項任務(wù)是修改數(shù)據(jù)庫SYS和SYSTEM用戶的密碼,老大在布置任務(wù)的時候還帶了一句別忘了同步密碼文件,于是想到了自己前幾天寫的一篇博客介紹Oracle密碼文件的,當時只是寫了如何創(chuàng)建密碼文件,如何遠程使用SYSDBA登錄數(shù)據(jù)庫做操作,但是并沒有提到密碼文件中用戶的密碼跟數(shù)據(jù)庫中用戶的密碼是否有關(guān)系。

創(chuàng)新互聯(lián)公司是一家集網(wǎng)站建設(shè),渭城企業(yè)網(wǎng)站建設(shè),渭城品牌網(wǎng)站建設(shè),網(wǎng)站定制,渭城網(wǎng)站建設(shè)報價,網(wǎng)絡(luò)營銷,網(wǎng)絡(luò)優(yōu)化,渭城網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強企業(yè)競爭力。可充分滿足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時我們時刻保持專業(yè)、時尚、前沿,時刻以成就客戶成長自我,堅持不斷學習、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實用型網(wǎng)站。

下面來測試一下,我用的平臺是11.2.0.4

首先修改SYS的密碼

sys@ORCL>alter user sys identified by zhaoxu; User altered. --由于11g里dba_user視圖里的password是空值,所以選擇user$視圖 sys@ORCL>select password from user$ where name='SYS'; PASSWORD ------------------------------------------------------------------------------------------ C53B64BC84353309 --建議remote_login_passwordfile需要為EXCLUSIVE sys@ORCL>show parameter remote_login_passwordfile NAME      TYPE        VALUE ------------------------------------ --------------------------------- ------------------------------ remote_login_passwordfile      string        EXCLUSIVE

創(chuàng)建一個密碼文件然后測試遠程登錄

#創(chuàng)建一個與SYS用戶密碼相同的密碼文件 [oracle@rhel6 dbs]$ cd $ORACLE_HOME/dbs [oracle@rhel6 dbs]$ orapwd file=orapworcl entries=3 password=zhaoxu [oracle@rhel6 dbs]$ ls -l orapworcl  -rw-r----- 1 oracle oinstall 1536 Dec 26 21:32 orapworcl #測試連接成功 [c:\~]$ sqlplus sys/zhaoxu@192.168.56.2/orcl as sysdba SQL*Plus: Release 12.1.0.1.0 Production on 星期一 12月 26 21:34:22 2016 Copyright (c) 1982, 2013, 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> select password from user$ where name='SYS'; PASSWORD ------------------------------------------------------------ C53B64BC84353309 #密碼的HASH值沒有變化 #創(chuàng)建一個與SYS密碼不同的密碼文件 [oracle@rhel6 dbs]$ orapwd file=orapworcl entries=3 password=luoxi force=y [oracle@rhel6 dbs]$ ls -l orapworcl  -rw-r----- 1 oracle oinstall 1536 Dec 26 21:36 orapworcl #測試連接,使用原密碼文件的密碼登錄不成功,使用新密碼文件的密碼登錄成功,但是SYS用戶的密碼HASH值仍沒有變 [c:\~]$ sqlplus sys/zhaoxu@192.168.56.2/orcl as sysdba SQL*Plus: Release 12.1.0.1.0 Production on 星期一 12月 26 21:36:20 2016 Copyright (c) 1982, 2013, Oracle.  All rights reserved. ERROR: ORA-01017: invalid username/password; logon denied [c:\~]$ sqlplus sys/luoxi@192.168.56.2/orcl as sysdba SQL*Plus: Release 12.1.0.1.0 Production on 星期一 12月 26 21:36:30 2016 Copyright (c) 1982, 2013, 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> select password from user$ where name='SYS'; PASSWORD ------------------------------------------------------------ C53B64BC84353309

測試直接修改SYS用戶密碼,查看密碼文件會有什么變化

#修改SYS密碼成功,密碼HASH值與之前不同 sys@ORCL>alter user sys identified by oracle; User altered. sys@ORCL>select password from user$ where name='SYS'; PASSWORD ------------------------------------------------------------------------------------------ 8A8F025737A9097A #查看密碼文件,在修改SYS密碼時密碼文件也有更新 [oracle@rhel6 dbs]$ ls -l orapworcl  -rw-r----- 1 oracle oinstall 1536 Dec 26 21:39 orapworcl #測試遠程登錄,使用luoxi密碼已不能登錄數(shù)據(jù)庫,但修改的SYS密碼可以登錄數(shù)據(jù)庫 [c:\~]$ sqlplus sys/luoxi@192.168.56.2/orcl as sysdba SQL*Plus: Release 12.1.0.1.0 Production on 星期一 12月 26 21:41:50 2016 Copyright (c) 1982, 2013, Oracle.  All rights reserved. ERROR: ORA-01017: invalid username/password; logon denied [c:\~]$ sqlplus sys/oracle@192.168.56.2/orcl as sysdba SQL*Plus: Release 12.1.0.1.0 Production on 星期一 12月 26 21:41:58 2016 Copyright (c) 1982, 2013, 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>

總結(jié)一下:修改SYS密碼時,會同時修改密碼文件中的密碼,保持一致;如果是手工創(chuàng)建的密碼文件,密碼文件中的密碼可以與SYS密碼相同也可以不同,都不影響遠程登錄。不過還是建議全SYS密碼與密碼文件中的密碼一致,以免需要急用遠程登錄時密碼反而不對,造成維護上的問題。

查詢MOS上也有相關(guān)的文檔:Password or SYS Doesn't Match the Hash Value in USER$ (文檔 ID 2139304.1)

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

本文題目:Oracle密碼文件與用戶密碼的關(guān)系-創(chuàng)新互聯(lián)
地址分享:http://m.newbst.com/article0/cegiio.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供搜索引擎優(yōu)化做網(wǎng)站小程序開發(fā)電子商務(wù)移動網(wǎng)站建設(shè)云服務(wù)器

廣告

聲明:本網(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)

外貿(mào)網(wǎng)站建設(shè)