MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DB2 4074 4056 Calculating the space required for a table

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
abc2000
Beginner


Joined: 22 Mar 2006
Posts: 18
Topics: 9

PostPosted: Sat Jun 03, 2006 2:45 am    Post subject: DB2 4074 4056 Calculating the space required for a table Reply with quote

DB2 4074 4056

Calculating the space required for a table

the space available to store records in a 4 KB page is 4074 bytes.
Achieving that maximum in practice is not always simple. For example, if you
are using the default values, the LOAD utility leaves approximately 5 percent
of a page as free space when loading more than one record per page. Therefore,
if two records are to fit in a page, each record cannot be longer than 1934
bytes (approximately 0.95 * 4074 * 0.5). Furthermore, the page size of the
table space in which the table is defined limits the record length. If the
table space is 4 KB, the record length of each record cannot be greater than
4056 bytes. Because of the 8-byte overhead for each record, the sum of column
lengths cannot be greater than 4048 bytes (4056 minus the 8-byte overhead for a record).
(DB2 Universal Database for OS/390 and z/OS
Administration Guide
Version 7
Document Number SC26-9931-03
2.6.2.1 Calculating record lengths and pages)


4074-4056 = 18 bytes , who konow this 18 bytes detail ?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Sat Jun 03, 2006 6:58 am    Post subject: Reply with quote

abc2000,


Please SEARCH before posting. Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=5284&highlight=tablespace

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group