02-Creating Databases and Data Placement
02-Creating Databases and Data Placement
■ A regular table space stores all permanent data, including regular tables and
indexes.
■ It can also hold large data such as LOBs (Large Objects) unless they are
explicitly stored in a large table space.
■ A table and its indexes can be divided into separate regular table spaces, if
the table spaces are database-managed space (DMS) for non-partitioned
tables or system-managed space (SMS) for partitioned tables.
■ DMS and SMS are described in the next slide Storage Management
basics.
■ Catalog table space is an example of a regular table space.
■ By default, the catalog table space is the only regular table space created
during the database creation.
Large table space
■ The database storage path defined when the database is created named ,
IBMSTOGROUP
– This will be the default storage group for automatic storage table spaces
when USING STOGROUP is not specified
– The ALTER STOGROUP statement option SET AS DEFAULT can be
used to change which storage group is the default for a database
Managing storage groups using ALTER
STOGROUP
■ Use the ALTER STOGROUP statement to make changes to a storage
group
– Similar to database storage paths in previous releases
– New disk storage paths can be added
– Existing storage paths can be dropped
• Use ALTER TABLESPACE REBALANCE
Storage Management alternatives: Automatic