Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Is there a way to get byte counts of actual data stored in a table?
"g vose" <g_vose_at_yahoo.com> a écrit dans le message news: 985a9e76.0107161612.466fbf10_at_posting.google.com...
> I am looking for a way to see the actual size of a table in bytes > used. > I can see the size being used for the DataBase and I can see the > allocated space for the table but I can not tell the actual space > being used by a table. > Does anyone have any suggestions?
Have a look at dbms_space.unused_space procedure:
procedure unused_space(segment_owner IN varchar2, segment_name IN varchar2, segment_type IN varchar2, total_blocks OUT number, total_bytes OUT number, unused_blocks OUT number, unused_bytes OUT number, last_used_extent_file_id OUT number, last_used_extent_block_id OUT number, last_used_block OUT number, partition_name IN varchar2 DEFAULT NULL );
total_bytes - unused_bytes gives you the number of bytes used in the table.
-- Hope this helps MichelReceived on Tue Jul 17 2001 - 02:05:15 CDT
![]() |
![]() |