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

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

http://www.yibo1263.com 2008/4/28 8:40:40  來源:ccident  編輯:葉子
 

SQL>

這實(shí)際上就是無法通過口令文件驗(yàn)證身份

4.假如丟失了passwdfile

假如你使用passwdfile后卻意外丟失,那么此時(shí)將不能啟動(dòng)數(shù)據(jù)庫。

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

ORA-01990: error opening password file '/opt/oracle/product/9.2.0/dbs/orapw'

ORA-27037: unable to obtain file status

Linux Error: 2: No such file or directory

Additional information: 3

我們可以通過orapwd重建口令文件來解決此問題

此處我們恢復(fù)口令文件就可以了

SQL> !

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

[oracle@jumper oracle]$ exit

exit

SQL> alter database open;

Database altered.

SQL>

5. remote_login_passwordfile = shared

Oracle9i文檔說明:

SHARED

More than one database can use a password file. However, the only user recognized by the password file is SYS.

 --多個(gè)數(shù)據(jù)庫可以共享一個(gè)口令文件,但是只可以識(shí)別一個(gè)用戶:SYS

 SQL> select * from v$pwfile_users;

USERNAME SYSDB SYSOP

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

SYS TRUE TRUE

SQL> grant sysdba to eygle;

grant sysdba to eygle

*

ERROR at line 1:

ORA-01994: GRANT failed: cannot add users to public password file

 SQL> show parameter password

NAME TYPE VALUE

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

remote_login_passwordfile string SHARED

  大家可以發(fā)現(xiàn),此時(shí)的口令文件中是不能添加用戶的。很多人可能會(huì)問:口令文件的缺省名稱是orapw,如何才能共享?

  其實(shí)Oracle數(shù)據(jù)庫在啟動(dòng)時(shí),首先查找的是orapw的口令文件,假如該文件不存在,則開始查找,orapw的口令文件。如果口令文件命名為orapw,多個(gè)數(shù)據(jù)庫就可以共享。

再來看一下測(cè)試:

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

SQL*Plus: Release 9.2.0.3.0 - Production on Tue Jul 6 09:40:34 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> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> !

[oracle@jumper dbs]$ ls

hsjf initdw.ora inithsjf.ora init.ora lkHSJF orapwhsjf spfilehsjf.ora

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

[oracle@jumper dbs]$ exit

exit

SQL> startup

ORACLE instance started.

Total System Global Area 235999908 bytes

Fixed Size 451236 bytes

Variable Size 201326592 bytes

Database Buffers 33554432 bytes

Redo Buffers 667648 bytes

ORA-01990: error opening password file '/opt/oracle/product/9.2.0/dbs/orapw'

--它是最后查找的文件

ORA-27037: unable to obtain file status

Linux Error: 2: No such file or directory

Additional information: 3

建立orapw口令文件,此時(shí)可以打開數(shù)據(jù)庫。


SQL> !

[oracle@jumper dbs]$ ls

hsjf initdw.ora inithsjf.ora init.ora lkHSJF orapwhsjf.bak spfilehsjf.ora

本新聞共3頁,當(dāng)前在第2頁  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)力,新極限 甲骨文在沈陽發(fā)布全新O
·Oracle 復(fù)制方法逐步精細(xì)
·教你簡(jiǎn)便實(shí)現(xiàn)Oracle數(shù)據(jù)庫文件移動(dòng)方法
·Oracle數(shù)據(jù)庫并行處理技術(shù)詳解
·關(guān)于Oracle數(shù)據(jù)庫備份與恢復(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
叛逆嫩模性感寫真
宮如敏不雅照瘋傳 看張馨予韓一菲獸獸誰
不懼孔子搶位 阿凡達(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筆記本模特寫真
娄底市| 历史| 中宁县| 弋阳县| 和硕县| 万盛区| 桓台县| 旬邑县| 宁阳县| 南京市| 渑池县| 革吉县| 新巴尔虎左旗| 乐东| 双城市| 铜鼓县| 湘潭县| 营山县| 江津市| 如东县| 桑日县| 六安市| 海晏县| 北流市| 龙山县| 宜君县| 睢宁县| 随州市| 双城市| 铜山县| 浦城县| 当阳市| 三原县| 威远县| 甘洛县| 新野县| 乌拉特后旗| 朝阳市| 房产| 吴桥县| 姜堰市|