问题
is there a way to export the "CREATE PACKAGES" statements with db2look functionality?
I try with the different options but couldn't get the CREATE PACKAGES statements. The reason why I want that is because we copy a PROD db to a TEST DB and the schema for 2 PACKAGES changes name so I just want to recreate them in the right package.
Here is the command I launch:
db2look -d DBNAME -a -e -z SCHEMA_NAME -l -o OLDSCHEMA.sql
回答1:
Why do you want to recreate packages, because they are only needed for static SQL, and you can override existing ones.
The only way to create the same is by rebinding with the same options in both databases.
来源:https://stackoverflow.com/questions/17351021/db2-export-packages-with-db2look