I am using below query to fetch the memory occupied by table.
SELECT SUM(bytes), SUM(bytes)/1024/1024 MB
FROM dba_extents
WHERE owner = :Owner
AND segment_name = :table_name;
It took 986 seconds (16 minutes) to print the size of 2 MB file.
What's wrong with this query?
Is there any better query which provides same data very fast?