Create SAMPLE Db in DB2


To use the sample programs shipped with DB2®, you need to create the sample database on a server workstation. This will require approximately 23.5 megabytes of hard-drive space. An empty DB2 database requires approximately 21.5 megabytes of hard-drive space.

“db2sampl” command Creates a sample database named SAMPLE.There are many options like -dbpath path-name, -name database-name etc

[db2inst1@mercury dbbackup]$ db2sampl

Screenshot : Create a SAMPLE DB
db2sampl

Leave a Reply

Your email address will not be published. Required fields are marked *