EXPIRED(GRACE)

Hi

We have recently set the profiles for users to change password and there is a problem for users. Most of the users status have changed to lock as password expired after setting profile.

We want to make those users whose password is going to expire or users whose accounts are locked because of profile settings. Can you please help me with some scripts to handle the current situation.

Thanks
basiranaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sdstuberCommented:
select the users current hashed password from dba_users.
then assign that same password back to that user.

select username,password from dba_users

for example....

alter user SOMEUSER identified by values '459EA8089C0094DC';


that will reset the password timer
0
sdstuberCommented:
you can build the above dynamically...


SELECT 'alter user ' || username || ' identified by values ''' || password || ''';'
  FROM dba_users
 WHERE account_status LIKE 'LOCKED%';
0
basiranaAuthor Commented:
I am getting error ORA-28007: the password cannot be reused
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

sdstuberCommented:
change the profile to allow reuse, then reset the passwords then change the profile to put that rule back on
0
basiranaAuthor Commented:
How do I change the profile to reuse
0
basiranaAuthor Commented:
How do I know what profile is set for reuse
0
sdstuberCommented:
First, find what the limits are currently set to....

SELECT profile, resource_name, LIMIT
  FROM dba_profiles
 WHERE resource_name IN ('PASSWORD_REUSE_TIME', 'PASSWORD_REUSE_MAX')


Save that output somewhere


To allow password reuse....

ALTER PROFILE your_profile_name
   LIMIT PASSWORD_REUSE_TIME UNLIMITED
   PASSWORD_REUSE_MAX UNLIMITED;


Then put it back....

ALTER PROFILE your_profile_name
   LIMIT PASSWORD_REUSE_TIME <whatever the limit was from the above query>
   PASSWORD_REUSE_MAX <whatever the limit was from the above query>;

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DavidSenior Oracle Database AdministratorCommented:
1.  Determine which profile is in use.
SELECT username, profile FROM dba_users
WHERE account_status LIKE 'LOCKED%';
2.  Reuse the profiles, as suggested, by modifying them so that password limitations are removed.  For example:
ALTER PROFILE DEFAULT PASSWORD_VERIFY_FUNCTION NULL,
  PASSWORD_LOCK_TIME UNLIMITED;
3. Fix your profiles and reapply after your crisis is over.

0
basiranaAuthor Commented:
Thank you
0
sdstuberCommented:
glad I could help
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.