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 > Avg Row Length - Before table creation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-05, 01:51
ksolomon ksolomon is offline
Registered User
 
Join Date: Jun 2004
Posts: 38
Cool Avg Row Length - Before table creation

Hello,
From the physical model of a DB2 UDB database is it possible to determine the page size that can be used for a particular table?
Because after the table is created I can check the average row length from AVGCOLLEN of SYSSTAT.COLUMNS.

At present the problem which I'm facing is After generating the DDL from physical data model some table fails to get created in my database as it needs 8K or 16K pagesize. So how can I determine the avg row length before table creation process itself.
Any help appreciate.

Thanks,Vij.
Reply With Quote
  #2 (permalink)  
Old 10-13-05, 08:09
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I do not think that when you are creating a new table that "average row length" has anything to do with what page size is needed. It is determined by maximum row length. Just add up all the lengths of all the columns in your definition and that should help you to determine what page size to use.

Andy
Reply With Quote
  #3 (permalink)  
Old 10-14-05, 02:19
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Also note that the maximum usable space in a 4K page for row data is about 4000 bytes, and not 4096.
__________________
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
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