0% found this document useful (0 votes)
3 views3 pages

Oracle Tablespace Interview QA

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Oracle Tablespace Interview QA

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Oracle Tablespace Interview Questions & Answers

1. What is a Tablespace in Oracle?

A tablespace is a logical storage unit in an Oracle database that contains one or more data files. It acts as a bridge

between the physical storage and logical database structure.

2. What are the types of Tablespaces in Oracle?

Common types of tablespaces include SYSTEM, SYSAUX, UNDO, TEMP, USERS, and EXAMPLE.

3. What is the purpose of the SYSTEM tablespace?

The SYSTEM tablespace stores the database's data dictionary, metadata, and critical information required for startup

and management.

4. What is the difference between SYSTEM and SYSAUX tablespaces?

SYSTEM is mandatory and stores core database components, while SYSAUX stores metadata for additional Oracle

features like AWR.

5. What is the purpose of the TEMP tablespace?

TEMP tablespace stores temporary data during sorting, joins, and other large data processing tasks.

6. What is the purpose of the UNDO tablespace?

UNDO tablespace stores undo records for transaction rollback, read consistency, and flashback queries.
Oracle Tablespace Interview Questions & Answers

7. How do you create a tablespace in Oracle?

Example command:

CREATE TABLESPACE my_data DATAFILE '/u01/app/oracle/oradata/my_data01.dbf' SIZE 500M AUTOEXTEND ON;

8. How do you resize a tablespace in Oracle?

Example command:

ALTER DATABASE DATAFILE '/u01/app/oracle/oradata/my_data01.dbf' RESIZE 1G;

9. How do you add a datafile to an existing tablespace?

Example command:

ALTER TABLESPACE my_data ADD DATAFILE '/u01/app/oracle/oradata/my_data02.dbf' SIZE 1G;

10. How do you drop a tablespace?

Example command:

DROP TABLESPACE my_data INCLUDING CONTENTS AND DATAFILES;

11. How do you check the size of a tablespace?

Example command:

SELECT TABLESPACE_NAME, FILE_NAME, BYTES/1024/1024 AS SIZE_MB FROM DBA_DATA_FILES;

12. How do you monitor free space in tablespaces?


Oracle Tablespace Interview Questions & Answers

Example command:

SELECT TABLESPACE_NAME, BYTES/1024/1024 AS FREE_SPACE_MB FROM DBA_FREE_SPACE;

13. What happens if the UNDO tablespace is full?

If the UNDO tablespace is full, Oracle may overwrite older undo data, potentially affecting rollback and flashback

operations.

14. Can you create multiple UNDO tablespaces?

Yes, multiple UNDO tablespaces can be created, but only one can be active at a time in a database.

15. What is the purpose of the EXAMPLE tablespace?

The EXAMPLE tablespace contains Oracle-provided sample schemas like HR, SCOTT, and OE for learning and

practice.

You might also like