Home » RDBMS Server » Server Administration » Problem with create index - Oracle 9i (Oracle 9i, Solaris 9)
Problem with create index - Oracle 9i [message #462419] Thu, 24 June 2010 03:37 Go to next message
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 Go to previous messageGo to next message
Michel Cadot
Messages: 68653
Registered: March 2007
Location: Nanterre, France, http://...
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

icon14.gif  Re: Problem with create index - Oracle 9i [message #462429 is a reply to message #462421] Thu, 24 June 2010 04:17 Go to previous messageGo to next message
MarkusW
Messages: 20
Registered: June 2009
Location: Austria
Junior Member
Hi Michel,

Thanks for this hint!

After increase the quota of the user, it works fine. Cool

alter user myuser quota 20M on INDEX_TBS;


What is the default setting of quotas for a user?



Regards,
Markus
Re: Problem with create index - Oracle 9i [message #462440 is a reply to message #462429] Thu, 24 June 2010 05:00 Go to previous messageGo to next message
Michel Cadot
Messages: 68653
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
0.

Regards
Michel
Re: Problem with create index - Oracle 9i [message #462445 is a reply to message #462440] Thu, 24 June 2010 05:09 Go to previous message
ramoradba
Messages: 2456
Registered: January 2009
Location: AndhraPradesh,Hyderabad,I...
Senior Member
Assigning Tablespace Quotas

Quote:
By default, a user has no quota on any tablespace in the database.

Better read this.
Good luck

sriram Smile
Previous Topic: script to automate startup/shutdown of mutliple instance in one db server
Next Topic: Getting error during upgrade to oracle 10.2.0.5
Goto Forum:
  


Current Time: Sun May 19 20:11:03 CDT 2024