473,395 Members | 1,443 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.

Temp tablespace - system or user?

I have a sql that goes like

select ............... from table (select ....... from table t where
<>) as x

Now this temp table x is supposed to keep 10 K rows at a point of
time. Where would they be stored? I know the answer is temp
tablespace, but is it in system temp or user temp?
All I am trying to do is to create a temp (sys or user) with good
amount of pages so that these kinds of queries would speed up. I dont
know the size of which I'd have to create (16, 32k) ? How can we
estimate this so that I can create a system temp space wth 10 gigs.

Please help in defining them.

Ever questioning ,
Arun
Jul 1 '08 #1
3 3474
Arun Srinivasan wrote:
I have a sql that goes like

select ............... from table (select ....... from table t where
<>) as x

Now this temp table x is supposed to keep 10 K rows at a point of
time. Where would they be stored? I know the answer is temp
tablespace, but is it in system temp or user temp?
All I am trying to do is to create a temp (sys or user) with good
amount of pages so that these kinds of queries would speed up. I dont
know the size of which I'd have to create (16, 32k) ? How can we
estimate this so that I can create a system temp space wth 10 gigs.
In your example my hope would be that there is no TEMP involved
whatsoever since the access can be pipe-lined.
Anyway any temps "thrown in" bu DB2, including temps to spill sort
memory are SYSTEM TEMPs You should define a system temp for each page
size (4k-32K on DB2 for LUW)

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Jul 2 '08 #2
Use SMS for this - space in the filesystem will only be used when temp
is used.
So put all TEMP into the same filesystem for shared usage.
When TEMP is not needed any more (SQL/transaction ended) the space
will be freed.

Anyway any temps "thrown in" bu DB2, including temps to spill sort
memory are SYSTEM TEMPs You should define a system temp for each page
size (4k-32K on DB2 for LUW)

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Jul 2 '08 #3
On Jul 2, 8:10*am, "stefan.albert" <stefan.alb...@spb.dewrote:
Use SMS for this - space in the filesystem will only be used when temp
is used.
So put all TEMP into the same filesystem for shared usage.
When TEMP is not needed any more (SQL/transaction ended) the space
will be freed.
Anyway any temps "thrown in" bu DB2, including temps to spill sort
memory are SYSTEM TEMPs You should define a system temp for each page
size (4k-32K on DB2 for LUW)
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab- Hide quoted text -

- Show quoted text -
Thanks both..
Jul 2 '08 #4

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

Similar topics

3
by: Paul | last post by:
I have several databases running on Solaris 2.8 and Oracle 8.1.7.4. I only have this problem with one of them. The temp tablespace always fills up and Oracle does not clear it out. If I expand...
7
by: tracy | last post by:
hi, i need advise and guidance from experts. Today, I discovered about 1464 tables created in SYSTEM tablespace and the owner is dev_user. As, i read from ORACLE 101 DBA's it said :'System...
2
by: Xavier | last post by:
Hello, I'd like to use MaxDB on Linux Red Hat 8.0. I've installed correctly the software. But when I try to create a new instance through the WebDBM or the WinDBM GUI I've the following error :...
2
by: jay.chan | last post by:
I am writing a web application to get System user name. By reading the previous post, it seems that this method works <%@ Language=VBScript %> <% Dim user, pword user =...
0
by: Roberto López | last post by:
Hi all, I have an ASP.NET app that connects to SQL server to store and retrieve data, and users may upload and download files from the server using System.IO namespace's functions. In my...
1
by: airmax | last post by:
Hello DBA’s I have a problem with my TEMP tablespace. It’s 1 GB and its full. Shouldn’t be empty? When the tablespace is full i have to restart the database in order clean up the tablespace, but...
2
by: bprasanth | last post by:
I create my own database with user_name:super and password:super.When I am try to create a table with this user name and password then it show the below error: ERROR at line 1: ORA-01950: no...
0
by: dunleav1 | last post by:
Does it make sense to set prefetch automatic on a temp tablespace?
0
by: prema kannan | last post by:
Please let me know when does Temp Tablespace of Oracle9i gets cleared by default. In my office, we never shut down Oracle / Server. Please let me know whether global temporary tables increases the...
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?
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
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
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
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...

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.