473,396 Members | 2,082 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,396 software developers and data experts.

Multiple temp tablespaces with same page size

Can anyone tell me why a EEE system might be created to have two
separate tablespaces with the same 4k pagesize ? They both appear to
be in use as I can see the underlying files being modified.

These were created with SMS and reside on the same disk and filesystem
(separate directory on filesystem). One is called temp_4k and the
other temp_sys. I would assume that the temp_sys was intended for use
by the db2 catalog. I know of no way to tell db2 to use a specific
tablespace - like use temp_sys for catalog and temp_4k for operations
like sort,etc.

Apr 5 '06 #1
6 3770
mike_dba wrote:
Can anyone tell me why a EEE system might be created to have two
separate tablespaces with the same 4k pagesize ? They both appear to
be in use as I can see the underlying files being modified.
Yes, that's entirely possible.
These were created with SMS and reside on the same disk and filesystem
(separate directory on filesystem). One is called temp_4k and the
other temp_sys. I would assume that the temp_sys was intended for use
by the db2 catalog. I know of no way to tell db2 to use a specific
tablespace - like use temp_sys for catalog and temp_4k for operations
like sort,etc.


The catalog tablespace can be defined at CREATE DATABASE time. See the
CREATE DATABASE command for more details: http://tinyurl.com/zwac4

Other tablespaces are created with the CREATE TABLESPACE statement
(http://tinyurl.com/edsh4) and you have to define which tables go to a
particular tablespace using the CREATE TABLE statement
(http://tinyurl.com/csp4u). That leaves the temporary tablespaces. If I
remember correctly, then it is recommended to have just a single system or
user temporary tablespace for each page size.

You can use the LIST TABLESPACES command to determine the type of the two
tablespaces.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Apr 5 '06 #2
Ian
mike_dba wrote:
Can anyone tell me why a EEE system might be created to have two
separate tablespaces with the same 4k pagesize ? They both appear to
be in use as I can see the underlying files being modified.


Is one a USER temporary tablespace (i.e. for declared global temp
tables), and the other a SYSTEM temporary tablespace (for system
use in sorts / table queues /etc)?
Apr 5 '06 #3
"mike_dba" <mi*************@yahoo.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
Can anyone tell me why a EEE system might be created to have two
separate tablespaces with the same 4k pagesize ? They both appear to
be in use as I can see the underlying files being modified.

These were created with SMS and reside on the same disk and filesystem
(separate directory on filesystem). One is called temp_4k and the
other temp_sys. I would assume that the temp_sys was intended for use
by the db2 catalog. I know of no way to tell db2 to use a specific
tablespace - like use temp_sys for catalog and temp_4k for operations
like sort,etc.


Check the nodegroup of the tablespaces defined. That will give you some clue
as to what they will be used for.
Apr 6 '06 #4

Mark A wrote:
"mike_dba" <mi*************@yahoo.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
Can anyone tell me why a EEE system might be created to have two
separate tablespaces with the same 4k pagesize ? They both appear to
be in use as I can see the underlying files being modified.

These were created with SMS and reside on the same disk and filesystem
(separate directory on filesystem). One is called temp_4k and the
other temp_sys. I would assume that the temp_sys was intended for use
by the db2 catalog. I know of no way to tell db2 to use a specific
tablespace - like use temp_sys for catalog and temp_4k for operations
like sort,etc.


Check the nodegroup of the tablespaces defined. That will give you some clue
as to what they will be used for.


Thanks for your suggestion. It led me to the following revelation which
was not so straightforward at first.

I see that both were assigned to IBMTEMPGROUP. However, selecting from
syscat.tablespaces reveals that they belong to different bufferpools.
TEMP_SYS belongs to IBMDEFAULTBP bufferpool (as do tablespaces
syscatspace and userspace1). TEMP_4k belongs to BP4K bufferpool along
with some other tablespaces).

Thank you for your help.

Apr 6 '06 #5
IBMTEMPGROUP is the only option for system temps, you don't get to
choose where they go, I think Mark misuderstood and thought you were
talking about regular tables. It's like Bob said above, DB2 will
round-robin between temps of the same size, you can't influence which
temp will be used for your query. Also, this implies that if the two
bufferpools differ in size, you will more or less randomly get your
temp data cached either in the smaller or the larger. It seems a bit
pointless and in general I would not recommend multiple temp table
spaces with the same page size.

Regards,
Miro

Apr 6 '06 #6
"mirof007" <mi******@gmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
IBMTEMPGROUP is the only option for system temps, you don't get to
choose where they go, I think Mark misuderstood and thought you were
talking about regular tables. It's like Bob said above, DB2 will
round-robin between temps of the same size, you can't influence which
temp will be used for your query. Also, this implies that if the two
bufferpools differ in size, you will more or less randomly get your
temp data cached either in the smaller or the larger. It seems a bit
pointless and in general I would not recommend multiple temp table
spaces with the same page size.

Regards,
Miro


No, I did not misunderstand. The OP said that he assumed that "temp_sys was
intended for use by the db2 catalog."

Looking at the nodegroup revealed to the OP that they were "both were
assigned to IBMTEMPGROUP".
Apr 6 '06 #7

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

Similar topics

2
by: Terri | last post by:
I have form1.asp which contains a form which is posted to and processed by a page called process.asp. I want to create a second form on form2.asp and also post it to process.asp. On process.asp I...
1
by: Raja Shekar | last post by:
HI Every body , I would like to know whether is it mandatory to give Tablespace page size and Bufferpool page size equal..? i also heard like while creating tablespace if pages size of tablespace...
1
by: clickon | last post by:
I have a navigation a quite complex navigation structure and i want to have more than one way to navigate to the same page. It is a portal for a manufacturing company, one of the areas of the...
2
by: mike_dba | last post by:
Can anyone tell me why a EEE system might be created to have two separate tablespaces with the same 4k pagesize ? They both appear to be in use as I can see the underlying files being modified. ...
0
by: sethwai | last post by:
Hi, A friend of mine inheritted a system that had 2 4k temp tablespaces each assigned to a different bufferpool. This brought up a number of questions for me. 1) Does anyone know in general...
1
by: bigjimmy | last post by:
I'm currently testing http://fsviewr.lackadaisical.com/ on my blogger. I use the script in my post and put the js file location (<script type="text/javascript" src="fjs.js"></script>) in my...
4
by: RobertoRigoli | last post by:
Hi, I should create a new tablespaces with a page size to 32K, with e buffer pool dedicated with the same page size. The temporary tablespaces page size is 4K, I have to modify the temporary...
3
by: vanald04 | last post by:
Tried searching for the right article and saw some similar questions that if I knew more would probably be helpful, but I couldn't get the coding exactly right for my specific situation. So, thanks...
8
by: stoogots2 | last post by:
I would like to reuse the code for gridview sorting for each of the several GridViews that I have on one page. I've not done this before, so I am seeking a more elegant and reusable solution than...
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
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
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
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...
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...

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.