Note: Because LOB fields have separate LOB segment to store, it is not possible to query only dba_segments for tables with LOB fields.
The following script comes from:
How to Compute the Size of a Table containing Outline clobs and blobs[article ID 118531.1]
Modified: Changed to NVL (SUM (s.bytes), 0)
sql> col "Total TABLE SIZE" format 99999999999999
---Note: The following SQL can be executed directly. To make it easier to copy the script, it does not post the SQL statement's log, but instead puts the SQL statement at execution time. select (SELECT NVL (SUM (s.bytes), 0) &NBSP ; , &NB Sp / -- The Table Segment size from dba_segments s WHERE s.owner = UPPER (' LC0019999 ') and (S . Segment_name = UPPER (' Zwpzk ')) + (SELECT NVL (SUM (s.bytes), 0) , &N Bsp , &NB Sp -the Lob Segment size from Dba_segments S, DBa_lobs l WHERE s.owner = UPPER (' LC0019999 ') and (l.segment_name = S.segment_name and L.ta Ble_name = UPPER (' Zwpzk ') and L.owner = UPPER (' LC0019999 ')) + (SELECT NVL (SUM (s.bytes), 0) &NBSP ; , &NB Sp , &NB Sp --the Lob Index size from Dba_segments S, dba_indexes i wher E S.owner = UPPER (' LC0019999 ') and (i.index_name = s.segment_name and I.table_name = UPPER (' Zwpz K ') and Index_type = ' LOB ' and I.owner = UPPER (' LC0019999 ')) "Total TABLE SIZE" from DUAL; Total TABLE SIZE----------------3571869286sql> select 3571869286/1024/1024/1024 from DUAL;35718692864/1024/1024/1 024-------------------------- 3.3265625