CDB and PDB in Oracle Database
CDB and PDB in Oracle Database
In Oracle databases introduced since version 12c, the multitenant architecture introduced two crucial concepts: Container Database (CDB) and Pluggable Database (PDB). Here's a breakdown of each:
Container Database (CDB):
- Essentially, the "master" database that houses multiple PDBs.
- Contains critical shared components like control files, redo logs, and common users.
- Can exist without any PDBs but typically runs them.
- Offers consolidated resource management and efficient usage.
Pluggable Database (PDB):
- An independent, self-contained database instance "plugged" into a CDB.
- Contains user data, schemas, and objects specific to its purpose.
- Functions like a standalone database to applications but shares resources from the CDB.
- Offers isolation, scalability, and resource partitioning within the CDB.
Feature | CDB (Container Database) | PDB (Pluggable Database) |
---|---|---|
Scope | Master database housing multiple PDBs | Self-contained database instance within a CDB |
Data & Schema | Shared resources like control files, redo logs, common users | Specific user data, schemas, and objects |
Management | Requires administrator access for overall management | Limited self-administration within the CDB |
Resource Usage | Shares resources from the CDB | Has its own data files |
Isolation | No isolation | Isolated from other PDBs within the CDB |
Scalability | Easily add/remove PDBs within the CDB | Not directly scalable (depends on CDB resources) |
Benefits | Resource efficiency, scalability, isolation, simplified administration | Isolation, security, dedicated resources within the CDB |
Use Cases | Consolidating multiple databases, shared infrastructure, multi-tenant environments | Individual applications, development/testing environments, database partitioning |
Key Differences:
- Scope: CDB manages multiple PDBs, while PDBs focus on specific data and schema.
- Shared resources: CDB provides control files, redo logs, etc., while PDBs have their own data files.
- Management: CDB requires administrator access for overall management, while PDBs offer limited self-administration within the CDB.
Think of it this way:
- Imagine a CDB as an apartment building with shared utilities and security.
- Individual apartments within the building are like PDBs, housing specific tenants with their own belongings.
Benefits of using CDBs and PDBs:
- Resource efficiency: Consolidates resources across multiple databases, reducing hardware and software overhead.
- Scalability: Easily add or remove PDBs within the CDB based on needs.
- Isolation: Data and activities in one PDB are independent of others, enhancing security and manageability.
- Simplified administration: Manage multiple databases using centralized CDB administration tools.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home