Oracle Message ORA-06546 - DDL statement is executed in an illegal context

ERRORDDL statement is executed in an illegal context
CAUSEDDL statement is executed dynamically in illegal PL/SQL context. - Dynamic OPEN cursor for a DDL in PL/SQL - Bind variables used in USING clause to EXECUTE IMMEDIATE a DDL - Define variables used in INTO clause to EXECUTE IMMEDIATE a DDL
ACTIONUse EXECUTE IMMEDIATE without USING and INTO clauses to execute the DDL statement.