To create the database using the CLP
- Log in with SYSADM or SYSCTRL authority to create the database.
-
At the command prompt, type
db2
and theCREATE DATABASE
command. For example, type:db2 CREATE DATABASE database_name AUTOMATIC STORAGE YES ON path USING CODESET ISO8859-1 TERRITORY US COLLATE USING IDENTITY PAGESIZE 4096
Note: TheCREATE DATABASE
command must be issued using theIDENTITY
collating sequence, where strings are compared byte by byte. - Press Enter.