473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

DB2 for z/OS problem - empty tablespace growing in size

We are in SAP R/3 using z/OS DB2 V7.1 as our DB Server.

SAP uses a table called VBDATA for it's internal intermediate needs just
inserting in it's primary transaction a row and then selects and deletes
the row in it's secondary transaction.

The table is basically empty. During our peak time we have just a few tens
of rows in the table.

The problem is that the tablespace is constantly growing - goes into
extents (and it's over allocated and it's a huge chank of just empty pages).

We tryed simple and segmanted tablespaces. We tryed descending and
ascending clustering indexes - nothing helps.

Any ideas?

Thanks,
Michael.

--
Message posted via http://www.dbmonster.com
Nov 12 '05 #1
2 2378
Is the data tablespace or the index tablespace growing in size?
I assume it is the data tablespace.
A segmented tablespace is probably best for this type of usage.
You should REORG it on a regular basis.
Or just drop the tablespace and redefine it and its dependents (tables,
indexes etc.). You also might want to increase the primamry and secondary
space allocations a bit to avoid a large number of extents,
if you don't reorg it often.

--
Message posted via http://www.dbmonster.com
Nov 12 '05 #2

Michael Raz via DBMonster.com wrote:
We are in SAP R/3 using z/OS DB2 V7.1 as our DB Server.

SAP uses a table called VBDATA for it's internal intermediate needs just inserting in it's primary transaction a row and then selects and deletes the row in it's secondary transaction.

The table is basically empty. During our peak time we have just a few tens of rows in the table.

The problem is that the tablespace is constantly growing - goes into
extents (and it's over allocated and it's a huge chank of just empty pages).
We tryed simple and segmanted tablespaces. We tryed descending and
ascending clustering indexes - nothing helps.

Any ideas?

Thanks,
Michael.

--
Message posted via http://www.dbmonster.com


couple of things (not necessarily DB2 specific)

- if a transaction is open, database engines don't reuse page slots
since they aren't really yet available. this is what the
situation sounds like.

- the engine has a maximum number of slots per page (255 last time i
looked). if you've a large bufferpool size for the tablespace,
you could be using lots of empty disc real estate. sounds like
the 4k page size (minimum) would help.

btdb

Nov 12 '05 #3

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

Similar topics

1
by: Jens H. Hamann | last post by:
Hi, I am having a strange problem with the storage parameters in Oracle 9.2.0.1 database. I create a tablespace with some default storage parameters but when i am adding a table to the tablespace...
1
by: xixi | last post by:
There is one thing I don't understand, I have default tablespace userspace1 is database managed type, with total freepages 506048. another one called tmpxx is DMS type too, with 525120 free pages....
2
by: Stanley Sinclair | last post by:
About to create a table which will "include" a BLOB. Am not sure how large to make the container and the tablespace. What I see says that BLOB is stored "separately." However, I don't know...
4
by: mairhtin o'feannag | last post by:
Hello, I have a tablespace striped across three drives, call them 1,2,3, just to be clever. :) I allocated a lot more space (DMS) than I should have, since I didn't know a way to estimate the...
4
by: Alvin SIU | last post by:
Hi all, I am now doing development using DB2. Q1. There is one tablespace to store 5 tables. But, when in production, there will be one tablespace for EACH of the tables.
0
by: okonita | last post by:
Hi all, I am running a recover tocopy procedure and twice with different image copy I found this informational message AND no data recovered: DSNUCBAL - THE IMAGE COPY DATA SET...
0
by: Okonita | last post by:
Hi all, I am running a recover tocopy procedure and twice with different image copy I found this informational message AND no data recovered: DSNUCBAL - THE IMAGE COPY DATA SET...
5
by: Mark A | last post by:
I have an OLTP database that has a tablespace that will start out at about 1 TB, but may grow to 75 TB's in size over the next 5 years. When I add new containers (on a new mount point), I want to...
1
by: deshaipet | last post by:
Hi friends - I created a automatic storage tablespace with a pagesize of 16 K and initial size of 64 MB. create large tablespace test_tbsp1 pagesize 16k managed by automatic storage autoresize...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
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,...
0
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...
0
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...
0
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,...

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.