Block (Oracle Block) : Recursive SQL
Block (Oracle Block) : Recursive SQL
Extent
A collection of Blocks
Segment
A collection of Extents
Tablespace
A collection of Segments
Extent Management
It decides how the extents are managed
We have 2 options for managing the extents
2 Options
Locally Managed Tablespace (LMT)
Dictionary Managed Tablespace (DMT)
Step1: It checks the information about the free extents in UET$ and FET$ data
dictionary tables
Step2: To get the data from the Oracle Data Dictionary Tables, Oracle will in turn write
queries. This is known as RECURSIVE SQL
Step3: Changes are written to the Redo Log Buffer finally to the Redo Log Files
(Means here UNDO & REDO is getting generated)
Example: Here REDO is INSERT Operation, than UNDO will be DELETE operation
Data File
It stores committed data
Each data file is identified by FILE ID
Each data file will have one header
The header stores the data file id, Bit maps
Bit maps
Each bitmap represents a block or a set of blocks
Example:
If bitmap=0 then space is available in that block
If bitmap=1 then space is not available in that block
Step1: It checks the information about the free extents in data file headers in the form
of a bitmaps
Segment types
Table
Index
Undo
Temporary
Table Segment
In this the data will be stored in the columns and rows
Index Segment
It stores the information about the Indexes
Index
It is a pointer which points to the physical address of a row in a table
Undo Segment
It store pre-image data
Example:
Temporary Segment
If PGA is not sufficient for sorting then Server Process uses temporary segment
for sorting operations
Tablespace (Logically)
It logically contains Segments
Segments contains Extents
Extents contains oracle blocks
Tablespace (Physically)
Contains data file
Tablespace types
System Tablespace
Non System Tablespace
Temporary Tablespace
Undo Tablespace
System Tablespace
It stores Meta data
Meta data
Data about data
Example:
How many sessions are running?
Which top5 statements are consuming more resource?
Undo Tablespace
Only one undo table space should be active at a time
It stores Undo Segment
Temporary Tablespace
It stores temporary segments
Application Tablespaces
Defined & designed by the user according to his requirement
Tablespace Management
AUTOEXTEND ON