Error
Error Code:
ORA-28221
Oracle Error ORA-28221: Missing REPLACE Clause
Description
The ORA-28221 error occurs when a user attempts to change their password while a password verification function is enabled. This function requires the `REPLACE` clause (original password) to be specified, and the user lacks the `ALTER USER` system privilege.
Error Message
ORA-28221: REPLACE not specified
Known Causes
3 known causesPassword Verification Enabled
A password verification function is active, enforcing password complexity and security policies.
Missing REPLACE Clause
The `ALTER USER ... IDENTIFIED BY VALUES` statement does not include the `REPLACE` clause with the user's current password.
Insufficient Privileges
The user lacks the `ALTER USER` system privilege, which allows bypassing the password verification function.
Solutions
Coming SoonGeneral Troubleshooting Tips
- Check the error message carefully for specific details
- Review recent changes that might have caused the error
- Search for the exact error code in the official documentation
- Check log files for additional context
- Try restarting the application or service