If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Placement of tables in Table Space

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-07-05, 23:37
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
Placement of tables in Table Space

On Unix platforms, what is the guideline for placement of tables in table spaces?

i) Each table on its own table space with the corresponding indexes in their own table space? e.g., 156 tables have 156 data table spaces and n number of index table spaces.
ii) Group tables on size & nature of use. Now place into appropriate category of table space. e.g., small tables data table space, big tables data table space, small tables index table space, etc.,

TIA.
Reply With Quote
  #2 (permalink)  
Old 12-08-05, 00:43
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
There is no reason on DB2 for Linux, UNIX, and Windows to have a separate tablespace for each table. The main criteria for grouping tables together in tablespaces is that each tablespace can be assigned to a separate bufferpool (if desired) so if you want multiple bufferpools (of the same page size) you will need multiple tablespaces.

How you place the containers within the tablespace, and the number of containers, can be important for data warehouses where a large number of tablespace scans take place. You can optimize the placement to reduce disk contention and sometimes invoke intra-partition parallelism (without DPF).

SMS tablespaces should be used for system temporary tablespaces because it faster for DB2 to create a table in SMS compared to DMS. This is because DB2 spends more time looking for the optimal location to place the table in the tablespace if it is DMS.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 12-08-05, 01:40
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
Quote:
Originally Posted by Marcus_A
There is no reason on DB2 for Linux, UNIX, and Windows to have a separate tablespace for each table. The main criteria for grouping tables together in tablespaces is that each tablespace can be assigned to a separate bufferpool (if desired) so if you want multiple bufferpools (of the same page size) you will need multiple tablespaces.

How you place the containers within the tablespace, and the number of containers, can be important for data warehouses where a large number of tablespace scans take place. You can optimize the placement to reduce disk contention and sometimes invoke intra-partition parallelism (without DPF).

SMS tablespaces should be used for system temporary tablespaces because it faster for DB2 to create a table in SMS compared to DMS. This is because DB2 spends more time looking for the optimal location to place the table in the tablespace if it is DMS.
On Unix, MAXFILOP parameter setting can be an issue if each table has its own data table space & index table space.
Reply With Quote
  #4 (permalink)  
Old 12-09-05, 04:19
juliane26 juliane26 is offline
Registered User
 
Join Date: Oct 2005
Posts: 109
I still prefer for large tables using their own tablespace for not having to worry about access of other data during maintenance (reorg, load etc) - I know we have now online utilities available, but they do not cure all problems.
__________________
Juliane
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On