This article will introduce you in detail in the Windows XP environment, the full process of creating a DB2 database, and database testing, for your reference, hope to help you.
Test environment: Windows XP
DB2 version information
D: DB2BIN> db2level
DB2 1085i instance "DB2" uses "32" bit and DB2 code release version "SQL09050", with the level ID "03010107 ".
Refer to "DB2 v9.5.0.808", "s071001", and "NT3295" with revision package "0 ".
The product uses the DB2 copy name "DB2COPY1" installed in "D: DB2.
D: DB2BIN> db2licm-l
Product name: "DB2 Express-C"
License type: "unsecured"
Expiry date: "permanent"
Product identifier: "db2expc"
Version info: "9.5"
Max number of CPUs: "2"
D: DB2BIN>
Create a database
Step 1: Install DB2 (omitted)
Step 2: Configure related directories
Mkdir d: db2study
Db2set DB2_CREATE_DB_ON_PATH = YES
Note: The database I created should be stored in the d: db2study directory. Because I want to specify the database path in the create script, the DB2_CREATE_DB_ON_PATH registry key must be activated.
Step 3: Start a DB2 instance