【ORA-28001】ORA-28001: the password has expired
一、問題現象
登入資料庫時,Oracle提示錯誤訊息 ORA-28001: the password has expired。
二、問題解析
由於Oracle11g的新特性,Oracle11g建立使用者時預設密碼過期限制是180天(即6個月),如果超過180天使用者密碼未做修改則該使用者無法登入。Oracle公司是為了資料庫的安全性預設在11g中引入了這個預設功能,但是這個預設的功能很容易被DBA或者是開發人員給疏忽,一旦密碼180天未修改過,就會出現這樣的問題。
三、解決方法
1、查詢密碼的有效期設定,LIMIT欄位是密碼有效期天數
SELECT * FROM dba_profiles WHERE profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
ALTER USER 使用者名稱 IDENTIFIED BY 密碼;
3、修改密碼後,會發現該賬戶會被鎖定,這時需要通過如下SQL語句進行解鎖
ALTER USER 使用者名稱 ACCOUNT UNLOCK;
4、如果想去除180天的密碼生存週期的限制可通過如下SQL語句將其關閉
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
四、問題小結
如果追求安全性的話,建議定期修改使用者登入密碼;如果使用特定密碼,建議將密碼生存週期的限制關閉。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30776559/viewspace-2151534/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-28001:the password has expired
- yarn certificate has expiredYarn
- 專案使用guzzleHttp報錯:certificate has expiredHTTP
- electron專案npm i 報錯certificate has expiredNPM
- Password is required when adding a database to AG group if the database has a master keyUIDatabaseAST
- npm ERR! code CERT_HAS_EXPIRED:解決證書過期問題NPM
- npm報錯:request to https://registry.npm.taobao.org failed, reason certificate has expiredNPMHTTPAI
- 轉載:yarn安裝依賴時報錯certificate has expired at TLSSocket.onConnectSecureYarnTLS
- Rancher Dashboard 無法訪問 引申發現K8S報錯Unable to connect to the server: x509: certificate has expired or is not yet validK8SServer
- 什麼叫archive log expired?Hive
- Django中的函式make_password、set_password和check_passwordDjango函式
- no-wwwtl622com17008768000-password never prompt for password
- Password Storage - UserDetailsAI
- iOS Password AutoFilliOS
- Oracle 賬號 EXPIRED(GRACE) 意義-拾億Oracle
- [CSS 3] :has()CSS
- scp without interative password
- URL password 屬性
- ZooKeeper如何模擬會話失效(Session Expired)會話Session
- php password_hash password_verify 加密驗證不需要saltPHP加密
- RuntimeError: An attempt has been made to start a new process before the current process hasError
- docker_sshd without passwordDocker
- Reflect.has() 方法
- ORACLE賬戶提示EXPIRED(GRACE)問題解決Oracle
- Batch containing 11 record(s) expired due to timeout while requesting metadataBATAIWhile
- password_hash加密例項加密
- HTML input password 密碼框HTML密碼
- HTML input password密碼框HTML密碼
- MySQL server has gone awayMySqlServerGo
- ‘dict‘ object has no attribute ‘iteritems‘Object
- Proxy handler.has() 方法
- Process object has no attribute '_popen'Object
- Input報錯“Form elements must have labels: Element has no title attribute Element has no placeholde”ORM
- FreeBSD on Raspberry PI root, freebsd account password
- 1Password 實用快捷鍵
- 域滲透——Local Administrator Password Solution
- Teamcenter 《POM has not start》處理
- AttributeError: 'Settings' object has no attribute 'HBase'ErrorObject