This discussion is archived
4 Replies Latest reply: Dec 12, 2012 5:55 AM by Girish Sharma RSS

Expired password

846231 Newbie
Currently Being Moderated
Hi all,

I have users with expired password but they are not locked and still can login?
SQL>  SELECT username,expiry_date FROM dba_users WHERE expiry_date-sysdate<=7;

USERNAME                       EXPIRY_DA
------------------------------ ---------
NEO_SC                         14-MAR-12
APEX_SSO                       04-SEP-12
MGMT_VIEW                      29-JAN-12
SYS                            29-JAN-12
DBSNMP                         05-FEB-12
ANONYMOUS                      02-APR-10
SYSMAN                         05-FEB-12
FLOWS_FILES                    02-APR-10
MDSYS                          02-APR-10
ORDSYS                         02-APR-10
EXFSYS                         02-APR-10

USERNAME                       EXPIRY_DA
------------------------------ ---------
SCOTT                          02-AUG-11
WMSYS                          02-APR-10
ORACLE_OCM                     02-APR-10
APPQOSSYS                      02-APR-10
XS$NULL                        02-APR-10
OWBSYS_AUDIT                   02-APR-10
MDDATA                         02-APR-10
ORDDATA                        02-APR-10
CTXSYS                         02-APR-10
OUTLN                          02-APR-10
DIP                            02-APR-10

USERNAME                       EXPIRY_DA
------------------------------ ---------
APEX_PUBLIC_USER               02-APR-10
XDB                            02-APR-10
SPATIAL_CSW_ADMIN_USR          02-APR-10
SPATIAL_WFS_ADMIN_USR          02-APR-10
ORDPLUGINS                     02-APR-10
OWBSYS                         02-APR-10
SI_INFORMTN_SCHEMA             02-APR-10
OLAPSYS                        02-APR-10

30 rows selected.
How to make it take effect?


Thanks,
Kinz
  • 1. Re: Expired password
    Fran Guru
    Currently Being Moderated
    alter user <username> identified by <new_password>;

    to make password unexpired:
    in the profile of the user--> alter profile <profile_name> LIMIT password_life_time UNLIMITED;
    *not recommended                                                                                                                                                                                                                                                                                                                                                                                                       
  • 2. Re: Expired password
    MahirM.Quluzade Guru
    Currently Being Moderated
    Hi,

    Did you created users with default profile?

    When you create a user account, a default password policy is assigned to that user account. The default password policy for a newly installed database includes these directives:
    1. The password for the user account expires automatically in 180 days.
    2. The user account is locked 7 days after password expiration.
    3. The user account is locked for 1 day after 10 failed login attempts.

    The default password policy is assigned to user accounts through a database object called a profile.

    http://docs.oracle.com/cd/E11882_01/server.112/e10897/users_secure.htm#CHDDADDJ

    Regards
    Mahir M. Quluzade
    www.mahir-quluzade.com
  • 3. Re: Expired password
    Fran Guru
    Currently Being Moderated
    my fault, i didn't read it at all.

    When your user password expired, he could be connect some days. Depends the value of PASSWORD_GRACE_TIME. This value is the days that your user still can connect, if the grace time is set to unlimited you can login without problem


    Check Ed Stevens blog's:
    http://edstevensdba.wordpress.com/2012/01/16/exploring-password-lifetime-and-grace-period/
    *edited link, i posted another....

    Edited by: Fran on 12-dic-2012 6:00
  • 4. Re: Expired password
    Girish Sharma Guru
    Currently Being Moderated
    Please read below link where Ed has explained very well in detail :

    http://edstevensdba.wordpress.com/2012/01/16/exploring-password-lifetime-and-grace-period/

    @ Ed,
    Thank you so much for such a nice explanation.

    Regards
    Girish Sharma

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points