473,804 Members | 3,113 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

db2 block archtiecture

Hi ,

Where can i find information about db2 block structure? I want to know
how it stores rows into blocks , how it handles issues such as row
migration / chaining or etc.
Kind Regards,
hope

Nov 12 '05 #1
4 3143
In IBM jargon (as long as UDB is concerned), a block is referred to as
a page. The following information are some abstracts from the
Administration (Planning) document of UDB.

############### ###########
By default, table data is stored on 4 KB pages. Each page (regardless
of page size) contains 68 bytes of overhead for the database manager.
This leaves 4028 bytes to hold user data (or rows), although no row on
a 4 KB page can exceed 4005 bytes in length. A row will not span
multiple pages.

Rows are usually inserted into a table in first-fit order. The file is
searched (using a free space map) for the first available space that is
large enough to hold the new row. When a row is updated, it is updated
in place, unless there is insufficient space left on the page to
contain it. If this is the case, a record is created in the original
row location that points to the new location in the table file of the
updated row.

If the ALTER TABLE APPEND ON statement is invoked, data is always
appended, and information about any free space on the data pages is not
kept.

There is a maximum of only 255 rows per page.
############### ###########

I don't know whether this answers your query or not, but I suggest in
order to dig further, you refer to the UDB documentation. The URL for
the same is: http://publib.boulder.ibm.com/infoce...help/index.jsp
regards,
dotyet

Nov 12 '05 #2
phu
Hi,

I think a lot of that would be proprietory (sp?) information. However,
if you search google for "db2 internals", you will see that there
are occasional presentations given.

I also think that some information about the page layout is also
discussed in the online documentation (e.g. Performance). I don't think
you will find anything on migration or chaining, however.

Good luck :)
Bill

hopehope_123 <ho**********@y ahoo.com> wrote:
Hi , Where can i find information about db2 block structure? I want to know
how it stores rows into blocks , how it handles issues such as row
migration / chaining or etc.
Kind Regards,
hope


--
Bill Phu -- Dalhousie University (phu at cs dal ca)
"Three grand essentials to happiness in this life are something to do,
something to love, and something to hope for."
- Joseph Addison
Nov 12 '05 #3
ph*@cs.dal.ca wrote:
Hi,

I think a lot of that would be proprietory (sp?) information. However,
if you search google for "db2 internals", you will see that there
are occasional presentations given.

I also think that some information about the page layout is also
discussed in the online documentation (e.g. Performance). I don't think
you will find anything on migration or chaining, however.

Good luck :)
Bill

hopehope_123 <ho**********@y ahoo.com> wrote:
Hi ,


Where can i find information about db2 block structure? I want to know
how it stores rows into blocks , how it handles issues such as row
migration / chaining or etc.

Kind Regards,
hope

Matter of fact IBM provides dosumentation of the physical layout upon
request. This is mostly used by tool-vendors providing custom LOAD
utilities.

Cheers
Serge

Nov 12 '05 #4
Serge Rielau wrote:
Matter of fact IBM provides dosumentation of the physical layout upon
request. This is mostly used by tool-vendors providing custom LOAD
utilities.


One can also derive some of the information from the DB2 logs where the
placement of records on a page and free space information are tracked.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
34278
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro capabilities, unfortunately. I'd like to know if it may be possible to add a powerful macro system to Python, while keeping its amazing syntax, and if it could be possible to add Pythonistic syntax to Lisp or Scheme, while keeping all of the...
4
2660
by: Christopher | last post by:
This should be a quick one. URL: http://cfa-www.harvard.edu/~cpilman/Stuff/flush.html Code: ============================= <!DOCTYPE HTML Public "-//W3C//DTD HTML 4.01//EN"> <HTML><Head><Title>Get my feet off the ground</Title> <Meta HTTP-Equiv="Content-Type" Content="text/html; charset=us-ascii"> <Style type="text/css"> Body { font-size: 60px; }
2
2219
by: TadPole | last post by:
Hi all, My main problems are::::::::: 1. Set a value within a block container that can be used and changed by subsequent templates/block-containers/tables etc.. 2. get/determine/find the setting that tell the process that the new top of the document region is now at the end of the last block-container used, this must be set in that last block container. 3. find the value used in the 'top" setting on the prior
2
2524
by: morrell | last post by:
I have a request to find out is there an easy way to solve this little poblem. ___________________ | Block 1 | | | | | | | |__________________|
6
7451
by: foolmelon | last post by:
If a childThread is in the middle of a catch block and handling an exception caught, the main thread calls childThread.Abort(). At that time a ThreadAbortException is thrown in the childThread. The question is: after the ThreadAbortException is thrown, does the childThread continue run the remaining code in the catch block?
8
3333
by: Alvin | last post by:
I'm making a very simple game in SDL, and I'm not asking for SDL help I hope - this looks like something C++ related, so I'll ask here. I have a class for a simple block, or tile, in the game, which can be either on or off. I'm having trouble with the constructor though. class block { private: SDL_Surface *screen;
6
2024
by: dave8421 | last post by:
Hi, I'm a bit confused about the definition about "Prinicpal Block Boxes" in CSS 2.1 draft specification. ( http://www.w3.org/TR/2006/WD-CSS21-20061106 ) <pre> 9.2.1 Block-level elements and block boxes The principal block box establishes the containing block for descendant boxes and generated
2
2048
by: Bob Greschke | last post by:
This is the idea Block = pack("240s", "") Block = pack(">H", W) Block = pack(">H", X) Block = pack(">B", Y) Block = pack(">H", Z)) but, of course, Block, a str, can't be sliced. The real use of this is a bit more complicated such that I can't just fill in all of the "fields"
15
3170
by: cssExp | last post by:
hello, Rather than going on a wild explanation on what's the the problem, it'll be much quicker and easier if i let you look at it yourself, so I'll post my page source (actual contents taken out, of course). <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Language" content="en-us" />
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10578
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9152
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.