Oracle 23.26PrivilegesLab-verified · 2026-11-30

ORA-28003: The password chosen did not meet the required complexity rules

The new password was rejected by the profile's PASSWORD_VERIFY_FUNCTION.

Oracle AI Database 26ai Free 23.26.3.0.0
ORA-28003: The password chosen did not meet the required complexity rules set by your organization.

Jump to a cause

  1. 01Password shorter than 8 characters
  2. 02Password contains the user name
  3. 03No digit in the password
  4. 04User changes own password to one too close to the old one

Lab-verifiedReproduced and fixed on Oracle AI Database 26ai Free 23.26.3.0.0 · 2026-11-30 · container image gvenzl/oracle-free:23-slim

ORA-28003 means the profile assigned to the user has a PASSWORD_VERIFY_FUNCTION, and that function rejected the new password. Older releases print password verification for the specified password failed; 26ai prints The password chosen did not meet the required complexity rules set by your organization.

The real reason is always on the next line, ORA-20000: ..., raised by the verify function. In the lab the profile used Oracle's built-in ORA12C_VERIFY_FUNCTION, and four different passwords failed for four different reasons. Read the ORA-20000 line first, then pick a password that satisfies that rule.

01Password shorter than 8 characters

ALTER USER erp_user IDENTIFIED BY "erp1" failed with ORA-28003 and ORA-20000: password length less than 8 characters.

Setting Erp_Pw2027a (letters and digits, 11 characters) succeeded, and the user logged in with it.

Setup
Setuprun as system
DROP USER IF EXISTS erp_user CASCADE;
BEGIN EXECUTE IMMEDIATE 'DROP PROFILE erp_prof CASCADE'; EXCEPTION WHEN OTHERS THEN NULL; END;
/
CREATE PROFILE erp_prof LIMIT PASSWORD_VERIFY_FUNCTION ora12c_verify_function;
CREATE USER erp_user IDENTIFIED BY "Erp_Pw2026a" PROFILE erp_prof;
GRANT CREATE SESSION TO erp_user;
OUTPUT
User dropped.


PL/SQL procedure successfully completed.


Profile created.


User created.


Grant succeeded.
Reproducerun as system
ALTER USER erp_user IDENTIFIED BY "erp1";
✕ ERROR
ALTER USER erp_user IDENTIFIED BY "erp1"
*
ERROR at line 1:
ORA-28003: The password chosen did not meet the required complexity rules set by your organization.
ORA-20000: password length less than 8 characters
Help: https://docs.oracle.com/error-help/db/ora-28003/
Check the causerun as system
COLUMN profile FORMAT A10
COLUMN verify_function FORMAT A24
SELECT u.profile, p.limit AS verify_function FROM dba_users u JOIN dba_profiles p ON p.profile = u.profile WHERE u.username = 'ERP_USER' AND p.resource_name = 'PASSWORD_VERIFY_FUNCTION';
OUTPUT
PROFILE    VERIFY_FUNCTION
---------- ------------------------
ERP_PROF   ORA12C_VERIFY_FUNCTION

1 row selected.

The user's profile ERP_PROF has ORA12C_VERIFY_FUNCTION as its password verify function, so every password change is checked by it.

Fixrun as system
ALTER USER erp_user IDENTIFIED BY "Erp_Pw2027a";
OUTPUT
User altered.
After the fixrun as system
CONNECT erp_user/"Erp_Pw2027a"@//localhost/FREEPDB1
COLUMN login_user FORMAT A12
SELECT user AS login_user FROM dual;
✓ SUCCESS
LOGIN_USER
------------
ERP_USER

1 row selected.

02Password contains the user name

Erp_User2027 contains ERP_USER (the check ignores case), so it failed with ORA-20000: password contains the user name.

Shop_Pw2027a does not contain the user name and was accepted.

Setup
Setuprun as system
DROP USER IF EXISTS erp_user CASCADE;
BEGIN EXECUTE IMMEDIATE 'DROP PROFILE erp_prof CASCADE'; EXCEPTION WHEN OTHERS THEN NULL; END;
/
CREATE PROFILE erp_prof LIMIT PASSWORD_VERIFY_FUNCTION ora12c_verify_function;
CREATE USER erp_user IDENTIFIED BY "Erp_Pw2026a" PROFILE erp_prof;
GRANT CREATE SESSION TO erp_user;
OUTPUT
User dropped.


