denrepo

OracleSecurity & users

Unlock an account or reset its password

Change the username and password before running. Quote the password so special characters are kept.

Changes data

Not yet verified. How scripts are tested

This script changes the database. Check the names and values before you run it.
ora-unlock.sql
1ALTER USER app_user ACCOUNT UNLOCK;2 3-- To also reset the password:4-- ALTER USER app_user IDENTIFIED BY "New_Passw0rd_2026";

Save it as ora-unlock.sql and run it with SQL> @ora-unlock.

Open in denrepo

Helps with

More Oracle scripts: Security & users