I have a Java programa that obtains an oracle object ddl definition by using DBMS_METADATA.GET_DDL procedure. This definition is stored as a String.
After that, I sometimes need to execute that definition. I use the executeUpdate() of statement class.
This works ok when the stored definition fills one statement. But sometimes the stored definition fills more than one statement. For example package definition uses 2 statements (one for specification and other for body). In this case, executeUpdate does not work properly.