ORA-28002 Oracle 11g存在密碼過(guò)期問(wèn)題解決方案
更新時(shí)間:2012年11月27日 14:56:04 作者:
oracle數(shù)據(jù)庫(kù)使用中會(huì)遇到ORA-28002 Oracle 11g存在密碼過(guò)期問(wèn)題,本文將提供詳細(xì)的解決方案,需要的朋友可以參考下
故障現(xiàn)象
Oracle Database 11g 數(shù)據(jù)庫(kù)普通用戶(hù)登錄時(shí)提示 ORA-28002: the password will expire within 7 days
[11:01:00oracle@dvd db_1]$sqlplus wang/oracle
SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 16 11:01:23 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-28002: the password will expire within 7 days
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the OLAP and Data Mining options
wang@SUN>
故障原因
Oracle 11G 普通用戶(hù)有個(gè)180天的缺省密碼周期,當(dāng)快過(guò)期的時(shí)候即會(huì)出現(xiàn)此提示;
解決辦法
查看當(dāng)前用戶(hù)對(duì)應(yīng)profile、對(duì)應(yīng)密碼周期
select * from dba_profiles where profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
alter profile default limit password_life_time unlimited;
SELECT username,PROFILE FROM dba_users where username like upper('&USER');
sys@SUN> SELECT username,PROFILE FROM dba_users where username like upper('&USER');
Enter value for user: wang
old 1: SELECT username,PROFILE FROM dba_users where username like upper('&USER')
new 1: SELECT username,PROFILE FROM dba_users where username like upper('wang')
USERNAME PROFILE
------------------------------ ------------------------------
WANG DEFAULT
--查詢(xún)到該用戶(hù)對(duì)應(yīng)的Profile文件為 DEFAULT
sys@SUN> set lines 222
sys@SUN> col PROFILE for a20
sys@SUN> col RESOURCE_NAME for a20
sys@SUN> col RESOURCE_TYPE for a20
sys@SUN> col LIMIT for a20
sys@SUN> select * from dba_profiles where profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT
-------------------- -------------------- -------------------- --------------------
DEFAULT PASSWORD_LIFE_TIME PASSWORD 180
--查詢(xún)到該profile對(duì)應(yīng)的密碼生命周期配置為180天
修改當(dāng)前用戶(hù)對(duì)應(yīng)profile對(duì)應(yīng)對(duì)應(yīng)密碼周期
sys@SUN> alter profile default limit password_life_time 365;
Profile altered.
--修改該profile對(duì)應(yīng)的密碼生命周期配置為365天
sys@SUN> alter profile default limit password_life_time unlimited;
Profile altered.
--修改該profile對(duì)應(yīng)的密碼生命周期配置為 無(wú)限制
Oracle Database 11g 數(shù)據(jù)庫(kù)普通用戶(hù)登錄時(shí)提示 ORA-28002: the password will expire within 7 days
[11:01:00oracle@dvd db_1]$sqlplus wang/oracle
SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 16 11:01:23 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-28002: the password will expire within 7 days
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the OLAP and Data Mining options
wang@SUN>
故障原因
Oracle 11G 普通用戶(hù)有個(gè)180天的缺省密碼周期,當(dāng)快過(guò)期的時(shí)候即會(huì)出現(xiàn)此提示;
解決辦法
查看當(dāng)前用戶(hù)對(duì)應(yīng)profile、對(duì)應(yīng)密碼周期
select * from dba_profiles where profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
alter profile default limit password_life_time unlimited;
SELECT username,PROFILE FROM dba_users where username like upper('&USER');
sys@SUN> SELECT username,PROFILE FROM dba_users where username like upper('&USER');
Enter value for user: wang
old 1: SELECT username,PROFILE FROM dba_users where username like upper('&USER')
new 1: SELECT username,PROFILE FROM dba_users where username like upper('wang')
USERNAME PROFILE
------------------------------ ------------------------------
WANG DEFAULT
--查詢(xún)到該用戶(hù)對(duì)應(yīng)的Profile文件為 DEFAULT
sys@SUN> set lines 222
sys@SUN> col PROFILE for a20
sys@SUN> col RESOURCE_NAME for a20
sys@SUN> col RESOURCE_TYPE for a20
sys@SUN> col LIMIT for a20
sys@SUN> select * from dba_profiles where profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT
-------------------- -------------------- -------------------- --------------------
DEFAULT PASSWORD_LIFE_TIME PASSWORD 180
--查詢(xún)到該profile對(duì)應(yīng)的密碼生命周期配置為180天
修改當(dāng)前用戶(hù)對(duì)應(yīng)profile對(duì)應(yīng)對(duì)應(yīng)密碼周期
sys@SUN> alter profile default limit password_life_time 365;
Profile altered.
--修改該profile對(duì)應(yīng)的密碼生命周期配置為365天
sys@SUN> alter profile default limit password_life_time unlimited;
Profile altered.
--修改該profile對(duì)應(yīng)的密碼生命周期配置為 無(wú)限制
您可能感興趣的文章:
- Oracle 11g中密碼過(guò)期問(wèn)題詳解
- Oracle 11G密碼180天過(guò)期后的修改方法
- oracle 提示登錄密碼過(guò)期完美解決方法
- Oracle數(shù)據(jù)庫(kù)用戶(hù)的密碼過(guò)期時(shí)間如何修改為永不過(guò)期
- Oracle用戶(hù)密碼設(shè)為不過(guò)期的兩種方法
- oracle密碼過(guò)期的徹底解決方案
- Oracle用戶(hù)密碼過(guò)期和用戶(hù)被鎖的解決方法
- Oracle密碼過(guò)期如何取消密碼180天限制及密碼180天過(guò)期,賬號(hào)鎖住的問(wèn)題
- Oracle數(shù)據(jù)庫(kù)用戶(hù)密碼過(guò)期的解決方法
相關(guān)文章
oracle臨時(shí)表空間的作用與創(chuàng)建及相關(guān)操作詳解
Oracle可能會(huì)需要使用到一些臨時(shí)存儲(chǔ)空間,用于臨時(shí)保存解析過(guò)的查詢(xún)語(yǔ)句以及在排序過(guò)程中產(chǎn)生的臨時(shí)數(shù)據(jù),下面這篇文章主要給大家介紹了關(guān)于oracle臨時(shí)表空間的作用與創(chuàng)建及相關(guān)操作的相關(guān)資料,需要的朋友可以參考下2022-07-07oracle數(shù)據(jù)庫(kù)如何給用戶(hù)授權(quán)查詢(xún)權(quán)限
這篇文章主要給大家介紹了關(guān)于oracle數(shù)據(jù)庫(kù)如何給用戶(hù)授權(quán)查詢(xún)權(quán)限的相關(guān)資料,授予權(quán)限是數(shù)據(jù)庫(kù)管理中的重要任務(wù),它可以確保用戶(hù)有權(quán)訪問(wèn)所需的數(shù)據(jù)庫(kù)對(duì)象,并執(zhí)行必要的操作,需要的朋友可以參考下2024-01-01ORACLE常見(jiàn)錯(cuò)誤代碼的分析與解決(二)
ORACLE常見(jiàn)錯(cuò)誤代碼的分析與解決(二)...2007-03-03Oracle空閑超時(shí)時(shí)間設(shè)置方式
這篇文章主要介紹了Oracle空閑超時(shí)時(shí)間設(shè)置方式,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2023-04-04淺談Oracle 11g 發(fā)行版2 新安裝后關(guān)于登錄的一些基本操作
oracle 11g的兩個(gè)不同版本。11g剛發(fā)行時(shí),是11g第一版,簡(jiǎn)稱(chēng)11.1,現(xiàn)在有個(gè)11g第二版,在功能上有了更多的改進(jìn),簡(jiǎn)稱(chēng)11.2。本文給大家介紹Oracle 11g 發(fā)行版2 新安裝后關(guān)于登錄的一些基本操作,需要的朋友可以參考下2015-10-10Oracle 配置連接遠(yuǎn)程數(shù)據(jù)庫(kù)的教程
這篇文章主要介紹了Oracle 配置連接遠(yuǎn)程數(shù)據(jù)庫(kù)的教程,即oracle配置tnsnames.ora文件實(shí)例,感興趣的朋友一起看看吧2018-03-03