473,729 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reorg Not Reclaiming Anticipated Space

I am using DMS raw. I have a tablespace which is defined with 5
containers each allocated at 1.5 GB for a total of about 7.5 GB. I did
a major deletion followed by a reorg and a runstats. I am not
regaining as much space as anticipated. Additionally, the
syscat.tables and syscat.indexes show my usage to be small. How do I
determine who is using all the space ?

The list tablespaces shows -
Usable pages = 7.4 GB
Used pages = 6.2 GB
Free pages to be 1.2 GB

I select from syscat.tables and see sum(fpages) = 466 MB.
I select from syscat.indexes and see sum(nleaf) = 33 MB.

The extentsize is 32 and the page size is 4096. Both data, index and
LOB use the same tablespace. SYSCAT.COLUMNS reveals that some of these
tables do have CLOB columns.

Can anyone tell me how to determine how much is really free ? Is the
used pages really this high? I am thinking not. Thanks.

Jul 4 '06 #1
9 7139
mike_dba wrote:
I am using DMS raw. I have a tablespace which is defined with 5
containers each allocated at 1.5 GB for a total of about 7.5 GB. I did
a major deletion followed by a reorg and a runstats. I am not
regaining as much space as anticipated. Additionally, the
syscat.tables and syscat.indexes show my usage to be small. How do I
determine who is using all the space ?

The list tablespaces shows -
Usable pages = 7.4 GB
Used pages = 6.2 GB
Free pages to be 1.2 GB

I select from syscat.tables and see sum(fpages) = 466 MB.
I select from syscat.indexes and see sum(nleaf) = 33 MB.

The extentsize is 32 and the page size is 4096. Both data, index and
LOB use the same tablespace. SYSCAT.COLUMNS reveals that some of these
tables do have CLOB columns.

Can anyone tell me how to determine how much is really free ? Is the
used pages really this high? I am thinking not. Thanks.
Hi!

From what I know I can tell you this:
DB2 does not give the free space back to operating system. Reorg just moves
data around to have a fast access layout, depending on the previous load
DB2 had to work with.
I think that if you want the free space back then you'll have to do
EXPORT/IMPORT of your data, but I may be wrong here.

Best regards,
Kovi

--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| Gregor Kovac | Gr**********@mi kropis.si |
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Jul 4 '06 #2
how many tables and indexes have defined on the tablespace? is it
partitoned database?

mike_dba 写道:
I am using DMS raw. I have a tablespace which is defined with 5
containers each allocated at 1.5 GB for a total of about 7.5 GB. I did
a major deletion followed by a reorg and a runstats. I am not
regaining as much space as anticipated. Additionally, the
syscat.tables and syscat.indexes show my usage to be small. How do I
determine who is using all the space ?

The list tablespaces shows -
Usable pages = 7.4 GB
Used pages = 6.2 GB
Free pages to be 1.2 GB

I select from syscat.tables and see sum(fpages) = 466 MB.
I select from syscat.indexes and see sum(nleaf) = 33 MB.

The extentsize is 32 and the page size is 4096. Both data, index and
LOB use the same tablespace. SYSCAT.COLUMNS reveals that some of these
tables do have CLOB columns.

Can anyone tell me how to determine how much is really free ? Is the
used pages really this high? I am thinking not. Thanks.
Jul 4 '06 #3
This particular database is only a single partition. All my tables
are in the single tablespace. There are about 200 tables and maybe 300
indexes.

The interesting thing is that there was only a slight freeing up of
space after the reorg and yet the catalog indicates that I am using
only MB (as seen by the "sum(fpages )" for all tables in the tablespace
and all indexes on these tables).
Hardy wrote:
how many tables and indexes have defined on the tablespace? is it
partitoned database?

mike_dba 写道:
I am using DMS raw. I have a tablespace which is defined with 5
containers each allocated at 1.5 GB for a total of about 7.5 GB. I did
a major deletion followed by a reorg and a runstats. I am not
regaining as much space as anticipated. Additionally, the
syscat.tables and syscat.indexes show my usage to be small. How do I
determine who is using all the space ?

The list tablespaces shows -
Usable pages = 7.4 GB
Used pages = 6.2 GB
Free pages to be 1.2 GB

I select from syscat.tables and see sum(fpages) = 466 MB.
I select from syscat.indexes and see sum(nleaf) = 33 MB.

The extentsize is 32 and the page size is 4096. Both data, index and
LOB use the same tablespace. SYSCAT.COLUMNS reveals that some of these
tables do have CLOB columns.

