Types of Segments in Oracle Database Explained
Q: What are the different types of Segments in Oracle Database?
- Oracle
- Mid level question
Explore all the latest Oracle interview questions and answers
ExploreMost Recent & up-to date
100% Actual interview focused
Create Oracle interview for FREE!
In Oracle Database, there are four different types of segments.
1. Data Segment: This is the primary segment which contains all the information related to a particular table. It stores the actual data of the table in the form of rows and columns. For example, a table called ‘Employee’ will have all the related information like employee name, address, contact etc. stored in it.
2. Index Segment: Index segments are used to provide faster access to data. It stores the values of the indexed column with the corresponding location of the data in the data segment. This helps in faster retrieval of data from the database.
3. Rollback Segment: This segment is used for transaction management in Oracle Database. It stores information about all the transactions that are being processed and the changes that are being made in the database. This helps in restoring the database to a previous state in case of errors or data loss.
4. Temporary Segment: Temporary segments are used for storing data temporarily. These segments are used for computing data which are not required to be stored permanently in the database. This helps in freeing up disk space and improving the performance of the database.
In short, the four different types of segments in Oracle Database are Data Segment, Index Segment, Rollback Segment and Temporary Segment.
1. Data Segment: This is the primary segment which contains all the information related to a particular table. It stores the actual data of the table in the form of rows and columns. For example, a table called ‘Employee’ will have all the related information like employee name, address, contact etc. stored in it.
2. Index Segment: Index segments are used to provide faster access to data. It stores the values of the indexed column with the corresponding location of the data in the data segment. This helps in faster retrieval of data from the database.
3. Rollback Segment: This segment is used for transaction management in Oracle Database. It stores information about all the transactions that are being processed and the changes that are being made in the database. This helps in restoring the database to a previous state in case of errors or data loss.
4. Temporary Segment: Temporary segments are used for storing data temporarily. These segments are used for computing data which are not required to be stored permanently in the database. This helps in freeing up disk space and improving the performance of the database.
In short, the four different types of segments in Oracle Database are Data Segment, Index Segment, Rollback Segment and Temporary Segment.


