orapwd建立密碼及驗證方法
orapwd file=$ORACLE_HOME/dbs/orapwSID password=xx
file名的格式必須是orapw+ORACLE_SID,否則不會正常
[oracle@GI_Softwareonly_64 dbs]$ orapwd
Usage: orapwd file= entries= force= ignorecase= nosysdba=
where
file - name of password file (required),
password - password for SYS will be prompted if not specified at command line,
entries - maximum number of distinct DBA (optional),
force - whether to overwrite existing file (optional),
ignorecase - passwords are case-insensitive (optional),
nosysdba - whether to shut out the SYSDBA logon (optional Database Vault only).
There must be no spaces around the equal-to (=) character.
CREATE DATABASE TDB
USER SYS IDENTIFIED BY sys_password
....
雖然會有sys使用者,且使用者狀態OPNE,但是
$ORACLE_HOME/dbs下面不會有密碼檔案
SQL> select * from v$pwfile_users沒有結果
sqlplus sys/XX@PROD1 as sysdba報錯許可權不夠
sqlplus sys/XX@PROD1無法登陸,提示需要sysdba或sysopen
SQL> grant sysdba to sys報錯ORA-01994: GRANT failed: password file missing or disabled
一旦$ORACLE_HOME/dbs下面有密碼檔案,則alter user sys identified時,ls -tl時,密碼檔案的時間會變成alter user sys identified的執行時間
試驗證明1:先使用orapwd建立了密碼A,再使用create database user sys建立了密碼B,真正的密碼是A,使用密碼B登入時sqlplus sys/B@prod_s as sysdba是會報錯ORA-01017: invalid username/password; logon denied,使用密碼A登入時sqlplus sys/A@prod_s as sysdba正常
試驗證明2:CREATE DATABASE TDB USER SYSTEM發現,system使用者自動有DBA許可權了
比如ORACLE_SID=PROD1,對應的tns也是PROD1
1、
sqlplus sys/XX@PROD1 as sysdba
報錯ORA-01017: invalid username/password; logon denied,說明正常配置,只是sys後面的密碼XX錯誤了
報錯ORA-01031: insufficient privileges,說明沒有配置成功
2、
SQL> select * from v$pwfile_users;
有結果,說明正常配置
沒有結果,說明沒有配置成功
file名的格式必須是orapw+ORACLE_SID,否則不會正常
[oracle@GI_Softwareonly_64 dbs]$ orapwd
Usage: orapwd file= entries= force= ignorecase= nosysdba=
where
file - name of password file (required),
password - password for SYS will be prompted if not specified at command line,
entries - maximum number of distinct DBA (optional),
force - whether to overwrite existing file (optional),
ignorecase - passwords are case-insensitive (optional),
nosysdba - whether to shut out the SYSDBA logon (optional Database Vault only).
There must be no spaces around the equal-to (=) character.
CREATE DATABASE TDB
USER SYS IDENTIFIED BY sys_password
....
雖然會有sys使用者,且使用者狀態OPNE,但是
$ORACLE_HOME/dbs下面不會有密碼檔案
SQL> select * from v$pwfile_users沒有結果
sqlplus sys/XX@PROD1 as sysdba報錯許可權不夠
sqlplus sys/XX@PROD1無法登陸,提示需要sysdba或sysopen
SQL> grant sysdba to sys報錯ORA-01994: GRANT failed: password file missing or disabled
一旦$ORACLE_HOME/dbs下面有密碼檔案,則alter user sys identified時,ls -tl時,密碼檔案的時間會變成alter user sys identified的執行時間
試驗證明1:先使用orapwd建立了密碼A,再使用create database user sys建立了密碼B,真正的密碼是A,使用密碼B登入時sqlplus sys/B@prod_s as sysdba是會報錯ORA-01017: invalid username/password; logon denied,使用密碼A登入時sqlplus sys/A@prod_s as sysdba正常
試驗證明2:CREATE DATABASE TDB USER SYSTEM發現,system使用者自動有DBA許可權了
比如ORACLE_SID=PROD1,對應的tns也是PROD1
1、
sqlplus sys/XX@PROD1 as sysdba
報錯ORA-01017: invalid username/password; logon denied,說明正常配置,只是sys後面的密碼XX錯誤了
報錯ORA-01031: insufficient privileges,說明沒有配置成功
2、
SQL> select * from v$pwfile_users;
有結果,說明正常配置
沒有結果,說明沒有配置成功
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30126024/viewspace-2146901/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 1.7.2. 使用ORAPWD建立資料庫密碼檔案資料庫密碼
- 驗證碼原理及驗證
- ACCESS 密碼驗證/文字驗證中的小坑密碼
- 無密碼驗證:客戶端密碼客戶端
- 賬戶、密碼格式···正則驗證密碼
- oracle 開啟複雜密碼驗證Oracle密碼
- 強密碼驗證正規表示式密碼
- ORACLE密碼錯誤驗證延遲Oracle密碼
- 手機號碼驗證方法(正則驗證)
- JQuery表單驗證(包括:使用者名稱,手機號,密碼,確認密碼,驗證碼60s)jQuery密碼
- jQuery Validate驗證確認密碼是否相同jQuery密碼
- 使用Docker部署帶密碼驗證的RedisDocker密碼Redis
- Oracle資料庫密碼延遲驗證Oracle資料庫密碼
- jquery 驗證密碼一致性jQuery密碼
- Flutter 密碼輸入框 驗證碼輸入框Flutter密碼
- 延遲密碼驗證特性引起的資料庫HANG死及當機密碼資料庫
- python 建立密碼Python密碼
- swift 郵箱、密碼、手機號、身份證驗證正則Swift密碼
- squid 反向代理且需要賬號、密碼驗證UI密碼
- 直播系統app原始碼,shiro簡單的密碼加鹽與密碼驗證APP原始碼密碼
- 【密碼檔案】Oracle 18c orapwd 命令 OPW-00029: Password complexity failed密碼OracleAI
- drf 認證校驗及原始碼分析原始碼
- 短視訊原始碼,密碼框驗證資訊文字提示原始碼密碼
- 關於登入(使用者名稱,密碼,驗證碼)密碼
- 直播平臺原始碼,JavaScript表單驗證密碼強度原始碼JavaScript密碼
- [Laravel] 自定義配置你的密碼驗證規則Laravel密碼
- 【Laravel】 自定義配置你的密碼驗證規則Laravel密碼
- nacos2.3 密碼驗證的處理過程密碼
- Packstack:建立概念驗證雲
- WWDC 2018:自動強密碼與驗證碼自動輸入密碼
- SpringBoot 整合 Shiro 密碼登入與郵件驗證碼登入(多 Realm 認證)Spring Boot密碼
- ORACLE 11g的密碼錯誤延時驗證Oracle密碼
- laravel修改使用者模組的密碼驗證Laravel密碼
- 驗證碼---js重新整理驗證碼JS
- PbootCMS後臺關閉驗證碼,登入提示驗證碼不能空的解決方法boot
- GitHub不再支援密碼驗證解決方案:SSH免密與Token登入配置Github密碼
- uniapp 完成兩種方式登入 驗證碼登入 密碼登入APP密碼
- 微信小程式6位或多位驗證碼/密碼輸入框微信小程式密碼
- java動態代理——代理方法的假設和驗證及Proxy原始碼分析五Java原始碼