DBA Trainer Oracle DBA - CDB PDB Architecture www.dbatrainer.
com
CDB PDB Architecture in Oracle 12c
New Multitenant Architecture
• New 12c database consolidates database together is a multitenant container
database or CDB, and a database consolidated within a CDB is called pluggable database
or PDB.
• Operates multiple databases in a centrally managed platform to lower costs:
- Less instance overhead
- Less storage cost
• Reduces DBA resources costs
- Fast and easy provisioning
- Time saving for patching and upgrade
DBA Trainer - Online Oracle DBA Training Institute Page 1
DBA Trainer Oracle DBA - CDB PDB Architecture www.dbatrainer.com
Multitenant Container Database Architecture..
• Graphics in the last slide shows a CDB with four containers :
- ROOT
- SEED
- Two PDBs
• At the physical level, the CDB has a database instance and database files, just as a non –
CDB does.
- The redo log files are common for the whole CDB.
- The control files are common for the whole CDB. The control files are updated to reflect
any additional tablespace and data files of plugged PDBs.
DBA Trainer - Online Oracle DBA Training Institute Page 2
DBA Trainer Oracle DBA - CDB PDB Architecture www.dbatrainer.com
- The undo tablespace is common for all containers in 12.1 , From 12.2 you can create local
undo tablespace for PDBs.
A temporary tablespace common to all containers is required. But each PDB can hold its
own temporary tablespace for its own local users.
Each container has its own data dictionary stored in its proper SYSTEM tablespace,
containing its own metadata, and a SYSAUX tablespace.
The PDBs can create tablespaces within the PDB according to application needs
Containers
In Oracle 12c , Two Types of containers
Root container
- The first containers created at CDB Creation
- Mandatory
- Oracle system-supplied common objects and metadata
- Oracle system-supplied common users and roles
Pluggable database containers
- A containers for an application:
- Tablespaces (permanent and temporary)
- Schemas / Objects / Privileges
- Created / cloned / unplugged / plugged
- Particular seed PDB
- PDB$SEED provides fast provisioning of a new PDB
- Limits of 253 PDBs in a CDB including the seed in 12.1
Data Dictionary Views
• CDB_pdbs : All PDBS within CDB
• CDB_tablespaces : All tablespaces within CDB
DBA Trainer - Online Oracle DBA Training Institute Page 3
DBA Trainer Oracle DBA - CDB PDB Architecture www.dbatrainer.com
• CDB_users : All users within CDB ( common and local )
• SQL>select view_name FROM dba_views WHERE view_name like ‘CDB%’;
How to Create CDB Database:
You can create CDB Database using DBCA.
DBA Trainer - Online Oracle DBA Training Institute Page 4