Can anyone tell me how to determine how much is really free ? Is the
used pages really this high? I am thinking not. Thanks.
Jul 5 '06 #4
Using DMS raw: file or device containers?

After the bulk delete, did you also reorg all the indexes in addition
to the tables?

Are the LOB columns using COMPACT option ?

Jul 5 '06 #5

mike wrote:
Using DMS raw: file or device containers?

After the bulk delete, did you also reorg all the indexes in addition
to the tables?

Are the LOB columns using COMPACT option ?
Are you doing on-line or off-line reorg? On-line reorg does not reclaim
space for LOBS.

Jul 5 '06 #6

mcteard wrote:
mike wrote:
Using DMS raw: file or device containers?

After the bulk delete, did you also reorg all the indexes in addition
to the tables?

Are the LOB columns using COMPACT option ?

Are you doing on-line or off-line reorg? On-line reorg does not reclaim
space for LOBS.

I am using DMS raw devices. I issued a :
db2 "reorg table schema.table using other_tablespac e_name"
The database was activated but there were no connections when I issued
this command.
This would make it on-line, I believe. Do need to re-run this reorg
using someother syntax? Again, the catalog shows very little used.

I quick check of the ddl using db2look reveals columns like -
"COMMENTS" CLOB(2000) LOGGED NOT COMPACT
Not sure what bearing this has.

Jul 5 '06 #7

mike_dba wrote:
mcteard wrote:
mike wrote:
Using DMS raw: file or device containers?
>
After the bulk delete, did you also reorg all the indexes in addition
to the tables?
>
Are the LOB columns using COMPACT option ?
Are you doing on-line or off-line reorg? On-line reorg does not reclaim
space for LOBS.


I am using DMS raw devices. I issued a :
db2 "reorg table schema.table using other_tablespac e_name"
The database was activated but there were no connections when I issued
this command.
This would make it on-line, I believe. Do need to re-run this reorg
using someother syntax? Again, the catalog shows very little used.

I quick check of the ddl using db2look reveals columns like -
"COMMENTS" CLOB(2000) LOGGED NOT COMPACT
Not sure what bearing this has.
I also wanted to comment, that it was my impression that the reorg
command used above would also reorg the indexes along with the table.
Is this your understanding as well ?

Jul 5 '06 #8
Your reorg is an offline reorg as you do not specify INPLACE in your
command.
Your reorg then reclaims space. It does rebuild indexes by default as it is
an offline reorg.
Given the number tables and indexes in the tablespace, it is possible that
you have fragmentation of the the reorg'ed tables /indexes that leads to
high utilization of extents with loew population of same, even though you
are using a temp tablespace for the reorg.
Your reorg command also uses, by default, no reorg of the longdata. Try
again with specify LONGLOBDATA which will also implicate your CLOB's.
HTH, Pierre.
--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"mike_dba" <mi************ *@yahoo.coma crit dans le message de news:
11************* *********@l70g2 00...legr oups.com...
>
mike_dba wrote:
>mcteard wrote:
mike wrote:
Using DMS raw: file or device containers?

After the bulk delete, did you also reorg all the indexes in addition
to the tables?

Are the LOB columns using COMPACT option ?

Are you doing on-line or off-line reorg? On-line reorg does not reclaim
space for LOBS.


I am using DMS raw devices. I issued a :
db2 "reorg table schema.table using other_tablespac e_name"
The database was activated but there were no connections when I issued
this command.
This would make it on-line, I believe. Do need to re-run this reorg
using someother syntax? Again, the catalog shows very little used.

I quick check of the ddl using db2look reveals columns like -
"COMMENTS" CLOB(2000) LOGGED NOT COMPACT
Not sure what bearing this has.

I also wanted to comment, that it was my impression that the reorg
command used above would also reorg the indexes along with the table.
Is this your understanding as well ?
Jul 6 '06 #9
Pierre,

Thank you for your response. I did read up on the LONGLOBDATA as you
suggested and will schedule some time to issue the reorg with this
option. Do you know if there is a way to determine how much I might
regain from previously deleted CLOBS ? The docs indicate that there is
a possibility of actually growing after a reorg of the CLOB data. I
don't think that will be the case but can't be sure.

Thank you again for your assistance.
Pierre Saint-Jacques wrote:
Your reorg is an offline reorg as you do not specify INPLACE in your
command.
Your reorg then reclaims space. It does rebuild indexes by default as itis
an offline reorg.
Given the number tables and indexes in the tablespace, it is possible that
you have fragmentation of the the reorg'ed tables /indexes that leads to
high utilization of extents with loew population of same, even though you
are using a temp tablespace for the reorg.
Your reorg command also uses, by default, no reorg of the longdata. Try
again with specify LONGLOBDATA which will also implicate your CLOB's.
HTH, Pierre.
--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"mike_dba" <mi************ *@yahoo.coma crit dans le message de news:
11************* *********@l70g2 00...legr oups.com...

