11 December,2015 by Tom Collins
Question: How can I extract the ddl for CREATE DATABASE ? It seems like you can extract the full range of database object DDLs, but I can’t extract the database ddl
Answer: You can extract the CREATE DATABASE ddl. The minimum requirement is to have DB2 10.1.4 or DB2 10.5 installed
You’re probably familiar with the dblook utility, used for extracting database object DDLs. The DDLs are used to duplicate the objects into a fresh database , source control or to Compare DDL of 2 databases in DB2
A new parameter was added called –createdb.
An example of using the db2look –createdb parameter
db2look -d MYDB -createdb -o /tmp/mydb.sql
Create a DDL on an existing DB2 table
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |