26 June 2013

Oracle Database 12c is here

Oracle Database 12c is here and has indeed multi-tenancy and pluggable Databases.

The long waited Oracle Database 12c has finally come. You can download the software from the Oracle Software Delivery Cloud for the three OS versions:
1.Oracle Database 12c Release 1 ( Media Pack for Linux x86-64 :
2. Oracle Database 12c Release 1 ( Media Pack for Oracle Solaris on x86-64 (64-bit)
3. Oracle Database 12c Release 1 ( Media Pack for Oracle Solaris on SPARC (64-bit)

The following is the screen shot of downloading Oracle 12cR1.  

The videos below give an overview of the architecture of the new Database release Oracle Database 12c.

Oracle Database 12c Architecture Overview

This video provides an overview of the Oracle Database 12c Architecture.

This video provides an overview of the new Oracle Database 12c Multitenant Architecture.

Pluggable Database

* Oracle 12c introduces a new feature called 'Pluggable Database'. Here Oracle Metadata and user data are totally separated into two sections. One is Container DB (or CDB) which will hold Oracle Metadata. The other is Pluggable DB (or PDB) which will hold user data.

How does a Pluggable Database work?

In the regular database, Oracle's metadata and user's application data are integrated. For beginners, Oracle Metadata is the data that is present when you install a new Oracle Database (without any sample schemas). Even though it can be called as an empty database, it still has data provided by Oracle. This data is needed by the database to function. For example, the objects owned by SYS, SYSTEM are mostly metadata.

Then user data is entered into that database. They will go under multiple user schemas. Now the database is being used by the users.

Now a situation arises so that we need to create another database on the same server. Why? Let us say that you need to provide data to two clients. And you don't want one client to other's data. And your data is contained in an extensive set of application schemas.

In this case, making a copy of those applications schemas into a different set of names and making them reside in the same database is very difficult.

So, you provide two separate databases. This also ensures that there is no security violation.

So, we install another new database, which comes with Oracle Metadata. Then we load the user data. In this method, which is currently being used (Year 2013), there will be a need for more memory for both the database instances. There will be two SGAs, two sets of smon, pmon and other background processes running.

Then if we need to copy one database to another, we need to rely on extensive procedures which includes exporting the data from the source database first, then removing the data at the target and then finally loading the data in there. After that, we need to take care of the user security and object privileges etc.

So, if you want to provide data for multiple tenants, that is multiple clients, then with the current set of features (till Oracle 11g), we have to create multiple databases. That is, one database for one client. In other words, there is no multi-tenancy.

Multi-Tenancy is becoming an important requirement in cloud infrastructure, these days. You would like to have the ability of providing data to multiple clients from the same database system with full confidence in security.

This can be achieved in Pluggable Database.

In a Pluggable Database, Oracle basically separates its metadata entirely from the user data. Metadata is stored in a section called Container DB. Then the user data are stored in Pluggable DBs. It also stores user metadata in the Pluggable DB.

By the way, what is user metadata? For example, earlier, the list of user accounts that exist in a database is tightly inegrated with Oracle Metadata. Now, with the separation of Container DB and Pluggable DB, the user accounts must exist in the Pluggable DB. So, the Pluggable DB not only contains user data, but also some user metadata.

So, what are the benefits?

* Multi-Tenancy - We can bring in two Pluggable DBs under one Container DB. Both will be totally segregated, but yet controlled by one instance. This is an important feature for SaaS (Software as a Service) platforms, Cloud, On-Demand and Vendor Managed Application solutions.

* Easy cloning/copying. Now the cloning and copying the databases across servers would be much easier. Just clone a Pluggable DB and plug-it-in in a different server.

* Very easy upgrades and patching.

Oracle 12c Database New Features - Pluggable Database – Video.

More information on the Oracle Dataabase 12c Optimizer:

Some usefull inside information from Tom Kyte and other Oracle Ace experts!

Download links for Dataabse 12c:

Learn more about administration with this book:

For more information please contact me at:Drs. Albert Spijkers
DBA Consulting
web:            http://www.dbaconsulting.nl
blog:            DBA Consulting blog
profile:         DBA Consulting profile
Facebook :   DBA Consulting on Facebook
email:          info@dbaconsulting.nl 


1 comment:

  1. Managing database can really be sensitive but I have checked on some details about this Oracle database and I can see that this would really work.