Skip to content

Instantly share code, notes, and snippets.

@K0NRAD
Created February 9, 2014 20:21
Show Gist options
  • Save K0NRAD/8905395 to your computer and use it in GitHub Desktop.
Save K0NRAD/8905395 to your computer and use it in GitHub Desktop.
Unlock Oracle user account
SELECT username, account_status FROM dba_users;
ALTER USER <user> ACCOUNT UNLOCK;
ALTER USER <user> IDENTIFIED BY <password>;
SELECT profile FROM dba_users WHERE username = <user>;
ALTER profile DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED PASSWORD_LIFE_TIME UNLIMITED;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment