文档介绍:Storage Structure and Relationships
Objectives
pleting this lesson, you should be able to do the following:
Describe the logical structure of the database
List the segment types and their uses
List the keywords that control block space usage
Obtain storage structure information
Storage and Relationship Structure
Database
PROD
DISK1/
DISK2/
DISK3/
DISK1/
DISK1/
.Table
DataSeg
.Index
IndexSeg
RBSeg
S_DEPT
DataSeg
S_EMP
DataSeg
Temp
TempSeg
1 2 1 2 1 2 1 1 2 2 1 FREE 1 1 2 2 1
EXTENTS
S_DEPT(cont'd)
DataSeg
S_EMPFIRST_NAME
Index
IndexSeg
Oracle DATA BLOCKS
RBS1(cont'd)
RBSeg
RBS2(cont'd)
RBSeg
RBS1
RBSeg
RBS2
RBSeg
SEGMENTS
SYSTEM
USER_DATA
RBS
TEMP
TABLESPACES
DATA FILES
Types of Segments
Table
Cluster
Table partition
Index
Types of Segments
anizedtable
Index partition
Undosegment
Temporarysegment
Types of Segments
LOBsegment
Bootstrapsegment
Nested table
Storage Clause Precedence
Oracle default
Tablespace
Segment
Extent Allocation and Deallocation
An extent is a chunk of space used by a segment within a tablespace.
An extent is allocated when the segment is:
Created
Extended
Altered
An extent is deallocated when the segment is:
Dropped
Altered
Truncated
Used and Free Extents
Data file
Free extent
Used extent
File header