It is assumed that DB2 UDB Version 8 is installed on your system, DB2 started, and an instance is created. Follow the steps below to create the DB2MALL database:
Db2cmd
Db2 create database db2mall on c: alias db2mall
Db2 connect to db2mall
Db2 –f db2mall.ddl –t > db2mall.log
The file db2mall.log will contain any errors that you may have encountered.
To populate the database, run the following command from the same window:
Db2 –f mallpopu.ddl –t > mallpopu.log
You have just created the database, all the tables, and all primary keys and constraints required by the DB2MALL database. In the last step, you have also loaded some data into the database.
You can now start using the DB2MALL database.
Db2 create database db2mall on /instance_uid/sqllib alias db2mall
Db2 connect to db2mall
Db2 –f db2mall.ddl –t > db2mall.log
The file db2mall.log will contain any errors that you may have encountered.
To populate the database, run the following command from the same window:
Db2 –f mallpopu.ddl –t > mallpopu.log
You have just created the database, all the tables, and all primary keys and constraints required by the DB2MALL database. In the last step, you have also loaded some data into the database.
You can now start using the DB2MALL database.
3.137.223.169