To me, one of the biggest announcements this week was not that Larry finally learnt how to use a clicker, but the disclosure of some of the new features of the next version of the Oracle Database. This version is also the "first real multi-tenant database". So what does this mean?
In the current version of the database the core Oracle data dictionary is mixed up with the tables, packages etc you created yourself. All information is stored in the same obj$, tab$ and source$ tables. In 12c there is an architectural separation between the core Oracle system and your own application. The core Oracle data dictionary is called the Container Database (CDB). The part of the database that contains your own code is called the Pluggable Database (PDB). This PDB also contains its own datadictionary with it own obj$, tab$ etc tables. So it is a sort of hierarchy: objects are first located in the PDB, when they're not found there, information from the CDB is retrieved.
The best thing is, you can plugin many PDB's into one CDB. And so creating a true separation of data and sources between two databases that are plugged in into one CDB. It is obvious that both the CDB and the PDB have a much smaller footprint than a database containing both. So upgrading the Oracle software will be done on the CDB only and will be much faster. Cloning a PDB - containing your application - can be done way faster because you don't need to clone all the core Oracle stuff
Implementation under the covers is done using transportable tablespaces with data and metadata. This architecture also implies there are different types of users: local users in a PDB and a common user in the CDB. A PDB can be administered by a privileged local user, the metadata about the PDBs are administered by the common user. And any privileged user can switch between PDBs. Every PDB has a default service with its name. Service names across the CDB hav to be unique within the CDB. And you can define database links between PDBs.
You can imagine that creating a new, empty, PDB is 1000 times faster than creating a whole new database...
From an APEX point of view this implies that you actually can run multiple versions of APEX in one database - as long as every APEX version runs in a separate PDB!
Comments
thank you for this first details.
Just a short question: from a CBDs view, is there only one obj$ which holds all the objects of itself and all the PDBs, or is there it's own obj$ and a set of different PDB1.obj$, PDB2.obj$, PDB3.obj$?
@Roel - any view on the points i raised?
Thx a lot,
DaniC
Say you have a live PDB and you have to investigate a performance issue,you "plug & play" into Dev CDB but
a) you won't have the same env since will be different stats/ plans
b) if you collect stats you might affect performance of all the others PDBs
DaniC
http://www.dadbm.com/2013/02/oracle-12c-pluggable-database-plug-unplug-and-clone/
-- Kirill Loifman