This is my query :
CREATE PROFILE user_prof
LIMIT password_life_time unlimited;
I am getting ORA-65040: operation not allowed from within a pluggable database.
How to resolve this?
I create a user with name pp
CREATE USER pp IDENTIFIED BY ppop
PROFILE user_prof
When i tried to drop this user using :
ALTER SESSION SET CONTAINER = orclpdb;
DROP USER pp cascade;
I am getting :
ERROR at line 1:
ORA-28014: cannot drop administrative users
To create a profile in a container database ( affects all pluggable databases in the container )
If you want to create a profile only for your pluggable database
Keep in mind that in order to specify the CONTAINER clause, you must be connected to a multitenant container database (CDB). To specify CONTAINER = ALL, the current container must be the root. To specify CONTAINER = CURRENT, the current container must be a pluggable database (PDB).
Update
To drop the administrative user
Note
Be careful when dropping users this way. Some of the users might have been indeed created by scripts supplied by Oracle and might be needed for the components running inside that pluggable database.