ORA-01991: invalid password file


ORA-01991: invalid password file

指令:orapwd

在使用Oracle Instance Manager創建一數據庫實例的時侯,在$ORACLE_HOME/dbs/目錄下還自動創建了
一個與之對應的密碼文件,文件名為orapw.ora

有了Passwrod file,使用者才能以遠端用sysdba/sysoper的特權模式登入。

需要配合參數remote_login_passwordfile來做驗證
NONE--不使用Password file
EXCLUSIVE--使用Password file
SHARED--多個DB共享一個Password file,但只可以識別sys用戶

DB在啟動,首先查找的是orapw的Password file,如果不存在,則開始找orapw的密碼檔,
如果Password file名為orapw,多個DB就可以共享

Usage: orapwd file= password= entries= 

  where
    file - name of password file (mand),
    password - password for SYS (mand),
    entries - maximum number of distinct DBA and OPERs (opt),
  There are no spaces around the equal-to (=) character.


參數:
file                     產生指定的密碼檔
password           sys的密碼
entries                允許使用sysdba/sysoper權限登入的最大數

Oracle DB的listener.log清理