Problem with create index - Oracle 9i [message #462419] |
Thu, 24 June 2010 03:37 |
MarkusW
Messages: 20 Registered: June 2009 Location: Austria
|
Junior Member |
|
|
Hi,
need help for a tablespace problem in Oracle 9i.
I create an index with following command
CREATE unique INDEX i_myindex ON myschema.table1 ( column1, column1, column1 ) tablespace INDEX_TBS;
For this Select I get the following error:
09:38:32 [CREATE - 0 row(s), 0.000 secs] [Error Code: 1536, SQL State: 72000] ORA-01536: space quota exceeded for tablespace 'INDEX_TBS'
To be safe, I checked the size of the tablespace
select b.file_name, bytes_full, bytes_total, trunc(bytes_full/bytes_total, 4)*100 as pct_used from v$database a, dba_data_files b,
(select tablespace_name, sum(bytes) bytes_full from dba_extents group by tablespace_name) c,
(select tablespace_name, sum(bytes) bytes_total from dba_data_files group by tablespace_name) d
where b.tablespace_name = c.tablespace_name
and b.tablespace_name = d.tablespace_name
FILE_NAME BYTES_FULL BYTES_TOTAL PCT_USED
------------------------------------------------------------------- ---------- ----------- --------
/ora/oracle9/9.2.0.1.0/OraHome1/oradata/myschema/histdata.dbf 3080192 104857600 2.93
/ora/oracle9/9.2.0.1.0/OraHome1/oradata/myschema/index_tbs.dbf 393216 524288000 0.07
/ora/oracle9/9.2.0.1.0/OraHome1/oradata/myschema/system01.dbf 249888768 1258291200 19.85
/ora/oracle9/9.2.0.1.0/OraHome1/oradata/myschema/undotbs01.dbf 1228800 209715200 0.58
The tablespace size is 500 MB, only 0.07 % are used!
How can lead to error ORA-01536, even though the tablespace is almost empty?
Also increasing the tablespace did not lead to improvement!
Thanks for any help!
Regards,
Markus
|
|
|
Re: Problem with create index - Oracle 9i [message #462421 is a reply to message #462419] |
Thu, 24 June 2010 03:40 |
|
Michel Cadot
Messages: 68718 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
ORA-01536: space quota exceeded for tablespace '%s'
*Cause: The space quota for the segment owner in the tablespace has
been exhausted and the operation attempted the creation of a
new segment extent in the tablespace.
*Action: Either drop unnecessary objects in the tablespace to reclaim
space or have a privileged user increase the quota on this
tablespace for the segment owner.
The problem is not the space in tablespace but the quota of the user in this tablespace.
Regards
Michel
[Updated on: Thu, 24 June 2010 03:40] Report message to a moderator
|
|
|
|
|
|