Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> how to query table size from rowid?
Do any of you have a query which tells me the true size of a table from rowid?
I'm looking for something like:
SELECT SOME_FUNCTION(ROWID) FROM EMP;
I know if I "analyze" the table,
I can get the true size from user_tables.
a demo:
oooooooooooooooooooooooooooooooo
Table analyzed.
SQL> select NUM_ROWS,BLOCKS,EMPTY_BLOCKS,AVG_ROW_LEN from user_tables SQL> where TABLE_NAME='WWOPS_UNSCH';
NUM_ROWS BLOCKS EMPTY_BLOCKS AVG_ROW_LEN
---------- ---------- ------------ -----------
46 1 3 47
SQL>
oooooooooooooooooooooooooooooooo
-Dan
![]() |
![]() |