Contents
What is container database and pluggable database?
Container Database (CDB): This is the database that is created when that database supports Oracle’s multitenant option. It’s also called the ROOT container and is the CDB$ROOT within the data dictionary views of the CDB. Pluggable Database (PDB): These are the databases that are stored within the CDB.
What are the benefits of using pluggable database?
There are a number of benefits to pluggable databases:
- Database consolidation.
- Cost reduction.
- Easier management and monitoring of the physical database.
- Secure separation of administrative duties.
- Separation of data and code.
- Easier and more rapid movement of data and code.
- Ease of performance tuning.
How do I restart a pluggable database?
Step-By-Step
- Shutdown a container database (CDB) and all pluggable databases (PDBs) sqlplus ‘/ as sysdba’
- Startup the CDB. sqlplus ‘/ as sysdba’
- Check the status of the PDBs. sqlplus ‘/ as sysdba’
- Start a PDB. sqlplus ‘/ as sysbda’
- Stop a PDB. sqlplus ‘/ as sysdba’
- Using a trigger to open all pluggable databases.
Why do you need a pluggable database in Oracle?
Oracle pluggable databases ease the movement into database consolidation because the data dictionary information ( obj$, tab$ and source$) are independent of any container database. All PDB’s within the container share a common LGWR process.
What’s the difference between a CDB and a pluggable database?
The only difference to the installation process is to choose whether to create the Oracle RAC database as a CDB or non-CDB. A pluggable database (PDB) is a portable collection of schemas, schema objects, and nonschema objects that appears to an Oracle Net client as a non-CDB. PDBs can be plugged into CDBs.
Can a Oracle database be a CDB or multitenant?
Starting in Oracle Database 12 c Release 1 (12.1), you must create a database as either a multitenant container database (CDB) or as an Oracle database that is non-CDB. This also applies to Oracle RAC databases. The only difference to the installation process is to choose whether to create the Oracle RAC database as a CDB or non-CDB.
Can a pluggable database be moved from one instance to another?
This container can then be populated with sub-sets of a schema and then be can be un-plugged from one instance and re-added to another instance quickly. Because the table definitions, index definitions, constraints and data all reside within the PDB, they can be easily copied and moved between instances and servers.