Join between v$database and dba_data_files or dba_tablespaces
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