啓動weblogic報ORA-28001解決方式

Weblogic一個月不用,啓動報如下錯誤(採用oracle數據庫):

注:數據源配置:datasource.name.1=WM6_DS

<jta-data-source>jdbc/WM6_DS</jta-data-source>

<Sep 25, 2023 2:56:12 PM CST> <Notice> <WebLogicServer> <WL-000365> <Server state changed to STANDBY.>
<Sep 25, 2023 2:56:12 PM CST> <Notice> <WebLogicServer> <WL-000365> <Server state changed to STARTING.>
<Sep 25, 2023 2:56:12 PM CST> <Notice> <Log Management> <WL-170036> <The Logging monitoring service timer has started to check for logged message counts every 30 seconds.>
<Sep 25, 2023 2:56:12 PM CST> <Notice> <Security> <WL-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file C:\Weblogic12.2.1.3\user_projects\domains\jzmd\security\DemoIdentity.jks.>
<Sep 25, 2023 2:56:12 PM CST> <Notice> <Security> <WL-090169> <Loading trusted certificates from the jks keystore file C:\WEBLOG~1.3\wlserver\server\lib\DemoTrust.jks.>
<Sep 25, 2023 2:56:12 PM CST> <Notice> <Security> <WL-090169> <Loading trusted certificates from the jks keystore file C:\PROGRA~1\Java\JDK18~1.0_2\jre\lib\security\cacerts.>
<Sep 25, 2023 2:56:13 PM CST> <Warning> <JDBC> <WL-001129> <Received exception while creating connection for pool "WM6_DS": ORA-28001: the password has expired

 

<Sep 25, 2023 2:56:13 PM CST> <Error> <Deployer> <WL-149231> <Unable to set the activation state to true for the application "WM6_DS".
weblogic.application.ModuleException: javax.transaction.SystemException: Failed to call registerLoggingResourceTransactions() weblogic.transaction.loggingresource.LoggingResourceException: weblogic.transaction.loggingresource.LoggingResourceException: weblogic.jdbc.extensions.ConnectionDeadSQLException: weblogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.ResourceException: Could not create pool connection for datasource 'WM6_DS'. The DBMS driver exception was: ORA-28001: the password has expired

 來源:https://blog.csdn.net/tkw951211/article/details/125365557

前言
登錄數據庫時,出現ORA-28001:the password has expired錯誤,原因是Oracle11g中默認在default概要文件中設置了“PASSWORD_LIFE_TIME=180天”所致,處理方式如下:

解決方式
首先登錄數據庫的dba用戶
查看用戶的proifle是哪個:
SELECT username,PROFILE FROM dba_users;

查看用戶密碼的有效期:
SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';

將密碼有效期設爲永久:
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

修改後,還沒有被提示ORA-28001警告的用戶賬號不會再碰到同樣的提示;而已經被提示的用戶賬號必須再修改一次密碼:
alter user imes_intf3 identified by imesintf3 account unlock;
ALTER USER jzmdDB identified by jzmdDB account unlock;
如上:用戶:imes_intf3 密碼:imesintf3

下面是實戰截圖:

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章