473,387 Members | 1,757 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,387 software developers and data experts.

DB2 v7.1 for Z/OS - Need to know why I should delete and redfine DSNDB07 daily ?

I want to know what the best practices are for maintaining DSNDB07
(work database) on DB2 v7.1 for Z/OS?

A colleague swears that we need to delete and redefine DSNDB07 daily to
avoid maxing out on extents. I can not find any information on best
practices.

My belief is that it doesn't matter if we max out on extents because it
is temp data and once we reach the max, the current sql activity will
fail and rollback (if required). In fact, why do I even need to create
any secondary allocations at all? If I set it to 0, then the dataset
allocations won't grow past the primary...............
I need some sort of information to make an informed decision.

Thanks in advance,
Richard McCutcheon.

Nov 28 '06 #1
2 3253
You should refresh your working knowledge of what DSNDB07 is used for
before deciding that a fixed size with SQL failures is a good choice.

Intermediate work products are stored there when they are larger than
the buffer pool will support. Sorts may also be using space there. Your
DSNDB07 should never 'fill up' and cause SQL failures.

If you don't understand the necessity of primary and secondary
allocations, I'd recommend spending an hour or so with your site's disk
space administrator. You'll gain an appreciation of the costs and
benefits of properly managing disk space.

Managing multiple extents, especially when you have a couple hundred of
them for a single (underlying) file for a database can have significant
costs. Recreating DSNDB07, when necessary, to keep the number of extents
manageable is usually a good thing to do.

Phil Sherman
db*****@gmail.com wrote:
I want to know what the best practices are for maintaining DSNDB07
(work database) on DB2 v7.1 for Z/OS?

A colleague swears that we need to delete and redefine DSNDB07 daily to
avoid maxing out on extents. I can not find any information on best
practices.

My belief is that it doesn't matter if we max out on extents because it
is temp data and once we reach the max, the current sql activity will
fail and rollback (if required). In fact, why do I even need to create
any secondary allocations at all? If I set it to 0, then the dataset
allocations won't grow past the primary...............
I need some sort of information to make an informed decision.

Thanks in advance,
Richard McCutcheon.
Nov 28 '06 #2
Phil,

BEST practices is a relative word and the answer normally is 'IT DEPENDS'
but normally, it is considered GOOD practice to not provide secondary
extents for any of the temporary tables (keep SEC to 0) so that you (or the
DBA) get flagged by rogue dynamic SQL who hogs most of the resource and
shouldn't be allowed to - when an SQL runs out of temporary space, it
normally means it is also flooding the buffer-pools and chewing up lots of
cpu.... in whch case, you can then ask the user what his requirements are
and either bump up the allocations or ask him to eliminate the ORDER BY
clause or even ask him to work off unloaded extract files (and keep him out
of DB2) - but at least you can then make a conscious decision based on the
urgency of the matter. Changing your system resource for the sake of single
SQL is a bit of an overkill, don't you think?

HTH,
Ven

"Phil Sherman" <ps******@ameritech.netwrote in message
news:pA******************@newssvr14.news.prodigy.c om...
You should refresh your working knowledge of what DSNDB07 is used for
before deciding that a fixed size with SQL failures is a good choice.

Intermediate work products are stored there when they are larger than the
buffer pool will support. Sorts may also be using space there. Your
DSNDB07 should never 'fill up' and cause SQL failures.

If you don't understand the necessity of primary and secondary
allocations, I'd recommend spending an hour or so with your site's disk
space administrator. You'll gain an appreciation of the costs and benefits
of properly managing disk space.

Managing multiple extents, especially when you have a couple hundred of
them for a single (underlying) file for a database can have significant
costs. Recreating DSNDB07, when necessary, to keep the number of extents
manageable is usually a good thing to do.

Phil Sherman
db*****@gmail.com wrote:
>I want to know what the best practices are for maintaining DSNDB07
(work database) on DB2 v7.1 for Z/OS?

A colleague swears that we need to delete and redefine DSNDB07 daily to
avoid maxing out on extents. I can not find any information on best
practices.

My belief is that it doesn't matter if we max out on extents because it
is temp data and once we reach the max, the current sql activity will
fail and rollback (if required). In fact, why do I even need to create
any secondary allocations at all? If I set it to 0, then the dataset
allocations won't grow past the primary...............
I need some sort of information to make an informed decision.

Thanks in advance,
Richard McCutcheon.

Dec 2 '06 #3

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

Similar topics

1
by: smonczka | last post by:
I have a DTS package that needs to refresh data in 3 separate Excel spreadsheets on a daily basis. The problem is that unless I manually delete the previous day's data, it appends rather than...
2
by: Zarrin | last post by:
Hello, I read several articles of newsgroup about the bulk delete, and I found one way is to: -create a temporary table with all constraints of original table -insert rows to be retained into...
2
by: shapper | last post by:
Hello, I created a XSL file to convert a XML file to another XML. I am running this in Asp.Net but this is not working. ----- ORIGINAL XML ----- <?xml version="1.0" encoding="utf-8" ?>...
1
by: colpac | last post by:
I run a daily Make Table Query and want to generate a report based on the resulting table. When I run the Make Table Query each day, it must delete the table before rebuilding each day. As long as...
4
by: =?Utf-8?B?Ym9va2VyQG1ndA==?= | last post by:
Ok, I inherited some code written in vb that is part of a web application. My overall objective is to be able to take multiple names from a "LastName" text box and use those names in my SQL query...
0
by: Hennie Coertze | last post by:
Good day, My knowledge of XML is next to none and I only have one XSL code to use. I also assume I may be using incorrect jargon and hope you will understand what I need. I have an XSL style...
3
by: uzzi | last post by:
I don't know how to make a php script to work via cron...I want to make it run daily...My server API is CGI/Fast CGI.I have hosting from godaddy and in the help section i found that i have to specify...
3
by: serendipitous | last post by:
I have re-written this several times (changing the joins to sub selects and various other tricks), and I am sure it's something very, very simple, but I am just missing it. Any help is most...
10
by: vishal1082 | last post by:
i have XML file like this: <task> <status>Waiting</status> <time>21:15:38</time> <date>Daily</date> <works>End Process|^Open URL|http://www.^Remind|1</works> </task> ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.