Solved

Oracle TEMP tablespace

Posted on 2014-09-03
4
1,084 Views
Last Modified: 2014-09-08
Hi,
yesterday at 13:00 I have been getting the ORA-1652 error:
ORA-1652: unable to extend temp segment by 128 in tablespace TEMP

Now I'd like to know what sessions have used the TEMP tablespace and how much space has been used by every session

What query can I use to get these informations?

My Oracle version is 10g

Thanks in advance!
0
Comment
Question by:ralph_rea
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 300 total points
ID: 40300855
First view to look at is:
V$TEMPSEG_USAGE This view describes temporary segment usage.
http://docs.oracle.com/cd/B19306_01/server.102/b14237/dynviews_2164.htm#REFRN30285

You can link it up to sessions and a few others if the session that allocated the space is still running.

There are a lot of scripts out there that have queries you can run to locate this information.

The thread below also mentions a couple of documents on Oracle Support that have information about this:
https://community.oracle.com/thread/2447146

Oracle Recommended Patches For Tablespace Monitoring using the Tablespace Space Used % metric [ID 849498.1]
 How Can Temporary Segment Usage Be Monitored Over Time? [ID 364417.1]
0
 

Author Comment

by:ralph_rea
ID: 40300865
the session that allocated the space is NOT still running and my oracle version is 10g (not 11g)
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 40300889
>>my oracle version is 10g (not 11g)

I got that from the original question.  The links I posted was 10g's docs and the Support notes are not 11g specific.


Without the session active you might be able to use AWR or some of the historical views but I'm not that familiar with them.

I'll have to defer to other Experts that are more familiar with them.
0
 
LVL 38

Assisted Solution

by:Geert Gruwez
Geert Gruwez earned 200 total points
ID: 40309319
some versions of oracle db have a bug when autoextend of temp datafiles are set and max is reached.
then you can get this error too.
the temp doesn't have to be full to get this error.

set the autoextend property off for all the tempfiles to resolve the bug.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question