- 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.
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.
DBA_ : All objects in the database.
|
--ALL_ : Objects accessible by the current user, including those owned by the current user.
|
--USER_ : Objects owned by the current user.
With Oracle 12c, an extra layer is added to the hierarchy.
CDB_ : All objects in all containers (root and all PDBs).
|
--DBA_ : All objects in the current container (root or PDB).
|
--ALL_ : Objects accessible by the current user in the current container (root or PDB), including those owned by the current user.
|
--USER_ : Objects owned by the current user in the current container (root or PDB).
No comments:
Post a Comment