Slides (Lec 6)
Slides (Lec 6)
Storage Structures
Logical Structures
Database: This is the top-level logical structure in Oracle.
It contains all the database objects such as tables,
indexes, and views.
Tablespace: A tablespace is a logical storage unit within
an Oracle database. It is used to group related logical
structures together. A database can have multiple
tablespaces. It contains segments which store database
objects like tables.
Segment: A segment is a set of extents allocated for a
specific type of data structure, such as a table, index, or
partition. Each segment is contained within a tablespace.
Extent: An extent is a specific number of contiguous data
blocks in a database, allocated for storing a specific type
of information. Extents are allocated as needed when the
data in a segment grows.
Oracle Data Block: The smallest unit of storage in the
Oracle database, analogous to a block in the file system.
It is the level at which Oracle stores data.
Physical Structures
OS File (Operating System File): The physical files on
the storage system where the data is stored. Each
tablespace is mapped to one or more OS files.
OS Block (Operating System Block): The smallest unit
of data that the operating system can manage. Oracle
data blocks are mapped to OS blocks, though an Oracle
data block can span multiple OS blocks.
Relationships
Tablespace to OS File: A tablespace is logically
represented by one or more OS files. This means the
tablespace's data is stored in these files at the OS level.
Oracle Data Block to OS Block: Each Oracle data block
is physically stored in one or more OS blocks. The OS
block size is usually fixed, but Oracle data blocks can be
configured to be a multiple of OS blocks.
How Table Data Is Stored