ORA-06546: DDL statement is executed in an illegal context
What triggered the Error:
DDL statement is executed dynamically in illegal PL/SQL context.What should we do to fix it:
Use EXECUTE IMMEDIATE without USING and INTO clauses to execute the DDL statement.