How can we find size of a table having blob columns?

Showing Answers 1 - 3 of 3 Answers

chetan

  • Jun 30th, 2006
 

Using Dump we can find size of columns

  Was this answer useful?  Yes

DeepaRaja

  • May 22nd, 2008
 

Firstly we have list all the segments associated with the table with lob columns. We could do this using the following query.

For example let us assume that we have table with called media with a lob column. The following query would list all segments for the media table. There would be one lobsegment and a lob index for each lob column in the table.

SELECT segment_name, segment_type, bytes/1024/1024 size_in_MB

FROM user_segments

WHERE (segment_name = 'MEDIA'

OR segment_name in (

SELECT segment_name

FROM user_lobs

WHERE table_name = 'MEDIA'

UNION

SELECT index_name

FROM user_lobs

WHERE table_name = 'MEDIA'

) )


In order to find the total size of the table the following would do the job


SELECT sum( bytes)/1024/1024 size_in_MB

FROM user_segments

WHERE (segment_name = 'MEDIA'

OR segment_name in (

SELECT segment_name

FROM user_lobs

WHERE table_name = 'MEDIA'

UNION

SELECT index_name

FROM user_lobs

WHERE table_name = 'MEDIA'

) )


Hope this helps

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions