11gR2 : All objects belong to a specific datafile
I would like to display all objects belong to a specific datafile but my query is too slow , why ?
select
a.segment_name, a.file_id, b.file_name Datafile_name from dba_extents a, dba_data_files b
where a.file_id = b.file_id
and a.tablespace_name = b.tablespace_name
and b.file_name = '&datafile_name_with_path';
Best regards.
GD.