Site icon Database Tutorials

Multitenant Database in Oracle

What is a Multitenant Database?

As of version 12.1, you can design your databases as a multitenant database (CDB). It consists of a container database, 1 root container, one seed pluggable database (seed PDB), and one or more users’ pluggable databases (PDB).

PDB acts as a database that is logically reserved for a user or application. If necessary, non-container databases can be configured in the old method.

The following image shows the container database structure.

Switch Pluggable Database

When working in container databases, you can switch between databases with the command alter session set container.

Show Current Container

You can find out the current container with the following commands.

While you are in root container, you can query all pluggable databases and containers as follows.

Exit mobile version