Database Administration (MOSC)

MOSC Banner

Join between v$database and dba_data_files or dba_tablespaces

edited June 2014 in Database Administration (MOSC) 6 commentsAnswered ✓

Hi,

I am writing a sql query that draws data from dba_data_files and dba_tablespaces.

However I am also looking to pick up my database name from v$database - I basically want the explicit database that the tablespaces or datafiles belong to

However there does not appear to be a suitable join between v$database and dba_data_files or dba_tablespaces.

any suggestions ?

Thanks,

Jim

Howdy, Stranger!

Log In

To view full details, sign in.

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