How do I turn off Oracle password expiration?

Josh Kodroff picture Josh Kodroff · Jul 8, 2009 · Viewed 518k times · Source

I'm using Oracle for development. The password for a bootstrap account that I always use to rebuild my database has expired.

How do I turn off password expiration for this user (and all other users) permanently?

I'm using Oracle 11g, which has passwords expire by default.

Answer

Pedro Carriço picture Pedro Carriço · Jul 21, 2011

To alter the password expiry policy for a certain user profile in Oracle first check which profile the user is using:

select profile from DBA_USERS where username = '<username>';

Then you can change the limit to never expire using:

alter profile <profile_name> limit password_life_time UNLIMITED;

If you want to previously check the limit you may use:

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