Database Administration (MOSC)

MOSC Banner

11gR2 : All objects belong to a specific datafile

edited Oct 3, 2013 12:12AM in Database Administration (MOSC) 3 commentsAnswered ✓
Hi ,

 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.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center