db2: export packages with db2look

五迷三道 提交于 2019-12-11 04:03:30

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!