亚洲AV无码乱码在线观看不卡|最新大伊香蕉精品视频在线|亚洲不卡av一区二区|国产美女无遮挡免费

登錄論壇 | 注冊(cè)會(huì)員 設(shè)為首頁(yè) | 收藏本站
當(dāng)前位置 : 首頁(yè)>軟件學(xué)院>數(shù)據(jù)庫(kù)>ORACLE>正文
 
正確認(rèn)識(shí)password file的作用

http://www.yibo1263.com 2008/4/28 8:40:40  來(lái)源:ccident  編輯:葉子
 

  許多人都知道,在數(shù)據(jù)庫(kù)沒(méi)有正式啟動(dòng)前,數(shù)據(jù)庫(kù)的內(nèi)建用戶是無(wú)法通過(guò)數(shù)據(jù)庫(kù)來(lái)驗(yàn)證身份的,但口令文件中存放sysdba/sysoper用戶的用戶名及口令卻允許用戶通過(guò)口令文件驗(yàn)來(lái)證,它可以在數(shù)據(jù)庫(kù)未啟動(dòng)之前登錄,然后再啟動(dòng)數(shù)據(jù)庫(kù)。

 。偃鐩](méi)有口令文件,在數(shù)據(jù)庫(kù)未啟動(dòng)之前就只能通過(guò)操作系統(tǒng)認(rèn)證)

  在我們使用Rman時(shí),許多情況下需要在nomount,mount等狀態(tài)下對(duì)數(shù)據(jù)庫(kù)進(jìn)行處理,因此這就要求sysdba權(quán)限如果屬于本地DBA組,才可以通過(guò)操作系統(tǒng)認(rèn)證登錄。

 。偃缡沁h(yuǎn)程sysdba登錄,需要通過(guò)passwordfile認(rèn)證)

  1.remote_login_passwordfile = NONE

  在此處我們需要停用口令文件驗(yàn)證,因?yàn)镺racle不允許遠(yuǎn)程SYSDBA/SYSOPER身份登錄。

local:

[oracle@jumper oracle]$ sqlplus "/ as sysdba"

SQL*Plus: Release 9.2.0.3.0 - Production on Thu Apr 15 09:58:45 2004

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

 Connected to:

Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production

With the Partitioning, OLAP and Oracle Data Mining options

JServer Release 9.2.0.3.0 - Production

SQL> alter user sys identified by oracle;

User altered.

SQL> show parameter pass

NAME TYPE VALUE

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

remote_login_passwordfile string NONE

remote:

E:\Oracle\ora92\bin>sqlplus /nologSQL*Plus: Release 9.2.0.4.0 -

Production on 星期四 4月 15 09:39:22 2004Copyright (c) 1982, 2002, Oracle

Corporation. All rights reserved.SQL> connect sys/oracle@hsjf as

sysdbaERROR:ORA-01017: invalid username/password; logon denied

大家可以發(fā)現(xiàn),此處是無(wú)法通過(guò)口令文件驗(yàn)證的。

2.remote_login_passwordfile = exclusive

SQL> alter system set remote_login_passwordfile=exclusive scope=spfile;

System altered.

SQL> startup force;

ORACLE instance started.

Total System Global Area 131142648 bytes

Fixed Size 451576 bytes

Variable Size 104857600 bytes

Database Buffers 25165824 bytes

Redo Buffers 667648 bytes

Database mounted.

Database opened.

SQL> show parameter pass

NAME TYPE VALUE

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

remote_login_passwordfile string EXCLUSIVE

SQL> alter user sys identified by oracle;

User altered.

remote:

E:\Oracle\ora92\bin>sqlplus /nologSQL*Plus: Release 9.2.0.4.0 -

Production on 星期四 4月 15 09:47:11 2004Copyright (c) 1982, 2002, Oracle

Corporation. All rights reserved.SQL> connect sys/oracle@hsjf as

sysdba已連接。SQL> show userUSER 為"SYS"SQL>

此處等同于通過(guò)口令文件驗(yàn)證登錄。

3.繼續(xù)測(cè)試

假如此時(shí)我們刪除passwdfile,sysdba/sysoper將會(huì)無(wú)法認(rèn)證,從而無(wú)法登錄數(shù)據(jù)庫(kù)。

