How To View the Data Files in the Current Database?
Submitted by: AdministratorIf you want to get a list of all tablespaces used in the current database instance, you can use the DBA_TABLESPACES view as shown in the following SQL script example:
SQL> connect SYSTEM/globalguideline
Connected.
SQL> col tablespace_name format a16;
SQL> col file_name format a36;
SQL> SELECT TABLESPACE_NAME, FILE_NAME, BYTES
2 FROM DBA_DATA_FILES;
<pre>TABLESPACE_NAME FILE_NAME BYTES
--------------- ------------------------------- ---------
USERS ORACLEXEORADATAXEUSERS.DBF 104857600
SYSAUX ORACLEXEORADATAXESYSAUX.DBF 461373440
UNDO ORACLEXEORADATAXEUNDO.DBF 94371840
SYSTEM ORACLEXEORADATAXESYSTEM.DBF 356515840</pre>
Submitted by: Administrator
SQL> connect SYSTEM/globalguideline
Connected.
SQL> col tablespace_name format a16;
SQL> col file_name format a36;
SQL> SELECT TABLESPACE_NAME, FILE_NAME, BYTES
2 FROM DBA_DATA_FILES;
<pre>TABLESPACE_NAME FILE_NAME BYTES
--------------- ------------------------------- ---------
USERS ORACLEXEORADATAXEUSERS.DBF 104857600
SYSAUX ORACLEXEORADATAXESYSAUX.DBF 461373440
UNDO ORACLEXEORADATAXEUNDO.DBF 94371840
SYSTEM ORACLEXEORADATAXESYSTEM.DBF 356515840</pre>
Submitted by: Administrator
Read Online Oracle Database Job Interview Questions And Answers
Top Oracle Database Questions
☺ | How To Write Date and Time Interval Literals in Oracle? |
☺ | How To Recover a Dropped Table in Oracle? |
☺ | How Oracle Handles Dead Locks? |
☺ | What Is the Relation of a User Account and a Schema? |
☺ | What Is Input Buffer in SQL*Plus? |
Top DB Oracle Categories
☺ | Oracle PL-SQL Interview Questions. |
☺ | Oracle DBA Interview Questions. |
☺ | Oracle D2K Interview Questions. |
☺ | OCI Interview Questions. |
☺ | Oracle RMAN Interview Questions. |