473,546 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TEMP Tablespace Question

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 the size of it, it still fills up. Even if all processes are finished, Oracle does not clear it out. Then I have programs fail with the "Unable to extend" error on the temp tablespace.

We either have to bounce the DB, or drop and re-build the temp tablespace when this happens.

Does anyone out there have any ideas why this happens in only one application that I support, and how to fix it ?

Thank you.
--
Paul L.
Jul 19 '05 #1
3 16355
Paul wrote:
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 the size of it, it still fills up. Even if all processes
are finished, Oracle does not clear it out. Then I have programs fail
with the "Unable to extend" error on the temp tablespace.

We either have to bounce the DB, or drop and re-build the temp
tablespace when this happens.

Does anyone out there have any ideas why this happens in only one
application that I support, and how to fix it ?

Thank you.
--
Paul L.


EXACTLY which type of "temp" tablespace do you have;
permanent or temporary?

Have you tried ?
ALTER TABLESPACE TEMP COALESCE;

Jul 19 '05 #2
Anna:

It is a temporary tablespace. I haven't tried the coalesce but I will
give it a try.

Thanks.
--
Paul
"Anna C. Dent" <an******@hotma il.com> wrote in message
news:BnCmb.8488 8$Ms2.27047@fed 1read03...
Paul wrote:
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 the size of it, it still fills up. Even if all processes
are finished, Oracle does not clear it out. Then I have programs fail
with the "Unable to extend" error on the temp tablespace.

We either have to bounce the DB, or drop and re-build the temp
tablespace when this happens.

Does anyone out there have any ideas why this happens in only one
application that I support, and how to fix it ?

Thank you.
--
Paul L.


EXACTLY which type of "temp" tablespace do you have;
permanent or temporary?

Have you tried ?
ALTER TABLESPACE TEMP COALESCE;

Jul 19 '05 #3
Paul,

This is a golden oldie in Oracle - just do a Google search. As I understand
it as a developer, it is not unusual for TEMP to be running at 99% usage,
since the space is usually reclaimed on demand or through a process that
wakes up every hour or so.

Given the circumstance that it only happens in one app, I expect it to be a
suboptimal query that is doing a superfluous join/sort whatever. It happened
to me once too:
Me: "My program sometimes crashes with ORA-01652 ".
DBA: "There's something wrong with your program".
Me (arrogantly): "Writing optimal and correct Oracle SQL queries has become
second nature to me".
DBA: "There's still something wrong with your program".
Me (after some research, shamefaced): "I found a non-optimal query in my
program that caused a Cartesian join".

Just use a tool like PL/SQL Developer or TOAD or one of the others to easily
explain plan your queries.

Regards,
Frans
Jul 19 '05 #4

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

Similar topics

2
2560
by: hank | last post by:
Hi does some one know how to monitor the temp space and point out which application that has the highest usage of temp space thanks Hank
6
3789
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. 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...
0
1467
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 how db2 handles multiple temp tablespaces of the same page size? 2) I had read somewhere that with multiple temp tablespaces of the
1
10459
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 this is not a solution!!! I don’t want to extend it becuase it will be full again. In my previous job the table space was 800MB and it was always...
9
17535
by: Veeru71 | last post by:
Can someone point me to good documentation on 'WITH clause" ? (I couldn't get much out of Queries section from SQL Reference manual). We are getting better performance when we explicity use global temp tables to store intermediate results than using "WITH cluase" in our queries. Where does DB2 store the intermediate results if the query uses...
0
1403
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 usage size of Temp Tablespace. In one of my stored procedure, I've used 6 global temporary tables. After generating that report, usage size of...
1
2009
by: shraddhamhatre | last post by:
Hi friends I am new in oracle , can you pls help me to know what to keep size of temp and undo tablespace? And also wanted to know is there any inbuild script of oracle which will give the tablespace/database information which is required before migration on database from one version to another? Thanks Shraddha
3
263
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 the size of it, it still fills up. Even if all processes are finished, Oracle does not clear it out. Then I have programs fail with the "Unable to...
3
3488
by: Arun Srinivasan | last post by:
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)...
0
7435
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...
0
7694
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. ...
0
7792
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...
0
6026
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3491
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1921
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
747
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...

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.