ORA-00600 [kpdbModAdminPasswdInRoot: not CDB] when changing password of default account

During the test on Oracle Database 12c I run into an interesting error respectively Chris Antongini has made me aware of it. If you try to change the password of an Oracle default account on a none CDB with SQL*Plus password you run into an ORA-00600 [kpdbModAdminPasswdInRoot: not CDB] and of course the password is not changed. Let’s try it with the DBSNMP account.

SQL> SHOW parameter pluggable

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
enable_pluggable_database            BOOLEAN     FALSE

SQL> col username FOR a20
SQL> SELECT username,account_status,password_versions,ORACLE_MAINTAINED FROM dba_users
  2  WHERE username='DBSNMP';

USERNAME             ACCOUNT_STATUS                   PASSWORD_VER O
-------------------- -------------------------------- ------------ -
DBSNMP               EXPIRED & LOCKED                 10G 11G      Y


SQL> conn dbsnmp/dbsnmp
ERROR:
ORA-28000: the account IS locked


Warning: You are no longer connected TO ORACLE.
SQL> conn / AS sysdba
Connected.
SQL> ALTER USER DBSNMP account UNLOCK;

USER altered.

SQL> conn dbsnmp/dbsnmp
ERROR:
ORA-28001: the password has expired


Changing password FOR dbsnmp
NEW password:
Retype NEW password:
ERROR:
ORA-00600: internal error code, arguments: [kpdbModAdminPasswdInRoot: NOT CDB],
[], [], [], [], [], [], [], [], [], [], []


Password unchanged
Warning: You are no longer connected TO ORACLE.

As you can see above the account is expired and locked. After unlocking the account I’ll try to login again and will be asked to set a new password. Doing the same on a container database does work without an ORA-00600.

SQL> SHOW parameter pluggable

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
enable_pluggable_database            BOOLEAN     TRUE
SQL> col username FOR a20
SQL> SELECT username,account_status,password_versions,ORACLE_MAINTAINED FROM dba_users
  2  WHERE username='DBSNMP';

USERNAME             ACCOUNT_STATUS                   PASSWORD_VER O
-------------------- -------------------------------- ------------ -
DBSNMP               EXPIRED & LOCKED                 10G 11G      Y

SQL> conn dbsnmp/dbsnmp
ERROR:
ORA-28000: the account IS locked


Warning: You are no longer connected TO ORACLE.
SQL> conn / AS sysdba
Connected.
SQL> ALTER USER DBSNMP account UNLOCK;

USER altered.

SQL> conn dbsnmp/dbsnmp
ERROR:
ORA-28001: the password has expired


Changing password FOR dbsnmp
NEW password:
Retype NEW password:
Password changed
Connected.

Sure as DBA you may workaround this problem and set the users new password with ALTER USER. So far I couldn’t reproduce this problem with a custom test user. According to Oracle this problem is related to an unpublished bug 16901482 which will be fixed with a one off patch 17217733.

One thought on “ORA-00600 [kpdbModAdminPasswdInRoot: not CDB] when changing password of default account

  1. Pingback: Update: ORA-00600 [kpdbModAdminPasswdInRoot: not CDB] when changing password of default account | OraDBA

Comments are closed.