Sunday, January 1, 2023

ORA-65140: invalid common profile name

Problem

Following Error occur while create new profile

SQL> Create profile ords_profile limit PASSWORD_LIFE_TIME unlimited;
Create profile ords_profile limit PASSWORD_LIFE_TIME unlimited
               *
ERROR at line 1:
ORA-65140: invalid common profile name;
Cause

Try to create profile by loging to the CDB when you should be logged into a PDB.

Solution

You can create profile when login to Pluggable database (PDB) instead of login to Container Database (CDB). If you want to continue from CDB, Please follow the step below

SQL> alter session set "_oracle_script"=true;

Session altered.
SQL> Create profile ords_profile limit PASSWORD_LIFE_TIME unlimited;

Profile created.
SQL> alter user ORDS_PUBLIC_USER profile ords_profile;

User altered.

No comments:

Post a Comment