473,598 Members | 3,097 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How many extents does a BLOB need?

Hi, could somebody please explain why the following statement consumes
six extents:

CREATE TABLE T1 (C1 INT, C2 BLOB(1K)) IN TS1

I see one extent for the extent map and one extend for data pages. How
many extents does this BLOB thing need?

Thanks in advance.

Regards,
Markus
Nov 12 '05 #1
2 1994
The other four extents are used by the tblspc itself.
One for the con tainer tag, one for header data, one for space map, one
for header object data. These four will always appear in each container.
From then on, each object will be created with two extents; one for the
extent map and one pre-allocated empty for the data to come in. As rows
grow, more extents are allocated and identified in the extent map which
will then grow new ones as needed.

HTH, Pierre.

Markus Neifer wrote:
Hi, could somebody please explain why the following statement consumes
six extents:

CREATE TABLE T1 (C1 INT, C2 BLOB(1K)) IN TS1

I see one extent for the extent map and one extend for data pages. How
many extents does this BLOB thing need?

Thanks in advance.

Regards,
Markus


--
Pierre Saint-Jacques - Reply to: sesconsjunk at attglobaljunk dot com
Reconstruct address: Remove the two junk and replace at and dot by
their symbols.
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.

Nov 12 '05 #2
Hi Pierre, thank you for your reply. I know about the tablespace
overhead and was thinking about extents consumed by T1 only. Maybe
some more information will clarify this. I create TS1 with

CREATE TABLESPACE TS1
MANAGED BY DATABASE USING (FILE 'TS1_CONT' 120)
EXTENTSIZE 10

and LIST TABLESPACES SHOW DETAIL says total pages 120, usable pages
110 and used pages 30. So far, so good. Now i create a simple table

CREATE TABLE T2 (C1 INT, C2 CHAR(250)) IN TS1

and LIST TABLESPACES SHOW DETAIL says used pages 50. That's ok because
each object (table, index, LOB) needs 2 extents. However, after
creating the following table

CREATE TABLE T1 (C1 INT, C2 BLOB(1K)) IN TS1

LIST TABLESPACES SHOW DETAIL says used pages 110. I see one extent for
the extent map and one extend for data pages. I thought the BLOB would
need 2 extents, as any other object. But if i sum it up, i get only 4
extents, not 6.

What am i missing?

Markus

Pierre Saint-Jacques <se*****@attglo bal.net> wrote in message news:<41******* *******@attglob al.net>...
The other four extents are used by the tblspc itself.
One for the con tainer tag, one for header data, one for space map, one
for header object data. These four will always appear in each container.
From then on, each object will be created with two extents; one for the
extent map and one pre-allocated empty for the data to come in. As rows
grow, more extents are allocated and identified in the extent map which
will then grow new ones as needed.

HTH, Pierre.

Nov 12 '05 #3

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

Similar topics

1
7899
by: Lod | last post by:
I have a question concerning the extents from a database. The database stops occasionaly with an ORA-01632 error. Increasing the max_extent from the individual index, named in the error is keeping things going, but there should be a way solving this in a more structural manner. There is plenty of (table)space on the system. When I query dba_tablespaces for our tablespace it gives a next_extent=40969 and a max_extent=2048 and a...
1
1534
by: Doron | last post by:
is there a setting that will ebnable uniform extent allocation upon creation of index/table by default ? if there isn't any default setting can you code it in? thanks, Doron
7
11453
by: sime | last post by:
Hi, I have a blob field in a mysql database table. I want to copy a blob from one record to another. I am having trouble transferring the data via a php variable. Maybe I need to addslashes or convert to Hex or something. I've tried a few things but can't quite get it. Here is simplified code. mysql_select_db($dbname, $connection);
11
23006
by: Chris Fink | last post by:
I have setup an Oracle table which contains a blob field. How do I insert data into this field using C# and ADO.net?
15
2566
by: Pucca | last post by:
I'm getting an error when I tried to use this BerConverter class in my C# code. Even though the Interent doc says that it runs on Win2000 sp4, I just thgouth I'll double check. Does anyone know if BerConverter is supported for Win2000 server? http://msdn2.microsoft.com/en-us/library/system.directoryservices.protocols.berconverter.decode.aspx -- Thanks.
2
6497
by: Vinciz | last post by:
hi guys... im new in java and i would love to learn some of these... basically i got a sample code to retrieve the blob from the mysql. however, i dont really know what to do with these retrieved byte/binary data as i got no idea on how to save them in our pc. For this situation, what i need to do is give the byte/binary data an extension (retrieved from another field in the table) in order to revert back to the original data i had in the...
9
7972
by: matt | last post by:
hello, im doing my first ASP.NET app that inserts & retrieves files from Oracle (no need for a discussion on *that*!). i learned first-hand of the somewhat awkward technique for inserting binary data into an Oracle BLOB column via ADO.NET. since my files are larger than 33k, it seemed had to use this technique: http://support.microsoft.com/default.aspx?scid=kb;en-us;322796
1
4112
by: christodde | last post by:
Hi group, I am going through some exercises regarding DB2 Administration and I found the below: How many extents are allocated when the following Employee table is created in the DMS tablespace TBS03? create table employee ( ID smallint not null, name varchar(9), DEPT smallint check (dept between 10 and 100),
16
6655
by: wizard | last post by:
Here is a piece of code below for writing and reading blobs in SQLITE database. I ' ve a problem to read from blob struct called 'Points' Any help would be appreciated Reagards Greg #include <stdlib.h> #include <stdio.h>
0
8389
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
8048
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
8263
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
6713
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
5848
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
5438
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
2411
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
1
1503
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1246
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.