Home » RDBMS Server » Server Administration » How to find the size of an index
How to find the size of an index [message #61258] Thu, 08 April 2004 00:30 Go to next message
James Briar
Messages: 72
Registered: January 2002
Location: Morden (South London)
Member
We have a tablespace which contains user tables and indexes. In the table space there are 1148 indexes. I want to move the indexes into their own new tablespace. How can i find out what the current size of an index is so that i can estimate a size for a new tablespace? (oracle 8i on a Sun Solaris 8 unix platform).

Thanks. 
Re: How to find the size of an index [message #61259 is a reply to message #61258] Thu, 08 April 2004 01:05 Go to previous messageGo to next message
ora9iDBA
Messages: 31
Registered: March 2003
Member
select segment_name,sum(bytes/1024/1024) SIZE_MB
from all_segments where segment_type = 'INDEX'
Re: How to find the size of an index [message #61261 is a reply to message #61259] Thu, 08 April 2004 03:05 Go to previous messageGo to next message
Thiru
Messages: 1089
Registered: May 2002
Senior Member
All_segments doesnt exist. Try this

thiru@9.2.0:SQL>select sum(bytes) from dba_segments where tablespace_name='USERS' and
2 segment_type='INDEX';

SUM(BYTES)
----------
5505024

to get the size of all indexes of all owners in a given tablespace. User_segments can be used to find out ,what you own.

-Thiru
Re: How to find the size of an index [message #61263 is a reply to message #61261] Thu, 08 April 2004 03:45 Go to previous messageGo to next message
James Briar
Messages: 72
Registered: January 2002
Location: Morden (South London)
Member
Excellent - Thanks very much Thiru.
Re: How to find the size of an index [message #61264 is a reply to message #61259] Thu, 08 April 2004 03:50 Go to previous message
James Briar
Messages: 72
Registered: January 2002
Location: Morden (South London)
Member
Thanks for replying Kishor - I've read Thiru's comment/reply.
Previous Topic: Online Redo Log, changes in
Next Topic: how to drop and recreate UNDO tablespace?
Goto Forum:
  


Current Time: Fri Sep 27 12:22:00 CDT 2024