You can create control data table spaces or result table spaces.
Type the name of the table space you want to define in the Table space name field. The default name for a new control data table space is QPCONTROL. If you choose to define this table space, then this default name appears in Table space name.
The default name for a new result table space is QPRESULT. If you choose to define this table space, then this default name appears in Table space name.
You have the option of choosing either a system-managed space (SMS), or a database-managed space (DMS). If you want a SMS table space, then select System managed. If you want a DMS table space, then select Database managed. If you choose to define a new control data table space with either the SMS or the DMS option, then the default path for this table space appears in the Container path field. If you choose to define a result table space with either the SMS or the DMS option, then the default path for this table space appears in the Container path field. These are default paths. You can change the paths by entering new paths in the Container path field.
If you choose the DMS option, then select either:
If you choose to define a new control data DMS table space, then the default value that appears in Number of 4K pages is 10,000. If you choose to define a new result DMS table space, then the default value that appears in Number of 4K pages is 10,000. These are only default values. You might need to increase or decrease these values depending on your environment.
The page size for the table spaces must be 4K because the table spaces are created in the default buffer pool, IBMDEFAULTBP, which has a 4K page size. Therefore, the page size for the table spaces must be 4K as well. If you require table spaces with page sizes other than 4K, then the table spaces must be created prior to running the qpsetup command.
When you choose either a SMS or a DMS table space, you must also choose what database partition group in which you want your table space created. If you want to create a new database partition group, then select New and then select Define. When you select Define a new window appears in which you can specify the values for your database partition group. The name you choose for your new database partition group in this new window will then appear in the New text field. If you want to use an existing database partition group then select Existing. The default name IBMDEFAULTGROUP appears in the Existing text field.
Your choice of either a SMS or a DMS table space depends upon your performance requirements.
With SMS table spaces, the operating system's file system manager allocates, de-allocates, and manages the space where the table is to be stored.
With DMS table spaces, however, the size of each table is set and that space is allocated when the table space is created. DMS table spaces perform better and are more flexible than SMS table spaces, especially when DMS table spaces are used with a raw device (an unformatted hard disk).
For more information on SMS and DMS table spaces see http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.dbobj.doc/doc/c0004961.html