ORA-28002: the password will expire within 7 days Cause: The user's account is about to about to expire and the password needs to be changed. Action: Change the password or contact the database administrator. Reference: Oracle Documentation Solutions: 1) Simply change the password to avoid it temporary [oracle@lnxsvr ~]$ sqlplus scott/tiger SQL*Plus: Release 11.2.0.1.0 Production on Wed Jun 20 14:08:01 2012 Copyright (c) 1982, 2009, Oracle. All rights reserved. ERROR: ORA-28002: the password will expire within 7 days Connected to: Oracle Database 11g Release 11.2.0.1.0 - 64bit Production SQL> PASSWORD Changing password for SCOTT Old password: New password: Retype new password: Password changed 2) Set PASSWORD_LIFE_TIME of the profile assigned user to UNLIMITED then change the password to avoid it permanently [oracle@lnxsvr ~]$ sqlplus scott/tiger SQL*Plus: Release 11.2.0.1.0 Production on Wed Jun 20 14:08:01 2012 Copyright (c) 1982, 2009, Oracle. All rights reserved. ERROR: ORA-28002: the password will expire within 7 days Connected to: Oracle Database 11g Release 11.2.0.1.0 - 64bit Production SQL> connect / as sysdba Connected. SQL> SELECT PROFILE FROM dba_users WHERE username = 'SCOTT'; PROFILE ------------------------------ DEFAULT SQL> SELECT LIMIT FROM DBA_PROFILES WHERE PROFILE='DEFAULT' AND RESOURCE_NAME='PASSWORD_LIFE_TIME'; LIMIT ---------------------------------------- 60 SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED; Profile altered. SQL> SELECT ACCOUNT_STATUS FROM DBA_USERS WHERE USERNAME='SCOTT'; ACCOUNT_STATUS -------------------------------- EXPIRED(GRACE) SQL> connect scott/tiger Connected. SQL> PASSWORD Changing password for SCOTT Old password: New password: Retype new password: Password changed
- Oracle Default Username and Password
- How to connect sqlplus without tnsnames.ora
- SQLNET: How does Oracle Client connect with Oracle Server
- How to configure Case Sensitive Password in Oracle
- ORA-01017: invalid username/password; logon denied- ORA-03135: connection lost contact
- ORA-01034: ORACLE not available
- ORA-01031: insufficient privileges
I am new to Oracle. Your solution worked!!
ReplyDeleteThanks.
Nisant
i am new to oracle....
ReplyDeletei have worked in ur codes... but get errors like
invalid old password
and table or view not exists....
please help me getting out of this problem....
it shows only two days remains to expire,,,,,
please..........
show me the steps you have made
Delete1st solution .. it gives
DeleteCONNECTED TO:
ORACLE DATABASE 11G ENTERPRISE EDITION RELEASE 11.2.0.1.0-PRODUCTION WITH THE PARTITIONIG... ETC
SQL>PASSWORD
OLD PSWD:TIGER
NEW PSWD :VINDYA
RETYPE NEW...
ERROR:
ORA-28008: INVALID OLD PSWD
but, for the entering sql,user name and pswd are scott and tiger only....
then for solution 2...
i acted as per ur code... it gives
table or view doesnt exists.....
m using windows 7 os..
i am using windows 7 os....
Deleteis that any problem ...
and for the first solution...
connected to...oracle database 11g enterprise edition. release..11.2.0.1.0.
i gave the password cmd... then all the vaaalues taken... after entering retyping new pswd.. it shows
ora error:28008: invalid old passwod
for the 2 nd solution...
it gives the error ora-00942 table or view doesnt exists..
pleae help me.... sir...
Ora-28008 says that your old password in incorrect. In 11g password are case sensitive. you may need to type old password in small.
Deletehi... sir... i serached in many ways.... to list out all the tables....
ReplyDeleteand found that there is no such tables like...dba_users...there...
wht to do now sir...?
dba_users is a system table, scott user dont have permission to access that table. check the post again. here we are connected with sys users as sysdba while accessing dba_users
Deletethanks sir
ReplyDelete
ReplyDeletethanks u sir...
sir if i dont change this then will it not work after 7days?
ReplyDeleteyou wont be able to login..
DeleteIt works perfectly !
ReplyDeleteThanks
Thanks! Worked great!
ReplyDeleteYes, it worked!!! thanks a lot!!!
ReplyDeleteHi Nimish,
ReplyDeleteThanks a lot!! it worked for me :)
You saved my ass, thx
ReplyDeleteI write command for expired the password and then i entered new password like tiger it is working so further it will work or not ?
ReplyDeleteSet PASSWORD_LIFE_TIME of the profile assigned user to UNLIMITED then change the password to avoid it permanently
Deletethanks
Deletethats marvelous......worked straight away.....
ReplyDeleteThats marvelous. Worked straight away......Thankyou....
ReplyDeleteduring installation of oracle i didnt unlock the sysdba .so i have logged in as "system" and i have done the steps mentioned.i was successfull in it.but now i have got a new problem.now my "user-system" password is about to expire within 7 days.i have done the same proceess for username system,but there it is showing me the password lifetime is unlimited.could u plz tell me how to overcome this problem
ReplyDeleteALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED; makes password lifetime to unlimited so what is the issue you are facing here ?
DeleteThanks! Saved me a lot of time
ReplyDeleteThanks for the solution. It worked
ReplyDeleteThanks! It worked
ReplyDeleteHi sir,
ReplyDeleteim trying to get the message ORA 28002 on a on_message trigger and when i try to do an exit_form it send me an error like illegal restricted procedure exit_form..... I want to force to user to chenge the passwd but in a diferent way, so I need that after get that message it exit the form.
I apreciate your help
HOW DO I DO THIS
ReplyDeleteThanks!Works perfectly fine.
ReplyDeletealter user SCHEMA NAME identified by SCHEMA PASSWORD;
ReplyDeleteIt worked, thank you !
ReplyDeleteYour solution worked..Thank you..!
ReplyDeleteThats awesome solution you are great
ReplyDeleteThanks for your Good solution.
ReplyDelete---------------------------------------------------
dude ur rookie... really good solution
ReplyDeleteThankyou ...Worked for me!!!
ReplyDeletehi
ReplyDeleteThanx dude
ReplyDeletei changed the password as it was about to expire. Now i get this error ORA-12543 destination host unreachable. Why is it so?
ReplyDeleteu r right now solve problem.
ReplyDeleteThanks A Lot... You help me bro..
ReplyDeletei have connected to user system through sqlplus it display that ERROR:
ReplyDeleteORA-28002: the password will expire within 7 days so i connected to sysdba its connected and i gave this command SELECT PROFILE FROM dba_users WHERE username = 'system';
it is displaying no row selected
Try, username = 'SYSTEM';
Deletereally its working. I am very happy with that solution. after long time I have opened the SQL then I gave user ID and password it was opened. But after it, It is showing the "ORA-28002 password will expire within 7 days". I was shocked. After I have got this I have changed my password. Thankyou vary much sir.
ReplyDeleteit really helpful and worked for me and i can change my password easily
ReplyDeleteI am very happy to read this open. I love this type good blog. I must share this one with my good friends. keep it up. Now it's time to avail https://zapshutters.co.uk/" for more information.
ReplyDeletecheap uk business cards refers to affordable printing services in the United Kingdom that specialize in producing business cards at a lower cost. Business cards are essential tools for networking and marketing, and many printing services offer budget-friendly options to cater to individuals and businesses with cost constraints.
ReplyDeleteสล็อต เว็บ ตรง จากค่ายเกมสล็อตออนไลน์ชื่อดังอันดับ 1 ที่นักพนันทั่วโลกให้การยอมรับว่าเป็นค่ายเกมสล็อตออนไลน์ที่ดีที่สุดตลอดกาลกับค่าย PG SLOT ที่มาแรงที่สุดในปี 2022
ReplyDelete