The Multitenant Architecture

The multitenant architecture enables an Oracle database to function as a multitenant container database (CDB) that includes zero, one, or many customer-created pluggable databases (PDBs). A PDB is a portable collection of schemas, schema objects, and nonschema objects that appears to an Oracle Net client as a non-CDB.

Multitenant : Overview of Container Databases (CDB) and Pluggable Databases (PDB)

Oracle 12c Release 1 (12.1) introduced the Multitenant option. This article provides a basic overview of the multitenant option, with links to more detailed articles on the functionality.

The multitenant option represents one of the biggest architectural changes in the history of the Oracle database. The option introduced the concepts of the Container Database (CDB) and Pluggable Database (PDB).

  • Container Database (CDB) : On the surface this seems very similar to a conventional Oracle database, as it contains most of the working parts you will be already familiar with (controlfiles, datafiles, undo, tempfiles, redo logs etc.). It also houses the data dictionary for those objects that are owned by the root container and those that are visible to all PDBs.
  • Pluggable Database (PDB) : Since the CDB contains most of the working parts for the database, the PDB only needs to contain information specific to itself. It does not need to worry about controlfiles, redo logs and undo etc. Instead it is just made up of datafiles and tempfiles to handle it's own objects. This includes it's own data dictionary, containing information about only those objects that are specific to the PDB.

Multitenant Overview

This split of the data dictionary between common objects, in the root container, and PDB-specific objects, in the PDB's data dictionary, is very important, because this separation is what gives the multitenant option its flexibility. From the perspective of the PDB, the data dictionary is the union of the root and PDB data dictionaries, so internally the PDB feels very much like a normal Oracle database. For example, the and views within the PDB appears the same as any non-CDB database.

Creating Pluggable Databases (PDBs)

Since the bulk of the working parts are already present in the root container, creating a new PDB is a comparatively quick and simple task. When creating a completely new PDP, the PDB is created as a copy of a seed PDB, so it only takes as long as the files take to copy.

Multitenant Create From Seed

Instead of creating a new PDB from the seed, you can clone an existing PDB.

Multitenant Clone

It is also possible to create clones in a remote CDB.

Multitenant Remote Clone

A more detailed description of creating and cloning PDBs can be found here.

Unpluging and Plugging in Pluggable Databases (PDBs)

One of the most powerful features of the multitenant option is the ability to unplug a PDB from a CDB and plug it back into another CDB.

Multitenant Unplug Plug

Not only does this allow databases to be moved easily, but it also paves the way for quick patching and upgrading to future versions. A PDB can be unplugged from a 12.1 CBD and plugged into a 12.2 CDB, effectively upgrading it in seconds. The unplug/plugin mechanism is described in more details here.

Conversion of a non-CDB database to a pluggable database involves getting a description the non-CDB database and using this to plug it into a CDB as a new PDB. This method is described here.

Views

The introduction of the multitenant option brings with it an extra layer of data dictionary views, allowing reporting across the root container and the pluggable databases (PDBs). Ignoring editions for the moment, prior releases had the following hierarchy.

要查看或添加评论,请登录

Syed Imran Q.的更多文章

  • Harnessing Digital Transformation: Charting the Future of Enterprise IT

    Harnessing Digital Transformation: Charting the Future of Enterprise IT

    Harnessing Digital Transformation: Redefining Enterprise IT for a Future-Ready Organization In today’s dynamic digital…

    7 条评论
  • The myth of Cloud vs on On-Premises Solution

    The myth of Cloud vs on On-Premises Solution

    Companies are often confused to adopt the cloud solution either because well confused and misguided management or the…

  • Comparing Data Warehouse Designs

    Comparing Data Warehouse Designs

    compare the traditional data warehousing database schemas. Normalized data is not often used today for data warehousing.

  • NoSQL, No Problem: An Intro to NoSQL Databases

    NoSQL, No Problem: An Intro to NoSQL Databases

    Unraveling NoSQL and trying to explain what it is and whether you'd be interested in it or not is difficult. This…

  • Oracle 12c Multitenant Architecture

    Oracle 12c Multitenant Architecture

    By: Juan Carlos Olamendy Turruellas In this article, I want to talk about the architecture of the last version of…

  • Oracle Performance Tunning

    Oracle Performance Tunning

    Tuning individual Oracle SQL statements The acronym SQL stands for Structured Query Language. SQL is an industry…

    1 条评论
  • Change Management: The Systems and Tools for Managing Change

    Change Management: The Systems and Tools for Managing Change

    Change Management: The Systems and Tools for Managing Change Scope of change management This tutorial provides a…

  • On cloud nine

    On cloud nine

    Neither of these explanations holds water. To begin with, both the cloud classifications and the Buddhist stages to…