You are on page 1of 2

Oracle 11g Setting User Passwords to Never Expire

By default in Oracle 11g, passwords are set to expire after 180 days. The procedures below explain how
to unlock a user account, change a password and set the password to never expire.

Looking at a user accounts:


select username, account_status, expiry_date, profile from dba_users;

To unlock a user account:


alter user <username> account unlock;

To change a password:
alter user <username> identified by <new_password>;

Changing Passwords to Never Expire


This procedure requires the users profile to be altered. The profile must be identified prior to modifying
the profile.

Page 1 of 2

Oracle 11g Setting User Passwords to Never Expire


1. Determine the users profile
select username, profile from dba_users;

2. Examine the users profile default values.


select profile, resource_name, limit from dba_profiles where profile='<profile_name>';

3. Change PASSWORD_LIFE_TIME to UNLIMTED


Alter profile <profile_name> limit PASSWORD_LIFE_TIME UNLIMITED;

Page 2 of 2

You might also like