Unix Technical Forum

Tablespace Quota Question

This is a discussion on Tablespace Quota Question within the Oracle Database forums, part of the Database Server Software category; --> 10.2.0.2 on XP SQL> conn uwclass/uwclass Connected. SQL> SELECT tablespace_name 2 FROM user_tablespaces; TABLESPACE_NAME ------------------------------ SYSTEM UNDOTBS1 SYSAUX TEMP ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2008, 08:49 AM
DA Morgan
 
Posts: n/a
Default Tablespace Quota Question

10.2.0.2 on XP

SQL> conn uwclass/uwclass
Connected.

SQL> SELECT tablespace_name
2 FROM user_tablespaces;

TABLESPACE_NAME
------------------------------
SYSTEM
UNDOTBS1
SYSAUX
TEMP
USERS
EXAMPLE
DATA_SML

SQL> SELECT tablespace_name, bytes
2 FROM user_ts_quotas;

TABLESPACE_NAME BYTES
------------------------------ ----------
COMPRESSED 0
PART1 0
SYSAUX 0
DATA_SML 13107200
USERS 0
PART3 0
DATA_OLD 0
PART2 0
SYSTEM 0

9 rows selected.

SQL> create table xxx (
2 testcol char(1))
3 tablespace users;

Table created.

SQL>

The tablespaces COMPRESSED, PART1, PART2, PART3, and DATA_OLD
do not exist as is correctly shown in the first query. They
were dropped but yet a record is retained in TS$ which shows
in DBA_TS_QUOTAS even after a restart. Further DBA_TS_QUOTAS
does not reflect an accurate quota on the USERS tablespace for
the user.

Thanks.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-25-2008, 08:49 AM
Michel Cadot
 
Posts: n/a
Default Re: Tablespace Quota Question


"DA Morgan" <damorgan@psoug.org> a écrit dans le message de news: 1160684825.292595@bubbleator.drizzle.com...
| 10.2.0.2 on XP
|
| SQL> conn uwclass/uwclass
| Connected.
|
| SQL> SELECT tablespace_name
| 2 FROM user_tablespaces;
|
| TABLESPACE_NAME
| ------------------------------
| SYSTEM
| UNDOTBS1
| SYSAUX
| TEMP
| USERS
| EXAMPLE
| DATA_SML
|
| SQL> SELECT tablespace_name, bytes
| 2 FROM user_ts_quotas;
|
| TABLESPACE_NAME BYTES
| ------------------------------ ----------
| COMPRESSED 0
| PART1 0
| SYSAUX 0
| DATA_SML 13107200
| USERS 0
| PART3 0
| DATA_OLD 0
| PART2 0
| SYSTEM 0
|
| 9 rows selected.
|
| SQL> create table xxx (
| 2 testcol char(1))
| 3 tablespace users;
|
| Table created.
|
| SQL>
|
| The tablespaces COMPRESSED, PART1, PART2, PART3, and DATA_OLD
| do not exist as is correctly shown in the first query. They
| were dropped but yet a record is retained in TS$ which shows
| in DBA_TS_QUOTAS even after a restart. Further DBA_TS_QUOTAS
| does not reflect an accurate quota on the USERS tablespace for
| the user.
|
| Thanks.
| --
| Daniel A. Morgan
| University of Washington
| damorgan@x.washington.edu
| (replace x with u to respond)
| Puget Sound Oracle Users Group
| www.psoug.org

Yes, this is, imho, a bug in dba_ts_quotas that exists in all versions.
In its definition "ts.online$ != 3" is missing.
I remember having raised a TAR many and many years ago
but this is still there.

But in 10g, they added the column DROPPED to indicate
that the tablespace no more exists.

Why they keep these records in sys.tsq$, sys.ts$ and why
they don't restrict in dba_ts_quotas as they do in dba_tablespaces,
I don't know. Maybe someelse can answer to this question.

Regards
Michel Cadot




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:09 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com