Server:

SQL> !

[oracle@jumper oracle]$ cd $ORACLE_HOME/dbs

[oracle@jumper dbs]$ ls orapwhsjf

orapwhsjf

[oracle@jumper dbs]$ mv orapwhsjf orapwhsjf.bak

[oracle@jumper dbs]$

Remote:

E:\Oracle\ora92\bin>sqlplus /nolog

SQL*Plus: Release 9.2.0.4.0 - Production on 星期四 4月 15 09:50:14 2004

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

SQL> connect sys/oracle@hsjf as sysdba

ERROR:

ORA-01031: insufficient privileges

本新聞共3頁(yè),當(dāng)前在第1頁(yè)  1  2  3  

收藏】【打印】【進(jìn)入論壇
  相關(guān)文章:

·Oracle企業(yè)管理器增強(qiáng)對(duì)Oracle融合中間件的
·Oracle企業(yè)管理器可管理Oracle VM服務(wù)器虛擬
·新版Oracle企業(yè)管理器降低應(yīng)用管理成本
·Oracle商務(wù)智能應(yīng)用軟件推出新功能
·Oracle iGovernment即將亮相甲骨文大會(huì)
·‘芯’動(dòng)力,新極限 甲骨文在沈陽(yáng)發(fā)布全新O
·Oracle 復(fù)制方法逐步精細(xì)
·教你簡(jiǎn)便實(shí)現(xiàn)Oracle數(shù)據(jù)庫(kù)文件移動(dòng)方法
·Oracle數(shù)據(jù)庫(kù)并行處理技術(shù)詳解
·關(guān)于Oracle數(shù)據(jù)庫(kù)備份與恢復(fù) 
·Oracle密碼文件使用與維護(hù)技巧

 
 
 
最新文章

搶先蘋果,消息稱英特爾芯片采用臺(tái)積電
三星揭曉業(yè)內(nèi)首款單條 512GB DDR5 內(nèi)存
vivo 高端新機(jī)爆料:120Hz 曲面屏 + 天
vivo Y21 在印度正式上市:Helio P35 芯
微星推出 GeForce RTX 3080 Sea Hawk X
消息稱三星 Galaxy Tab S8 系列平板將放
機(jī)械革命推出 F6 輕薄本:16 英寸全面屏
英特爾 12 代 Alder Lake CPU 600 系列
雷軍:向小米手機(jī) 1 首批用戶每人贈(zèng)送價(jià)
小米李明談?dòng)脩舯惶叱?nbsp;MIUI 測(cè)試版:大

推薦文章
1
2
3
4
5
6
7
8
9
10
叛逆嫩模性感寫真
宮如敏不雅照瘋傳 看張馨予韓一菲獸獸誰(shuí)
不懼孔子搶位 阿凡達(dá)游戲影音配置推薦
2015第十七屆“東北安博會(huì)”火爆招商
第十六屆東北國(guó)際公共安全防范產(chǎn)品博覽
2016年第五屆中國(guó)國(guó)際商業(yè)信息化博覽會(huì)
2016年第五屆中國(guó)國(guó)際POS機(jī)及相關(guān)設(shè)備展
互聯(lián)網(wǎng)電視熟了嗎 2013最火電視深解析
桑達(dá)獲邀出席2015中國(guó)(廣州)國(guó)際POS機(jī)
寶獲利報(bào)名參加“2015年度中國(guó)POS機(jī)行業(yè)
八卦圖解 More>>
叛逆嫩模性感寫真 宮如敏不雅照瘋傳 看張馨予韓一菲
周偉童魔鬼身材日本性感寫真圖  聯(lián)想V360筆記本模特寫真
长子县| 闽侯县| 舒城县| 门头沟区| 平江县| 格尔木市| 邹平县| 八宿县| 汽车| 绍兴市| 休宁县| 林西县| 察雅县| 东城区| 榕江县| 尚义县| 武穴市| 高唐县| 新源县| 阳西县| 澳门| 长丰县| 比如县| 纳雍县| 普格县| 武强县| 朝阳县| 墨竹工卡县| 涟水县| 东城区| 五台县| 凉城县| 海安县| 常宁市| 平远县| 兰考县| 靖州| 河东区| 新源县| 永川市| 景泰县|