SlideShare a Scribd company logo
1 of 45
December 23, 2014
Oracle Multitenant
Mahir M. Quluzade
2 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Mahir M. Quluzade
AZEROUG (Azerbaijan Oracle User Group)
TROUG (Turkish Oracle User Group)
OCE, RAC 11g and Grid infrastructure
OCP Database 11g Administrator
OCE Database SQL
Author of OTech Magazine and OTN Articles
Central Bank - Oracle DBA
Oracle Blog : http//www.mahir-quluzade.com
3 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Agenda
 Rethinking Architecture for the Database
 Multitenant Architecture
 Capabilities Enabled
 Multitenant new features (12.1.0.2)
 Managing Shared Resources
 Upgrading to Multitenant
4 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Oracle Database Architecture
 Oracle Instance
– SGA & PGA
– Background Processes
 Oracle Database
– Control Files
– Data Files
– Redo Logs (Online and Archived)
– Parameter and Password file
Pre-12c Oracle Database
5 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Oracle Database Architecture
Requires memory, processes and database files
System Resources
6 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
New Multitenant Architecture
Memory and processes required at multitenant container level only
System Resources
7 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
New Multitenant Architecture
Memory and processes required at multitenant container level only
System Resources
8 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Increasing Consolidation
Oracle Database 12c
Schema Consolidation Multitenant Database
9 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Agenda
 Rethinking Architecture for the Database
 Multitenant Architecture
 Capabilities Enabled
 Multitenant new features (12.1.0.2)
 Managing Shared Resources
 Upgrading to Multitenant
10 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Multitenant Architecture
Components of a Multitenant Container Database (CDB)
Pluggable Databases (PDBs)
PDBs
Root
CDB
create database …
enable pluggable database
Create CDB
create pluggable database …
Create PDB
11 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Multitenant Architecture
 Multitenant architecture can currently
support up to 252 PDBs
 A PDB feels and operates identically to a
non-CDB
 You cannot tell, from the viewpoint of a
connected client, if you’re using a PDB or
a non-CDB
Database
Link
12 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Unplug / plug
Simply unplug from the old CDB…
13 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Unplug / plug
 Moving between CDBs is a simple case
of moving a PDB’s metadata
 An unplugged PDB carries with it lineage,
opatch, encryption key info etc
…and plug in to the new CDB…
14 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Unplug / plug
Example
alter pluggable database HCM
unplug into '/u01/app/oracle/oradata/…/hcm.xml'
create pluggable database My_PDB
using '/u01/app/oracle/oradata/…/hcm.xml'
Plug
Unplug
15 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Common Data Dictionary
Before 12.1: dilution over time
Database Created
Data
Dictionary
User Data
Meta
Data
Mature Database
Data
Dictionary
User Data
Meta
Data
Tables, Code, Data added
Data
Dictionary
User Data
Meta
Data
16 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Data Dictionary Architecture in a CDB
Oracle Database 12c
OBJ$ TAB$ SOURCE$
…
EMP DEPT
…
OBJ$ TAB$ SOURCE$
…
root
Database Metadata Only
PDB
User Metadata Only User Data
MetadataLinks
 Oracle Database stores metadata about
dictionary objects only in the root
– PDB uses Metadata Link to point to the
definition of object stored in the root
 The data corresponding to a metadata link
resides in its PDB
17 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Multitenant Architecture – Dynamics
 PDBs share common SGA and
background processes
 Foreground sessions see only
the PDB they connect to
18 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Files in the CDB
 Each PDB has its own set of tablespaces
including SYSTEM and SYSAUX
 PDBs share UNDO, REDO
and control files, (s)pfile
 By default the CDB has a single TEMP
tablespace but PDBs may create their
own
Namespaces
19 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Users
 Local users are the successors for
customer-created users in a non-CDB
 A local user is defined only in a PDB
 A local user can administer a PDB
 A common user is defined in the root
and is represented in every PDB
 A common user can log into any PDB
where it has “Create Session” and can
therefore administer a PDB
 The Oracle system is owned by
common users
20 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Common Users and Privileges
 A common user can be granted privileges locally in a PDB (or root)
and therefore differently in each container
 A common user can, alternatively, be granted a system privilege
commonly – the grant is made in root and every PDB, present and
future
 You can create a common role
 A common role can be granted to a common user commonly
 Authorization is checked in the container where the SQL is attempted
considering only the privileges that the user has in that container
Authorization is checked in the same way as as pre-12.1
21 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Agenda
 Rethinking Architecture for the Database Cloud
 Multitenant Architecture
 Capabilities Enabled
 Multitenant new features (12.1.0.2)
 Managing Shared Resources
 Upgrading to Multitenant
22 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Manage Many as One with Multitenant
Backup databases as one; recover at pluggable database level
One Backup
Point-in-time recovery
At pluggable database level
23 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Manage Many as One with Multitenant
One standby database covers all pluggable databases
24 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Multitenant for Simplified Patching
Apply changes once, all pluggable databases updated
Upgrade
in-place
25 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Multitenant for Upgrades
Flexible choice when patching & upgrading databases
26 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Multitenant for Provisioning
 PDBs can be cloned from
remote CDBs
 PDBs can be cloned from
within the same CDB
Fast cloning of PDBs
27 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Cloning a PDB
Example
create pluggable database HCMBI from HCM
create pluggable database HCMBI from HCM@us.acme.db1
Remote (DB Link)
Local
28 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Per PDB vs per CDB
Common operations on CDB with granular control where appropriate
Single Oracle Software Version
Data Guard
Scheduled RMAN Backups
Some parameters/properties
e.g. homogeneous character set
Redo and Undo
RMAN point-in-time recovery
Ad hoc RMAN backups
Flush shared pool
Parameters where
IsPDB_Modifiable = 'TRUE'
Per CDB Per PDB
29 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Agenda
 Rethinking Architecture for the Database Cloud
 Multitenant Architecture
 Capabilities Enabled
 Multitenant new features (12.1.0.2)
 Managing Shared Resources
 Upgrading to Multitenant
30 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
 PDB State Management Across CDB Restart
 PDB New clauses
– PDB Containers Clause
– PDB Standbys Clause
– PDB Logging Clause
 PDB Clone new features
– Excluding Data When Cloning a PDB
– Non-CDB Adopt to CDB as a PDB.
– PDB Subset Cloning
– PDB Snapshot Cloning
Oracle Database 12c Release 1 (12.1.0.2)
Multitenant New features
31 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
 Oracle Multitenant - PDB State Management Across CDB Restart
– Save state
SQL> alter pluggable database PDB save state;
SQL> select con_id, con_name, state from dba_pdb_saved_states;
CON_ID CON_NAME STATE
---------- ----------- ----------
4 PDB OPEN READ ONLY
– Discard state
SQL> alter pluggable database prmpdb03 discard state;
Oracle Database 12c Release 1 (12.1.0.2)
Multitenant New features
32 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
 PDB New clauses
