Page tree
Skip to end of metadata
Go to start of metadata

To generate the script of DB2 schema, you should run the following command line inside a db2cmd session:
db2look -d <database_name > -e -z <schema_name> -o <filename> -u <user> -w <password>
<database_name> : the name of DB2 database which contains the schema
<schema_name>: the name of the schema <filename>: the name of the script which will be generated
<user> : The name of admin user of the DB2 server
<password>: the password of the DB2 server admin user

  • No labels