473,396 Members | 2,011 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.

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 16344
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******@hotmail.com> wrote in message
news:BnCmb.84888$Ms2.27047@fed1read03...
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
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
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: 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...
9
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...
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...
1
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...
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...
3
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...
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
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...
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.