PL/SQL procedure successfully completed.


Profile created.


User created.


Grant succeeded.
Reproducerun as system
ALTER USER erp_user IDENTIFIED BY "Erp_User2027";
✕ ERROR
ALTER USER erp_user IDENTIFIED BY "Erp_User2027"
*
ERROR at line 1:
ORA-28003: The password chosen did not meet the required complexity rules set by your organization.
ORA-20000: password contains the user name
Help: https://docs.oracle.com/error-help/db/ora-28003/
Check the causerun as system
COLUMN profile FORMAT A10
COLUMN verify_function FORMAT A24
SELECT u.profile, p.limit AS verify_function FROM dba_users u JOIN dba_profiles p ON p.profile = u.profile WHERE u.username = 'ERP_USER' AND p.resource_name = 'PASSWORD_VERIFY_FUNCTION';
OUTPUT
PROFILE    VERIFY_FUNCTION
---------- ------------------------
ERP_PROF   ORA12C_VERIFY_FUNCTION

1 row selected.

Same profile and verify function. The function compares the password with the user name.

Fixrun as system
ALTER USER erp_user IDENTIFIED BY "Shop_Pw2027a";
OUTPUT
User altered.
After the fixrun as system
CONNECT erp_user/"Shop_Pw2027a"@//localhost/FREEPDB1
COLUMN login_user FORMAT A12
SELECT user AS login_user FROM dual;
✓ SUCCESS
LOGIN_USER
------------
ERP_USER

1 row selected.

03No digit in the password

Winter_Password is long enough but has no number, so it failed with ORA-20000: password must contain 1 or more digits.

Adding one digit (Winter_Password7) was enough.

Setup
Setuprun as system
DROP USER IF EXISTS erp_user CASCADE;
BEGIN EXECUTE IMMEDIATE 'DROP PROFILE erp_prof CASCADE'; EXCEPTION WHEN OTHERS THEN NULL; END;
/
CREATE PROFILE erp_prof LIMIT PASSWORD_VERIFY_FUNCTION ora12c_verify_function;
CREATE USER erp_user IDENTIFIED BY "Erp_Pw2026a" PROFILE erp_prof;
GRANT CREATE SESSION TO erp_user;
OUTPUT
User dropped.


PL/SQL procedure successfully completed.


Profile created.


User created.


Grant succeeded.
Reproducerun as system
ALTER USER erp_user IDENTIFIED BY "Winter_Password";
✕ ERROR
ALTER USER erp_user IDENTIFIED BY "Winter_Password"
*
ERROR at line 1:
ORA-28003: The password chosen did not meet the required complexity rules set by your organization.
ORA-20000: password must contain 1 or more digits
Help: https://docs.oracle.com/error-help/db/ora-28003/
Check the causerun as system
COLUMN profile FORMAT A10
COLUMN verify_function FORMAT A24
SELECT u.profile, p.limit AS verify_function FROM dba_users u JOIN dba_profiles p ON p.profile = u.profile WHERE u.username = 'ERP_USER' AND p.resource_name = 'PASSWORD_VERIFY_FUNCTION';
OUTPUT
PROFILE    VERIFY_FUNCTION
---------- ------------------------
ERP_PROF   ORA12C_VERIFY_FUNCTION

1 row selected.

The verify function on the profile is ORA12C_VERIFY_FUNCTION, which requires at least one letter and one digit.

Fixrun as system
ALTER USER erp_user IDENTIFIED BY "Winter_Password7";
OUTPUT
User altered.
After the fixrun as system
CONNECT erp_user/"Winter_Password7"@//localhost/FREEPDB1
COLUMN login_user FORMAT A12
SELECT user AS login_user FROM dual;
✓ SUCCESS
LOGIN_USER
------------
ERP_USER

1 row selected.

04User changes own password to one too close to the old one

Logged in as erp_user, the user ran ALTER USER erp_user IDENTIFIED BY "Erp_Pw2026b" REPLACE "Erp_Pw2026a". Only the last character changed, so it failed with ORA-20000: new password should differ from the old password by three or more characters.