mike_dba wrote:
mcteard wrote:
mike wrote:
Using DMS raw: file or device containers?
>
After the bulk delete, did you also reorg all the indexes in addition
to the tables?
>
Are the LOB columns using COMPACT option ?

Are you doing on-line or off-line reorg? On-line reorg does not reclaim
space for LOBS.
I am using DMS raw devices. I issued a :
db2 "reorg table schema.table using other_tablespac e_name"
The database was activated but there were no connections when I issued
this command.
This would make it on-line, I believe. Do need to re-run this reorg
using someother syntax? Again, the catalog shows very little used.

I quick check of the ddl using db2look reveals columns like -
"COMMENTS" CLOB(2000) LOGGED NOT COMPACT
Not sure what bearing this has.
I also wanted to comment, that it was my impression that the reorg
command used above would also reorg the indexes along with the table.
Is this your understanding as well ?
Jul 6 '06 #10

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

Similar topics

27
7538
by: Raquel | last post by:
This question if for UDB on LUW. Suppose I take regular database backups of my database Monday: database backup <ts1> Tuesday: Tablespace reorged and imagecopied <ts2> Friday: database restored and roll-forwarded to a timestamp <ts3> on Wednesday. Now my question is: because the entire database is being roll-forwarded, I suppose the database roll forward operation will
2
8309
by: TomHorner | last post by:
I have several quick questions about reorg's, and a request (favor). 1. The documentation says that reorg "Reorganizes an index or a table" I cannot see how one would reorg ONE particular index - is there a way to do this? More importantly, would you WANT to do this? 2. We plan on doing inplace reorg's due to the 24x7 nature of our database servers. Are there any "undocumented" issues with these for V8.1, FP2 or FP6?
1
4810
by: hikums | last post by:
1. I did a reorgchk, and found that F2 on table and F4 on index indicates a reorg is necessary. 2. Did a reorg. 3. Again I do a reorgchk, the report is the same as in Step 1 4. I do a runstats on all columns and key columns with distribution and indexes all
3
3018
by: datapro01 | last post by:
Running db2 8.1.1 on aix 5.1. Tried to do an offline reorg on the system tables and could not reorg SYSIBM.SYSCOLDIST at about 3.5 million rows. Apparently there was not enough space in the default SYSCATSPACE tablespace in which DB2 could create the 'shadow' table. We are trying to determine the space we would need in a temp tablespace that would be specified in the reorg command. I know I've seen the
13
4402
by: Yuri | last post by:
We have an update sql that was running OK for several months completing in under 2 minutes . Yesterday something changed and we had to kill this update after it ran more than 6 hours. Update input table contained the normal 100K rows and master table contained about 135 M rows. We reorged the master table specifying the index we wanted DB2 to use in the update, ran runstats and reran the update with the same results (had to cancel it)....
2
3841
by: sethwai | last post by:
Hi, I have a nightly script that executes inplace reorgs allow write access for several tables after a previous script does a large number of delete operations. It usually has been executing fine. The other night 3 of them failed due to the log file system filling up. I resumed them individually and they all completed successfully. To eliminate the log space problem I changed the script to wait for one to complete before startng...
0
2249
by: bwmiller16 | last post by:
Hi All - OSName: AIX NodeName: dr_aixdb01 Version: 5 Release: 3 dr_aixdb01$db2level DB21085I Instance "db2inst1" uses "64" bits and DB2 code release "SQL08027"
7
3286
by: Okonita via DBMonster.com | last post by:
Hi all, I am very surprised to see that after doing a Reorgchk followed by reorg of selected tables and concluding with a runstats of the reorged tables, all of the tables continue to be identified and selected as reorg candidates in subsequent/followup reorgchk. Has anyone had this experience? Can you share with me what you may have found out to the the reason and if possible what are the possible solutions to correct the situation?
3
3695
by: jane | last post by:
Hi, Just wondering, is there any way to do the online reorg to use temporary tablespace instead of tablespace table existed. since that is really a waste to have some space allocated aside only for the online reorg ..
0
8761
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9426
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...
0
9281
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9200
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
9142
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
8148
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 projectplanning, coding, testing, and deploymentwithout 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...
0
4795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2680
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2163
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.