EXECUTE IMMEDIATE PACKAGE DDL: PLS-00103: Encountered the symbol "/"
784197Aug 20 2010 — edited Aug 20 2010Hi all,
I am using Dynamic PL/SQL to update and recreate a PACKAGE and I have the following error while using EXECUTE IMMEDIATE on the GET_DDL:
Case 1:
With SQLTERMINATOR set to TRUE, GET_DDL inserts a / between PACKAGE SPEC and BODY and I have the following error when I try to EXECUTE IMMEDIATE this DDL:
PLS-00103: Encountered the symbol "/"
Case 2:
With SQLTERMINATOR set to FALSE, EXECUTE IMMEDIATE encounters CREATE immediately after the end of PACKAGE SPEC and I have the following error.
PLS-00103: Encountered the symbol "CREATE"
What is the correct way to GET_DDL of a PACKAGE inorder to use with EXECUTE IMMEDIATE?
Thanks.