Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: find allocated and used space for a table
Hi,
The results from previous mail's query would differ( by 1) from following....
SELECT SUM(blocks) "Allocated Blocks"
FROM dba_extents
WHERE segment_name = '&&table_name'
/
The reason for this is that one block is reserved for the segment header. DBA_SEGMENTS.BLOCKS holds the total number of blocks allocated to the table. While DBA_TABLES.BLOCKS holds the total number of blocks allocated for data.
And yes, the DBMS_SPACE package would return same values as that from DBA_TABLES.
HTH more..
Rajesh
-----Original Message-----
Sent: Monday, June 11, 2001 11:56 AM
To: 'ORACLE-L_at_fatcity.com'
If you can afford to analyze the Table(for latest statistics) then ....
hth,
Rajesh
-----Original Message-----
Sent: Monday, June 11, 2001 11:56 AM
To: Multiple recipients of list ORACLE-L
Hi,
How to find allocated and used space for a table?
I required it urgently
Regds
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Jun 11 2001 - 04:16:08 CDT
![]() |
![]() |