問題一:我遇到這個問題是在java web 項目啟動后,用戶登錄系統失敗
查看系統日志的時候,報ORA-28001: the password has expired錯誤
解決辦法:於是通過PL/SQL登錄數據庫時,提示需要修改密碼(注意:不能和原先的密碼相同)
問題二:修改的新密碼是 admin@123 ,項目中配置數據庫的方式如下,換上新密碼后,仍然訪問不了數據庫(密碼中有特殊符號@的原因)
解決辦法:重新修改數據庫登錄密碼 或者 密碼串 用雙引號加單引號的方式,如下
zyyyxy_decision/'"admin@123"'@192.168.0.46:1521:orcl
問題一的網上解決辦法:
后台報ORA-28001: the password has expired 密碼超時
登錄數據庫服務器,使用 sqlplus / as sysdba命令,進入oracle數據庫
使用:select * from dba_profiles where profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';
語句查看密碼的有效天數為180天,也就是六個月
使用:alter profile default limit password_life_time unlimited; 命令改為永久生效
驗證
進行以上步驟之后需要改變密碼,否則還會出現password has expired異常
修改用戶密碼:
————————————————
版權聲明:問題一的網上解決辦法為CSDN博主「上善若水」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/btt2013/article/details/54862420
問題二的網上解決辦法:
oracle 數據庫用戶的密碼含有 @特殊字符,sqlplus user/passwd@tnsname 方式登錄報錯 ORA-12514
環境:
用戶: yqf1
密碼: yqf1@123
sqlplus 登錄失敗:
[oracle@test admin]$ sqlplus yqf1/yqf1@123@test
SQL*Plus: Release 10.2.0.5.0 - Production on Fri Mar 20 16:25:43 2020
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
解決方法:
1.密碼串 用雙引號加單引號的方式
[oracle@test admin]$ sqlplus yqf1/'"yqf1@123"'@test
SQL*Plus: Release 10.2.0.5.0 - Production on Fri Mar 20 16:26:45 2020
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
用雙引號 括起密碼,再用單引號括起用戶/密碼
[oracle@test admin]$ sqlplus 'yqf1/"yqf1@123"'@test
SQL*Plus: Release 10.2.0.5.0 - Production on Fri Mar 20 16:31:28 2020
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
pl/sql developer 客戶端登錄並不受密碼串有特殊字符影響。
————————————————
版權聲明:問題二的網上解決辦法為CSDN博主「yqfntx」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/yqfntx/article/details/104993530