The account stayed OPEN. Changing to Mar_Pw2027x (several characters different) succeeded and the new password worked for login.

Setup
Setuprun as system
DROP USER IF EXISTS erp_user CASCADE;
BEGIN EXECUTE IMMEDIATE 'DROP PROFILE erp_prof CASCADE'; EXCEPTION WHEN OTHERS THEN NULL; END;
/
CREATE PROFILE erp_prof LIMIT PASSWORD_VERIFY_FUNCTION ora12c_verify_function;
CREATE USER erp_user IDENTIFIED BY "Erp_Pw2026a" PROFILE erp_prof;
GRANT CREATE SESSION TO erp_user;
OUTPUT
User dropped.


PL/SQL procedure successfully completed.


Profile created.


User created.


Grant succeeded.
Reproducerun as system
CONNECT erp_user/"Erp_Pw2026a"@//localhost/FREEPDB1
ALTER USER erp_user IDENTIFIED BY "Erp_Pw2026b" REPLACE "Erp_Pw2026a";
✕ ERROR
ALTER USER erp_user IDENTIFIED BY "Erp_Pw2026b" REPLACE "Erp_Pw2026a"
*
ERROR at line 1:
ORA-28003: The password chosen did not meet the required complexity rules set by your organization.
ORA-20000: new password should differ from the old password by three or more characters
Help: https://docs.oracle.com/error-help/db/ora-28003/
Check the causerun as system
COLUMN profile FORMAT A10
COLUMN verify_function FORMAT A24
SELECT u.profile, p.limit AS verify_function FROM dba_users u JOIN dba_profiles p ON p.profile = u.profile WHERE u.username = 'ERP_USER' AND p.resource_name = 'PASSWORD_VERIFY_FUNCTION';
OUTPUT
PROFILE    VERIFY_FUNCTION
---------- ------------------------
ERP_PROF   ORA12C_VERIFY_FUNCTION

1 row selected.

The verify function is on the profile. This check only runs when the old password is known, i.e. with REPLACE.

Checkrun as system
COLUMN account_status FORMAT A10
SELECT account_status FROM dba_users WHERE username = 'ERP_USER';
OUTPUT
ACCOUNT_ST
----------
OPEN

1 row selected.

Nothing to change on the DB side: choose a password that differs from the old one in at least three positions.

After the fixrun as system
CONNECT erp_user/"Erp_Pw2026a"@//localhost/FREEPDB1
ALTER USER erp_user IDENTIFIED BY "Mar_Pw2027x" REPLACE "Erp_Pw2026a";
CONNECT erp_user/"Mar_Pw2027x"@//localhost/FREEPDB1
COLUMN login_user FORMAT A12
SELECT user AS login_user FROM dual;
✓ SUCCESS
User altered.


LOGIN_USER
------------
ERP_USER

1 row selected.

FAQ

How do I see why ORA-28003 rejected my password?

Look at the ORA-20000 line right after ORA-28003. It names the failed rule, for example password length less than 8 characters or password must contain 1 or more digits.

Which verify function is applied to my user?

Join DBA_USERS and DBA_PROFILES on the profile and filter RESOURCE_NAME = 'PASSWORD_VERIFY_FUNCTION'. In the lab it returned ERP_PROF / ORA12C_VERIFY_FUNCTION.

Does ORA-28003 also apply when a DBA resets the password?

Yes. In the lab, ALTER USER ... IDENTIFIED BY run as SYSTEM was rejected by the same function. Only the old-password similarity check needs REPLACE.

What does ORA12C_VERIFY_FUNCTION require?

In these runs it rejected passwords shorter than 8 characters, passwords containing the user name, passwords without a digit, and new passwords that differ from the old one by fewer than 3 characters.

How we verify

Each scenario starts from fresh database users. A script runs the setup, confirms the exact error code, applies the fix and runs the statement again. The output shown is what the database printed, saved by the script.

lab_a and lab_b are ordinary users created for the test; system is the DBA account. Oracle AI Database 26ai Free Release 23.26.3.0.0 - Develop, Learn, and Run for Free 23.26.3.0.0