Académique Documents
Professionnel Documents
Culture Documents
DB2 is a complete Software Package, that allows you to create, store, upd
retrieve Data in a Systematic Manner.
STOGROUP : The Set of DASD Volumes that will be used to house the VSAM Fi
containing the Data. In the example below, I've created a STOGROUP
calledDSN8G810 with the DASD Volume S4DB21.
The information on all the Databases in DB2 System is stored in the DB2 Catalog Table SYSIBM.SYS
Table-space : A Table-Space is a VSAM File which stores or houses the DB2 Table-Data Physically. Y
a Brand-New Table-space File, by using the CREATE TABLESPACE Statement.
In the picture above, I have created a new Table-space File called DSN8G8TS, which has a Primary
400KB and Secondary Space of 400KB. Just like the contents in a Book, the data in a Table-Space
in Fixed-Size Pages. DSN8G8TS Table-Space is created under the DSN8G81A Database Umbrella. Th
Space File will be stored on DSN8G810 Storage-Group. A buffer-pool is the place in Main Storage,
will store Pages fetched from the Table-Space.
The information about all Table-Space Files is stored in the DB2 Catalog Table SYSIBM.SYSTABLESP
snapshot of this is shown in the above picture.
Once the Table-Space File has been newly created, you can actually see it using DSLIST Utility in
3.4. The VSAM Dataset-name has the format vcat.DSNDBC.dbname.tsname.*.
The Employee-ID Number is unique for each Employee. No two Employees have
same Employee-ID in the Company. Similarly, the Department-ID is unique f
Department. Employee-ID Column is said to be the Primary-Key or
Primary-Index in the EMPLOYEE Table. Department-ID is said to be the Prim
Key or Primary-Index in the DEPARTMENT Table.
Q. How do you write the DDL to create Tables and Index Key-Columns?
As an example, let us build a toy Database-System, called New Business
Tracking(NBT), which stores the information about new Insurance Policies(
Business) of an Agent for the first 90 days. This Database System will ha
DB2 Tables CONTRACT, AGENT_CONT_CNTL and INSURED.