– PDB Containers Clause
SQL> select con_id , n from containers (t)
where con_id in (4,5);
– PDB Standbys Clause
SQL> create pluggable database pdb2
file_name_convert=('pdbseed',‘pdb2‘) standbys=NONE;
– PDB Logging Clause
SQL> create pluggable database pdb3
file_name_convert=('pdbseed',‘pdb3') NOLOGGING;
Oracle Database 12c Release 1 (12.1.0.2)
Multitenant New features
33 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
 PDB Clone new features
– Excluding Data When Cloning a PDB
– SQL> create pluggable database prmpdb03 from prmpdb01 2
file_name_convert=('prmpdb01','prmpdb03') NO DATA;
– Non-CDB Adopt to CDB as a PDB.
– SQL> create database link noncdb connect to pdbcreator
identified by pdbcreator using ' noncdb';
– SQL> create pluggable database pdb4 from NON$CDB@prmdb
2 file_name_convert=('prmdb','prmcdb/pdb4');
– SQL> @$ORACLE_HOME/rdbms/admin/noncdb_to_pdb.sql
– PDB Subset Cloning
– PDB Snapshot Cloning
Oracle Database 12c Release 1 (12.1.0.2)
Multitenant New features
34 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Agenda
 Rethinking Architecture for the Database Cloud
 Multitenant Architecture
 Capabilities Enabled
 Multitenant new features (12.1.0.2)
 Managing Shared Resources
 Upgrading to Multitenant
35 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Managing Shared Resources
Resource management in multitenant environment
High Priority
Medium Priority
Low Priority
36 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Managing Resources between PDBs
 Resource Manager can manage resources on two basic levels:
– CDB level
 How resources are allocate d to PDBs
 Limit the resources utilization of specific PDBs
– PDB level
 Resource Manager can manage the workloads within each PDB
37 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Managing Resources between PDBs
 Using Resource Manager, you can control
– CPU
– Parallel execution servers
– Exadata I/O
– Sessions
 Configure a policy that controls how resources are utilized
– Default configuration that works, even as PDBs are added or removed
 You can change default configuration
38 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Manage CPU
Pluggable Database Shares Guaranteed CPU Maximum CPU
HCM 2 2/4 = 50% 100%
CRM 1 1/4 = 25% 100%
ERP 1 1/4 = 25% 100%
2 Shares 1 Share 1 Share
A CDB Resource Plan uses
shares to specify how CPU is
distributed between PDBs
39 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Agenda
 Rethinking Architecture for the Database Cloud
 Multitenant Architecture
 Capabilities Enabled
 Multitenant new features (12.1.0.2)
 Managing Shared Resources
 Upgrading to Multitenant
40 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Upgrading to Multitenant
Step 1: Upgrade databases in-place
Upgrade in Place
41 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Upgrading to Multitenant
Step 2: Plug-in upgraded databases
42 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Upgrading to Multitenant
 No application changes required.
Step 3. Change applications to work with Multitenant
43 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Migrate using Replication
① Provision new PDB from Seed
② Replicate using technologies such as
Oracle GoldenGate or Data Pump
New in 12.1, you ask that full database
export and full database import make
maximum use of transportable
tablespaces in the single expdb and
impdb commands.
(Backported to 11.2.0.3.)
44 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Your questions
45 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Mahir M. Quluzade
http://www.mahir-quluzade.com

More Related Content

What's hot

Exploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your CloudExploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your Cloud
dyahalom
 

What's hot (20)

MythBusters Globalization Support - Avoid Data Corruption
MythBusters Globalization Support - Avoid Data CorruptionMythBusters Globalization Support - Avoid Data Corruption
MythBusters Globalization Support - Avoid Data Corruption
 
Meb Backup & Recovery Performance
Meb Backup & Recovery PerformanceMeb Backup & Recovery Performance
Meb Backup & Recovery Performance
 
MySQL 8.0 achitecture and enhancement
MySQL 8.0 achitecture and enhancementMySQL 8.0 achitecture and enhancement
MySQL 8.0 achitecture and enhancement
 
MySQL Enterprise Backup: PITR Partial Online Recovery
MySQL Enterprise Backup: PITR Partial Online RecoveryMySQL Enterprise Backup: PITR Partial Online Recovery
MySQL Enterprise Backup: PITR Partial Online Recovery
 
MySQL Cluster Asynchronous replication (2014)
MySQL Cluster Asynchronous replication (2014) MySQL Cluster Asynchronous replication (2014)
MySQL Cluster Asynchronous replication (2014)
 
REST in Piece - Administration of an Oracle Cluster/Database using REST
REST in Piece - Administration of an Oracle Cluster/Database using RESTREST in Piece - Administration of an Oracle Cluster/Database using REST
REST in Piece - Administration of an Oracle Cluster/Database using REST
 
MySQL :What's New #GIDS16
MySQL :What's New #GIDS16MySQL :What's New #GIDS16
MySQL :What's New #GIDS16
 
Exploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your CloudExploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your Cloud
 
Tx lf propercareandfeedmysql
Tx lf propercareandfeedmysqlTx lf propercareandfeedmysql
Tx lf propercareandfeedmysql
 
MySQL For Oracle DBA's and Developers
MySQL For Oracle DBA's and DevelopersMySQL For Oracle DBA's and Developers
MySQL For Oracle DBA's and Developers
 
MySQL Enterprise Backup - BnR Scenarios
MySQL Enterprise Backup - BnR ScenariosMySQL Enterprise Backup - BnR Scenarios
MySQL Enterprise Backup - BnR Scenarios
 
My First 100 days with an Exadata (WP)
My First 100 days with an Exadata  (WP)My First 100 days with an Exadata  (WP)
My First 100 days with an Exadata (WP)
 
SOUG Day Oracle 21c New Security Features
SOUG Day Oracle 21c New Security FeaturesSOUG Day Oracle 21c New Security Features
SOUG Day Oracle 21c New Security Features
 
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 versionOracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
 
MySQL's new Secure by Default Install -- All Things Open October 20th 2015
MySQL's new Secure by Default Install -- All Things Open October 20th 2015MySQL's new Secure by Default Install -- All Things Open October 20th 2015
MySQL's new Secure by Default Install -- All Things Open October 20th 2015
 
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
 
MySQL Performance Best Practices
MySQL Performance Best PracticesMySQL Performance Best Practices
MySQL Performance Best Practices
 
Plugging in oracle database 12c pluggable databases
Plugging in   oracle database 12c pluggable databasesPlugging in   oracle database 12c pluggable databases
Plugging in oracle database 12c pluggable databases
 
Backing Up the MySQL Database
Backing Up the MySQL DatabaseBacking Up the MySQL Database
Backing Up the MySQL Database
 
Oracle 12c and its pluggable databases
Oracle 12c and its pluggable databasesOracle 12c and its pluggable databases
Oracle 12c and its pluggable databases
 

Viewers also liked

Oracle Day in Baku State University - Oracle Database Overview
Oracle Day in Baku State University - Oracle Database Overview Oracle Day in Baku State University - Oracle Database Overview
Oracle Day in Baku State University - Oracle Database Overview
Mahir M. Quluzade
 
Database Vault / Verinin Güvenliği
Database Vault /  Verinin GüvenliğiDatabase Vault /  Verinin Güvenliği
Database Vault / Verinin Güvenliği
Anar Godjaev
 
how to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vaulthow to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vault
Anar Godjaev
 
Oracle 10g Database Server Kurulum
Oracle 10g Database Server KurulumOracle 10g Database Server Kurulum
Oracle 10g Database Server Kurulum
Anar Godjaev
 

Viewers also liked (11)

Mahir M. Quluzade - Oracle ASM : Ən çox soruşulan 5 sual
Mahir M. Quluzade - Oracle ASM : Ən çox soruşulan 5 sualMahir M. Quluzade - Oracle ASM : Ən çox soruşulan 5 sual
Mahir M. Quluzade - Oracle ASM : Ən çox soruşulan 5 sual
 
Oracle Day in Baku State University - Oracle Database Overview
Oracle Day in Baku State University - Oracle Database Overview Oracle Day in Baku State University - Oracle Database Overview
Oracle Day in Baku State University - Oracle Database Overview
 
Mahir M. Quluzade - Fərqli əməliyyat sistemləri eyni Data Guard Konfiqurasi...
Mahir M. Quluzade   - Fərqli əməliyyat sistemləri eyni Data Guard Konfiqurasi...Mahir M. Quluzade   - Fərqli əməliyyat sistemləri eyni Data Guard Konfiqurasi...
Mahir M. Quluzade - Fərqli əməliyyat sistemləri eyni Data Guard Konfiqurasi...
 
Mahir M. Quluzade - TROUG DAY2012 11.10.2012
Mahir M. Quluzade - TROUG DAY2012 11.10.2012 Mahir M. Quluzade - TROUG DAY2012 11.10.2012
Mahir M. Quluzade - TROUG DAY2012 11.10.2012
 
Database Vault / Verinin Güvenliği
Database Vault /  Verinin GüvenliğiDatabase Vault /  Verinin Güvenliği
Database Vault / Verinin Güvenliği
 
EM13c: Write Powerful Scripts with EMCLI
EM13c: Write Powerful Scripts with EMCLIEM13c: Write Powerful Scripts with EMCLI
EM13c: Write Powerful Scripts with EMCLI
 
how to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vaulthow to protect your sensitive data using oracle database vault
how to protect your sensitive data using oracle database vault
 
Oracle 10g Database Server Kurulum
Oracle 10g Database Server KurulumOracle 10g Database Server Kurulum
Oracle 10g Database Server Kurulum
 
12c on RHEL7
12c on RHEL712c on RHEL7
12c on RHEL7
 
Oracle 12.2 sharded database management
Oracle 12.2 sharded database managementOracle 12.2 sharded database management
Oracle 12.2 sharded database management
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
 

Similar to Oracle Multitenant - Oracle Ankara Day 2014

Simplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable DatabasesSimplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable Databases
omnidba
 
Multitenant Full Deck Jan 2015 Cloud Team AJ Linkedin
Multitenant Full Deck Jan 2015 Cloud Team AJ LinkedinMultitenant Full Deck Jan 2015 Cloud Team AJ Linkedin
Multitenant Full Deck Jan 2015 Cloud Team AJ Linkedin
Arush Jain
 
Security Multitenant
Security MultitenantSecurity Multitenant
Security Multitenant
Arush Jain
 

Similar to Oracle Multitenant - Oracle Ankara Day 2014 (20)

RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle MultitenantRMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
 
Oracle Multitenant in 50 minutes
Oracle Multitenant in 50 minutesOracle Multitenant in 50 minutes
Oracle Multitenant in 50 minutes
 
Simplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable DatabasesSimplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable Databases
 
Oracle Database 12c para la comunidad GeneXus - Engineered for clouds
Oracle Database 12c para la comunidad GeneXus - Engineered for cloudsOracle Database 12c para la comunidad GeneXus - Engineered for clouds
Oracle Database 12c para la comunidad GeneXus - Engineered for clouds
 
Winning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantWinning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenant
 
Winning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle MultitenantWinning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle Multitenant
 
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdfOracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
 
Multitenant Full Deck Jan 2015 Cloud Team AJ Linkedin
Multitenant Full Deck Jan 2015 Cloud Team AJ LinkedinMultitenant Full Deck Jan 2015 Cloud Team AJ Linkedin
Multitenant Full Deck Jan 2015 Cloud Team AJ Linkedin
 
Oracle Database 12c : Multitenant
Oracle Database 12c : MultitenantOracle Database 12c : Multitenant
Oracle Database 12c : Multitenant
 
Security Multitenant
Security MultitenantSecurity Multitenant
Security Multitenant
 
Oracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra PasalapudiOracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra Pasalapudi
 
OOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architectureOOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architecture
 
Consolidate and prepare for cloud efficiencies
Consolidate and prepare for cloud efficienciesConsolidate and prepare for cloud efficiencies
Consolidate and prepare for cloud efficiencies
 
Oracle 12c PDB insights
Oracle 12c PDB insightsOracle 12c PDB insights
Oracle 12c PDB insights
 
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - OverviewHA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
 
OUGN winning performnace challenges in oracle Multitenant
OUGN   winning performnace challenges in oracle MultitenantOUGN   winning performnace challenges in oracle Multitenant
OUGN winning performnace challenges in oracle Multitenant
 
Collaborate 17 - Database consolidation using the oracle multitenant architec...
Collaborate 17 - Database consolidation using the oracle multitenant architec...Collaborate 17 - Database consolidation using the oracle multitenant architec...
Collaborate 17 - Database consolidation using the oracle multitenant architec...
 
Presentation 12c pdb
Presentation 12c pdbPresentation 12c pdb
Presentation 12c pdb
 
Simplify Consolidation with Oracle Database 12c
Simplify Consolidation with Oracle Database 12cSimplify Consolidation with Oracle Database 12c
Simplify Consolidation with Oracle Database 12c
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for Consolidation
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 

Oracle Multitenant - Oracle Ankara Day 2014

  • 1. December 23, 2014 Oracle Multitenant Mahir M. Quluzade
  • 2. 2 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Mahir M. Quluzade AZEROUG (Azerbaijan Oracle User Group) TROUG (Turkish Oracle User Group) OCE, RAC 11g and Grid infrastructure OCP Database 11g Administrator OCE Database SQL Author of OTech Magazine and OTN Articles Central Bank - Oracle DBA Oracle Blog : http//www.mahir-quluzade.com
  • 3. 3 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Agenda  Rethinking Architecture for the Database  Multitenant Architecture  Capabilities Enabled  Multitenant new features (12.1.0.2)  Managing Shared Resources  Upgrading to Multitenant
  • 4. 4 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Oracle Database Architecture  Oracle Instance – SGA & PGA – Background Processes  Oracle Database – Control Files – Data Files – Redo Logs (Online and Archived) – Parameter and Password file Pre-12c Oracle Database
  • 5. 5 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Oracle Database Architecture Requires memory, processes and database files System Resources
  • 6. 6 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com New Multitenant Architecture Memory and processes required at multitenant container level only System Resources
  • 7. 7 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com New Multitenant Architecture Memory and processes required at multitenant container level only System Resources
  • 8. 8 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Increasing Consolidation Oracle Database 12c Schema Consolidation Multitenant Database
  • 9. 9 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Agenda  Rethinking Architecture for the Database  Multitenant Architecture  Capabilities Enabled  Multitenant new features (12.1.0.2)  Managing Shared Resources  Upgrading to Multitenant
  • 10. 10 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Multitenant Architecture Components of a Multitenant Container Database (CDB) Pluggable Databases (PDBs) PDBs Root CDB create database … enable pluggable database Create CDB create pluggable database … Create PDB
  • 11. 11 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Multitenant Architecture  Multitenant architecture can currently support up to 252 PDBs  A PDB feels and operates identically to a non-CDB  You cannot tell, from the viewpoint of a connected client, if you’re using a PDB or a non-CDB Database Link
  • 12. 12 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Unplug / plug Simply unplug from the old CDB…
  • 13. 13 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Unplug / plug  Moving between CDBs is a simple case of moving a PDB’s metadata  An unplugged PDB carries with it lineage, opatch, encryption key info etc …and plug in to the new CDB…
  • 14. 14 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Unplug / plug Example alter pluggable database HCM unplug into '/u01/app/oracle/oradata/…/hcm.xml' create pluggable database My_PDB using '/u01/app/oracle/oradata/…/hcm.xml' Plug Unplug
  • 15. 15 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Common Data Dictionary Before 12.1: dilution over time Database Created Data Dictionary User Data Meta Data Mature Database Data Dictionary User Data Meta Data Tables, Code, Data added Data Dictionary User Data Meta Data
  • 16. 16 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Data Dictionary Architecture in a CDB Oracle Database 12c OBJ$ TAB$ SOURCE$ … EMP DEPT … OBJ$ TAB$ SOURCE$ … root Database Metadata Only PDB User Metadata Only User Data MetadataLinks  Oracle Database stores metadata about dictionary objects only in the root – PDB uses Metadata Link to point to the definition of object stored in the root  The data corresponding to a metadata link resides in its PDB
  • 17. 17 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Multitenant Architecture – Dynamics  PDBs share common SGA and background processes  Foreground sessions see only the PDB they connect to
  • 18. 18 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Files in the CDB  Each PDB has its own set of tablespaces including SYSTEM and SYSAUX  PDBs share UNDO, REDO and control files, (s)pfile  By default the CDB has a single TEMP tablespace but PDBs may create their own Namespaces
  • 19. 19 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Users  Local users are the successors for customer-created users in a non-CDB  A local user is defined only in a PDB  A local user can administer a PDB  A common user is defined in the root and is represented in every PDB  A common user can log into any PDB where it has “Create Session” and can therefore administer a PDB  The Oracle system is owned by common users
  • 20. 20 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Common Users and Privileges  A common user can be granted privileges locally in a PDB (or root) and therefore differently in each container  A common user can, alternatively, be granted a system privilege commonly – the grant is made in root and every PDB, present and future  You can create a common role  A common role can be granted to a common user commonly  Authorization is checked in the container where the SQL is attempted considering only the privileges that the user has in that container Authorization is checked in the same way as as pre-12.1
  • 21. 21 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Agenda  Rethinking Architecture for the Database Cloud  Multitenant Architecture  Capabilities Enabled  Multitenant new features (12.1.0.2)  Managing Shared Resources  Upgrading to Multitenant
  • 22. 22 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Manage Many as One with Multitenant Backup databases as one; recover at pluggable database level One Backup Point-in-time recovery At pluggable database level
  • 23. 23 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Manage Many as One with Multitenant One standby database covers all pluggable databases
  • 24. 24 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Multitenant for Simplified Patching Apply changes once, all pluggable databases updated Upgrade in-place
  • 25. 25 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Multitenant for Upgrades Flexible choice when patching & upgrading databases
  • 26. 26 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Multitenant for Provisioning  PDBs can be cloned from remote CDBs  PDBs can be cloned from within the same CDB Fast cloning of PDBs
  • 27. 27 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Cloning a PDB Example create pluggable database HCMBI from HCM create pluggable database HCMBI from HCM@us.acme.db1 Remote (DB Link) Local
  • 28. 28 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Per PDB vs per CDB Common operations on CDB with granular control where appropriate Single Oracle Software Version Data Guard Scheduled RMAN Backups Some parameters/properties e.g. homogeneous character set Redo and Undo RMAN point-in-time recovery Ad hoc RMAN backups Flush shared pool Parameters where IsPDB_Modifiable = 'TRUE' Per CDB Per PDB
  • 29. 29 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Agenda  Rethinking Architecture for the Database Cloud  Multitenant Architecture  Capabilities Enabled  Multitenant new features (12.1.0.2)  Managing Shared Resources  Upgrading to Multitenant
  • 30. 30 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com  PDB State Management Across CDB Restart  PDB New clauses – PDB Containers Clause – PDB Standbys Clause – PDB Logging Clause  PDB Clone new features – Excluding Data When Cloning a PDB – Non-CDB Adopt to CDB as a PDB. – PDB Subset Cloning – PDB Snapshot Cloning Oracle Database 12c Release 1 (12.1.0.2) Multitenant New features
  • 31. 31 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com  Oracle Multitenant - PDB State Management Across CDB Restart – Save state SQL> alter pluggable database PDB save state; SQL> select con_id, con_name, state from dba_pdb_saved_states; CON_ID CON_NAME STATE ---------- ----------- ---------- 4 PDB OPEN READ ONLY – Discard state SQL> alter pluggable database prmpdb03 discard state; Oracle Database 12c Release 1 (12.1.0.2) Multitenant New features
  • 32. 32 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com  PDB New clauses – PDB Containers Clause SQL> select con_id , n from containers (t) where con_id in (4,5); – PDB Standbys Clause SQL> create pluggable database pdb2 file_name_convert=('pdbseed',‘pdb2‘) standbys=NONE; – PDB Logging Clause SQL> create pluggable database pdb3 file_name_convert=('pdbseed',‘pdb3') NOLOGGING; Oracle Database 12c Release 1 (12.1.0.2) Multitenant New features
  • 33. 33 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com  PDB Clone new features – Excluding Data When Cloning a PDB – SQL> create pluggable database prmpdb03 from prmpdb01 2 file_name_convert=('prmpdb01','prmpdb03') NO DATA; – Non-CDB Adopt to CDB as a PDB. – SQL> create database link noncdb connect to pdbcreator identified by pdbcreator using ' noncdb'; – SQL> create pluggable database pdb4 from NON$CDB@prmdb 2 file_name_convert=('prmdb','prmcdb/pdb4'); – SQL> @$ORACLE_HOME/rdbms/admin/noncdb_to_pdb.sql – PDB Subset Cloning – PDB Snapshot Cloning Oracle Database 12c Release 1 (12.1.0.2) Multitenant New features
  • 34. 34 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Agenda  Rethinking Architecture for the Database Cloud  Multitenant Architecture  Capabilities Enabled  Multitenant new features (12.1.0.2)  Managing Shared Resources  Upgrading to Multitenant
  • 35. 35 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Managing Shared Resources Resource management in multitenant environment High Priority Medium Priority Low Priority
  • 36. 36 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Managing Resources between PDBs  Resource Manager can manage resources on two basic levels: – CDB level  How resources are allocate d to PDBs  Limit the resources utilization of specific PDBs – PDB level  Resource Manager can manage the workloads within each PDB
  • 37. 37 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Managing Resources between PDBs  Using Resource Manager, you can control – CPU – Parallel execution servers – Exadata I/O – Sessions  Configure a policy that controls how resources are utilized – Default configuration that works, even as PDBs are added or removed  You can change default configuration
  • 38. 38 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Manage CPU Pluggable Database Shares Guaranteed CPU Maximum CPU HCM 2 2/4 = 50% 100% CRM 1 1/4 = 25% 100% ERP 1 1/4 = 25% 100% 2 Shares 1 Share 1 Share A CDB Resource Plan uses shares to specify how CPU is distributed between PDBs
  • 39. 39 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Agenda  Rethinking Architecture for the Database Cloud  Multitenant Architecture  Capabilities Enabled  Multitenant new features (12.1.0.2)  Managing Shared Resources  Upgrading to Multitenant
  • 40. 40 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Upgrading to Multitenant Step 1: Upgrade databases in-place Upgrade in Place
  • 41. 41 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Upgrading to Multitenant Step 2: Plug-in upgraded databases
  • 42. 42 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Upgrading to Multitenant  No application changes required. Step 3. Change applications to work with Multitenant
  • 43. 43 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Migrate using Replication ① Provision new PDB from Seed ② Replicate using technologies such as Oracle GoldenGate or Data Pump New in 12.1, you ask that full database export and full database import make maximum use of transportable tablespaces in the single expdb and impdb commands. (Backported to 11.2.0.3.)
  • 44. 44 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Your questions
  • 45. 45 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Mahir M. Quluzade http://www.mahir-quluzade.com

Editor's Notes

  1. In this presentation I plan briefly to review the old architecture of Oracle Database. I’ll discuss the new multitenant architecture along with the capabilities it enables. We’ll talk about management of shared resources and how to upgrade to Multitenant.
  2. Oracle Database 11g Architecture is non-CDB. Oracle Instance : SGA & PGA + Background Processes Oracle Database: Control Files, Data Files, Redo logs (Online and Archived), Parameter and Password files. Memory and Background Processes – Oracle Instance Storage - Database Files
  3. Let's think about our traditional Oracle Database architecture. Every time we create a database, be it a production database, a development or a test database, what do we do? We create a set of files, we allocate a bunch of memory for managing the data, and we kick off a series of background processes. And this is replicated for every one of the databases that we create. As more and more databases are fired up, these replicated overheads quickly consume the available server resources and this limits the number of applications we can run on any given server. You can see how quickly we red-line the little resource meter here.
  4. With Oracle Database 12c, we have a new multitenant architecture, featuring pluggable databases. We can now create a single multitenant container database. Into this we can plug multiple pluggable databases.
  5. Now, the beauty of this new architecture is we don't need to make changes to our existing applications. More importantly, we now only allocate one chunk of memory and one set of background processes for that container database. So that's going to give us much greater utilization out of our existing IT resources. We’ll be able to host many more applications per database server. So it's going to give us much greater scalability as we consolidate multiple pluggable databases into our new multitenant container database.
  6. Let’s discuss this architecture in more detail. First we’ll review the basic elements of our new concept. Then we’ll look into what we had to overcome to achieve this. Finally we’ll address some of the details around files, users, etc.
  7. Let’s look at the components of a multitenant container database We have the pluggable databases or PDBs There are two parts to the term pluggable databases; There’s “pluggable”, which is new and “databases” which is familiar. Before we get to the revolutionary new stuff let’s discuss what hasn’t changed. A pluggable database is a fully functional self-contained Oracle database. It’s not watered down in any way. From the perspective of an application or an end user it hasn’t changed at all. This is very important because it means that no application changes are required to adopt this new architecture. [click] We introduce a new concept: a root database [click] Into which are plugged various PDBs [click] And the combination is referred to as a multitenant container database or CDB
  8. Read slide. …for example, for a user connected to the CRM PDB to access data in the HCM PDB, he would have to do so using a database link, just as was the case with prior versions of the database.
  9. Now what if we wanted to move a PDB from one container [click] to another? With Oracle Multitenant, we can simply [click] Unplug it from the first [click]
  10. And plug it into the second container. Read slide.
  11. Now, all of this is achieved via SQL. Here, for example we see two SQL statements that would be used first to unplug a PDB And then to plug in a PDB Notice that the manifest of the unplugged PDB is specified as an xml file.
  12. Now, what did we have to change to be able to achieve this vision? Let’s discuss what happens to a traditional Oracle database over time. Here we need to distinguish between two parts of the database – the data dictionary and the user data. When the database is first created, the only tables present are the Oracle data dictionary tables. The only data they contain is the Oracle-supplied meta data for the database, such as the definitions of the Oracle data dictionary tables themselves, their columns, etc. [click] Now, as the user schema is added to the database, the definitions of these user tables, columns, indexes, etc are also stored in the data dictionary. [click] So, over time in a mature database, the data dictionary contains Oracle-supplied meta data of the Oracle data dictionary intermingled with the definitions of the user’s application schema. That’s been fine until now, but it’s an obstacle to our new goal of being able to unplug an application-database and move it from one container to another.
  13. The multitenant container database behaves as a single database from the operations point of view. We only have a single set of Oracle background processes and a single, shared database memory requirement for the entire CDB, Shared across all PDBs plugged into it. This gives us very high consolidation density; in other words more applications per server. This affords maximum reduction in capital expenses.
  14. Let’s have a close look at some of the key capabilities that are enabled by this new multitenant architecture.
  15. By managing many as one, we maximize OpEx reduction. Here we see a single backup strategy for the entire container database … with the granularity of a PITR capability at the individual PDB level.
  16. High Availability – standby database maintained by Active Data Guard. Plug in a new PDB into the production CDB [click] And you have a corresponding PDB in the standby Transactions in the new PDB are replicated to the standby automatically, just by virtue of plugging that PDB into the CDB in this Active Data Guard environment.
  17. Another example of managing many as one with Oracle Multitenant is upgrading or patching. Patches and upgrades are applied at the multitenant container database level. [click] All PDBs in that CDB are automatically upgraded in one fell swoop.
  18. But if you want the granularity of a per-PDB upgrade, it can be done by unplug/plug into a second CDB, upgraded to the required level. So applications can be upgraded as and when they’re ready. [click] In this example, ERP never moves to 12.x. So, along with the advantages of managing many as one, we’re beginning to see examples of the agility afforded by the new multitenant architecture.
  19. The same cloning approach can be used to copy existing application databases. Again, where the underlying file system supports copy-on-write we can create snapshot clones – extremely fast. [click] PDBs can be cloned from within the same CDB [click] And PDBs can be cloned from remote CDBs. NOTE: A bug prevents remote clone from being used in 12.1.0.1. We hope that the fix will be included in 12.1.0.2.
  20. As before, cloning is performed by using SQL. Here are the SQL statements to create a local clone… And to clone a PDB in a remote container, we need to specify the database link.
  21. We’ve seen that we can achieve great reductions in operating expenses by managing many as one. We have carefully selected the operations that can be performed at the level of the overall multitenant container database. Here are some prominent examples. Read slide But we retain granular control where appropriate. [click] The sort of operations we still want to perform at the level of the individual PDBs are Read slide
  22. Now that we’re able to consolidate multiple applications into a single database we need to think about how to share resources appropriately. We don’t want any single application to run away with all the resources of the system at the expenses of everyone else.
  23. Now that we’re able to consolidate multiple applications into a single database we need to think about how to share resources appropriately. We don’t want any single application to run away with all the resources of the system at the expenses of everyone else.
  24. This is a simplistic visualization of our high-level concept. We have three PDBs with different processing priorities: DW is low priority, CRM is medium & ERP is high priority. [click] When only DW is busy, why not let it use all the resources in the system. As the demand of the higher priority CRM system picks up, DW has to yield some of its processing resources. And as the High priority ERP system kicks in, the other two have to back off significantly. Let’s see how it works in more detail. [This is an opportunity to describe how we can now support inter database Resource Management. The dials are simply showing that as higher priority workloads come on the lower priority ones release resources. We aren't being specific about the resource. It could be CPU or Parallel Query Servers. ]
  25. Read slide
  26. PDBs vie for shared resources Using Resource Manager we can configure policies to control how these resources are shared. We can control CPU, Parallel execution servers, Sessions and, in Exadata, I/O. For example this would allow us to configure a policy so that the first tenant in a large, powerful server experiences a realistic share of the resources that will eventually be shared as other tenants are plugged in.
  27. Here’s an example of how we’d specify resource plans for the allocation of CPU between three PDBs There are four total shares, 2 for HCM and one each for CRM and ERP. That means that HCM is guaranteed 50% of the CPU whatever else is going on in other PDBs. Similarly CRM and ERP are each guaranteed at least 25%. However, there are no caps in this case, so that, for example, ERP could have 100% of the CPU if HCM and CRM were idle.
  28. Now you’ve seen how wonderful Oracle Multitenant is, you’ll be eager to upgrade all your applications. How do you do it?
  29. I told you this architecture was easy to adopt. Easy as 1-2-3. Step 1. Upgrade your existing databases in-place to version 12.1, [click] just as you’ve done upgrades to prior versions.
  30. Step 2. Plug in the upgraded databases into a pre-prepared multitenant container database. We call this process “adopting the database as a PDB”.
  31. …and of course, step 3 is to change your applications to work with Multitenant. [click] Oh yes, that’s right! There is no step 3! No application changes are required to work with Oracle Multitenant!
  32. Another option is to upgrade using replication. [click] Simply provision a new, empty PDB. [click] Then, using Oracle Golden Gate or Data Pump, replicate the data from the source database to the new PDB. [click] This approach might be more appropriate for a database in a much older version of Oracle, where version-by-version upgrades would be too cumbersome.