Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

FIND TABLESPACES IN DATABASE

-----------------------------
select name from v$tablespace;
select tablespace_name from dba_tablespaces;

QUERY TO FIND DATAFILES ASSOCIATED WITH A TABLESPACE


-----------------------------------------------------
SQL> select tablespace_name, file_name, bytes/1024/1024 from dba_data_files where
tablespace_name='&tablespace_name';
SQL> select file_name, bytes/1024/1024 from dba_temp_files;

You might also like