Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PDB: ORA-65040: operation not allowed from within a pluggable database

SmithJohn45Mar 17 2025 — edited Mar 17 2025

in a PDB I have created a user, import a backup then trying to create drop statement for some object types to clean (backup import using impdp)

select 'drop '||object_type||' '|| object_name|| DECODE(OBJECT_TYPE,'TABLE',' CASCADE CONSTRAINTS','') || ';' from user_objects where object type in ('TABLE','INDEX','FUNCTION','PROCEDURE','SEQUENCE','PACKAGE','PACKAGE BODY','VIEW','TYPE','SYNONYM');

and its throwing errors (mostly showing error: ORA-65040: operation not allowed from within a pluggable database )

it was imported directly within a PDB then why this error? how I can fix this?

please help.

with kind regards

Comments
Post Details
Added on Mar 17 2025
9 comments
1,671 views