密碼檔案丟失 恢復 1

2021-06-27 20:42:35 字數 766 閱讀 4621

以oracle10g作為測試版本,刪除10g的密碼檔案:

[oracle@oracle ~]$ rm /u01/oracle/10g/dbs/orapwjadl10g

遠端登入資料庫,密碼檔案在遠端登入時才會起作用:(此時遠端登入不能連線上db)

[oracle@oracle ~]$sqlplus sys/[email protected]:1521/jadl10g as sysdba

enter user-name:

執行以下的命令建立10g的密碼檔案:

[oracle@oracle ~]$ 10g

[oracle@oracle ~]$orapwd file=$oracle_home/dbs/orapwjadl10g password=123456 force=y;

建立完成後,遠端登入db,發現是可以連線的:

[oracle@oracle ~]$ sqlplus sys/[email protected]:1521/jadl10g as sysdba

12c 

orapwd file=$oracle_home/dbs/orapwjadl10g password=123456 force=y format=12 sysbackup=y syskm=y sysdg=y;

設定3個密碼;注意12c多了幾個特權使用者,可以執行以下sql比較10g/11g/12c三個版本的差異性:

select * from v$pwfile_users;

12c的pdb是不存在密碼檔案,只有cdb存在密碼檔案。

20151116 密碼檔案

檢視oracle資料庫版本號 select from v version 檢視當前使用者 select user from dual show user sysdba不是許可權,當使用者以sysdba身份登入資料庫時,登入使用者都會變成sys.sysdba身份登入可以開啟關閉資料庫,建立spfile...

oracle密碼檔案

很多時候需要對oracle密碼檔案進行重建,oracle對密碼檔案有著較為嚴格的要求,比如檔名,檔名大小寫等等,有一次因oracle sid的大小寫折騰了很久,現記錄如下 linux平台 orapwd file oracle home dbs orapw oracle sid password en...

oracle密碼檔案

很多時候需要對oracle密碼檔案進行重建,oracle對密碼檔案有著較為嚴格的要求,比如檔名,檔名大小寫等等,有一次因oracle sid的大小寫折騰了很久,現記錄如下 linux平台 orapwd file oracle home dbs orapw oracle sid password en...