Home » RDBMS Server » Server Administration » How can I set quota on TEMP tablespace.
How can I set quota on TEMP tablespace. [message #52980] Thu, 22 August 2002 11:19 Go to next message
Sanjay Bajracharya
Messages: 279
Registered: October 2001
Location: Florida
Senior Member
- alter user X quota 5M on temp;
- X is the only user logged in the system.
- X runs a big SELECT which uses TEMP tablespace for sort process.
- I expect the query to fail due to the quota. When the query is over, I see that TEMP tablespace has ~ 10MB space used (it started with 0MB).

Is this possible ?

The TEMP tablespace is of type temporary.
Oracle 8.1.6.2.0
AIX 4.3.3

Quota on 'permanent' tablespace is working fine (like 'quota 20M on USERS')
Re: How can I set quota on TEMP tablespace. [message #52981 is a reply to message #52980] Thu, 22 August 2002 12:01 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
I was under an impression that,
to create temp segments, the user does not need any quota at all.
even though the user is assigned with some quota over the temp tablespace, during a sort the quota limit  will be overruled.
or simply the quota is not affective with temp segments.
someone!, throw me some light, if i am wrong.

Re: How can I set quota on TEMP tablespace. [message #52992 is a reply to message #52981] Fri, 23 August 2002 01:22 Go to previous messageGo to next message
santosh
Messages: 85
Registered: October 2000
Member
Hi,
I had come across problem of execution of programs those are using cursor with huge data over 20 hundred thousand records. This used to give me problem with temp tablspace . So i did following

Alter tablespace TEMP
Add tempfile '/oracle/dbf/temp02.dbf'
SIZE 100 M autoextend on ;

I have oracle 9i on unix platform

now my programs run fine.
Hope you may follow this too.
Santosh
Re: How can I set quota on TEMP tablespace. [message #52997 is a reply to message #52992] Fri, 23 August 2002 04:13 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
No.
we are not speakin of allocation space to temp tablespace.
question is
Is quota setting on a temp tablespace effective or not?
I strongly beleive, it is NOT

Re: How can I set quota on TEMP tablespace. [message #53045 is a reply to message #52992] Mon, 26 August 2002 12:32 Go to previous message
Sanjay Bajracharya
Messages: 279
Registered: October 2001
Location: Florida
Senior Member
Here is what I got in Metalink - interesting
============================================

See the followintg note

See Note:1054952.6

ORA-01652: Trying to Set Quotas for Users on Temp Tablespace

Problem Explanation:
====================
Tablespace quotas are not considered during temporary segment creation:

* Temp segments DO NOT consume any quota that a user might possess.
* Temp segments can be created in a tablespace for which a user does not have a quota.

This is a Oracle 7 bulletin but this is still documented in the 816 Concepts Manual, chapter 26
Previous Topic: datafile problem
Next Topic: How to find out the maximum row size...
Goto Forum:
  


Current Time: Thu Sep 19 11:50:09 CDT 2024