Lokesh Darapureddy: CDB and PDB in Oracle Database            
       
                                                               

Tuesday, 13 February 2024

                               
                                                                   

                            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.

FeatureCDB (Container Database)PDB (Pluggable Database)
ScopeMaster database housing multiple PDBsSelf-contained database instance within a CDB
Data & SchemaShared resources like control files, redo logs, common usersSpecific user data, schemas, and objects
ManagementRequires administrator access for overall managementLimited self-administration within the CDB
Resource UsageShares resources from the CDBHas its own data files
IsolationNo isolationIsolated from other PDBs within the CDB
ScalabilityEasily add/remove PDBs within the CDBNot directly scalable (depends on CDB resources)
BenefitsResource efficiency, scalability, isolation, simplified administrationIsolation, security, dedicated resources within the CDB
Use CasesConsolidating multiple databases, shared infrastructure, multi-tenant environmentsIndividual 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