Basic Oracle Concepts and Programming Question:

Download Job Interview Questions and Answers PDF

How To View the Tablespaces in the Current Database?

Oracle Database Interview Question
Oracle Database Interview Question

Answer:

If 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> SELECT TABLESPACE_NAME, STATUS, CONTENTS
2 FROM USER_TABLESPACES;
<pre>TABLESPACE_NAME STATUS CONTENTS
------------------------------ --------- ---------
SYSTEM ONLINE PERMANENT
UNDO ONLINE UNDO
SYSAUX ONLINE PERMANENT
TEMP ONLINE TEMPORARY
USERS ONLINE PERMANENT</pre>

Download Oracle Database Interview Questions And Answers PDF

Previous QuestionNext Question
How a Database Is Related to Tablespaces?What Are the Predefined Tablespaces in a Database?