Introduction to DB2 for z/OS
|
Previous topic |
Next topic |
Contents |
Glossary |
Contact z/OS |
PDF
Creation of databases Introduction to DB2 for z/OS |
|
|
When you define a DB2® database, you name an eventual collection of tables, associated indexes, and the table spaces in which they are to reside. When you decide whether to define a new database for a new set of objects or use an existing database, consider the following facts:
To create a database, use the CREATE DATABASE statement. A name for a database is an unqualified identifier of up to eight characters. A DB2 database name must not be the same as the name of any other DB2 database.
![]() DSN00001, DSN00002, DSN00003, ..., DSN10000
Example: The following example shows
a valid database name:
CREATE DATABASE MYDB STOGROUP MYSTOGRP BUFFERPOOL BP8K4 INDEXBP BP4; The STOGROUP, BUFFERPOOL, and INDEXBP clauses that this example shows establish default values. You can override these values on the definitions of the table space or index space. |
Copyright IBM Corporation 1990, 2010 |