Oracle DB - Day 12
Oracle DB - Day 12
The Oracle Multitenant Architecture, introduced in Oracle Database 12c, is a significant innovation
that allows multiple databases (Pluggable Databases or PDBs) to run within a single Container
Database (CDB). This architecture improves resource utilization, simplifies database management,
and supports database consolidation.
• A PDB is a portable collection of schemas, schema objects, and non-schema objects that
appears to an application as a standalone database.
• Each PDB can have its own users, roles, and data while sharing the CDB's resources.
1. Consolidation:
o Host multiple PDBs within a single CDB to reduce hardware and maintenance costs.
2. Resource Sharing:
3. Ease of Management:
4. Rapid Provisioning:
5. Isolation:
o Each PDB is independent, with its own security and administrative boundaries.
6. Portability:
1
3. Creating and Managing PDBs
1. Using PDB$SEED:
2. Using Cloning:
Managing PDBs
1. Viewing PDBs:
3. Closing a PDB:
4. Dropping a PDB:
o Drop a PDB:
2
4. Plugging and Unplugging PDBs
Unplugging a PDB
Plugging in a PDB
BEGIN
DBMS_PDB.CHECK_PLUG_COMPATIBILITY(
pdb_descr_file => '/path/to/unplugged_pdb.xml',
pdb_name => 'my_pdb');
END;
4. Open the PDB:
In a Modi airline ticket booking system, different PDBs can be used for various purposes:
3
o Provides isolation and quick recovery in case of failure.
3. Analytics PDB:
o Stores historical booking data for analytical purposes, keeping it separate from
transactional databases to reduce load.
4. Regional PDBs:
o Separate PDBs for different regions or branches to handle localized booking systems,
ensuring better resource utilization.
By leveraging Oracle Multitenant Architecture, the airline system can maintain better resource
allocation, faster provisioning, and improved disaster recovery mechanisms.