Managing Instances, Datafiles & Tablespace
Managing Instances, Datafiles & Tablespace
md 2024-02-16
A table is a fundamental database object that organizes data into structured rows and columns. Each row
represents a single record, while each column represents a specific attribute of that record.
Logical Structure
3. Tablespace
Overview
A tablespace is a logical storage container in Oracle Database that groups related datafiles together. It
provides a way to manage and allocate storage space for database objects.
4. Purpose of Tablespace
Why Introduced?
Efficient storage management: Allows for easier management and allocation of storage space.
Logical organization: Provides a logical grouping of database objects for easier management and
administration.
Performance optimization: Enables optimization of storage allocation and performance tuning at the
tablespace level.
Database
└── DB
├── Tablespaces
│ ├── Segments
│ │ ├── Tables
│ │ │ ├── Data Rows
1/5
Managing Instances, Datafiles & Tablespace.md 2024-02-16
│ │ │ └── Indexes
│ │ ├── Views
│ │ │ └── SQL Query Definitions
│ │ └── Indexes
│ │ └── Index Entries
│ └── ...
├── Extents
│ │ │ │ ├── Database Blocks
│ │ │ │ │ └── OS Blocks
│ │ │ │ └── ...
│ │ └── ...
│ └── ...
└── ...
Explanation
6. Physical Structure
Components of Physical Structure
Datafiles: Physical files on the operating system that store database objects.
Tablespaces: Logical containers that group related datafiles.
Control Files: Binary files that manage database metadata and structure.
Redo Log Files: Files that record changes made to the database for recovery purposes.
Archived Redo Log Files: Copies of redo log files that have been archived.
2/5
Managing Instances, Datafiles & Tablespace.md 2024-02-16
3. Types of Tablespaces
You can find which datafiles are associated with each tablespace using the DBA_DATA_FILES
view.
You can create a new tablespace using the CREATE TABLESPACE command.
New tablespaces are created to manage database storage more efficiently, isolate data, or meet
specific performance requirements.
Unlimited size in Oracle tablespaces: Oracle allows tablespaces to have unlimited size by specifying the
MAXSIZE parameter as UNLIMITED.
Datafile sizes can be extended by adding new datafiles to tablespaces or resizing existing ones.
Extent management controls how space within a tablespace is allocated for segments.
Local extent management (LMT) tracks extents within the tablespace itself, while dictionary
extent management (DMT) uses data dictionary tables to manage extents.
Renaming a tablespace:
4/5
Managing Instances, Datafiles & Tablespace.md 2024-02-16
Conclusion
Understanding how to manage instances, datafiles, and tablespaces is essential for efficient database
administration.
5/5