SlideShare a Scribd company logo
Oracle Multitenant
Mahir M. Quluzade
Organized by ORIENT ITM
12 July 2014
2 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Agenda
 Rethinking Architecture for the Database
 Multitenant Architecture
 Capabilities Enabled
 Managing Shared Resources
 Upgrading to Multitenant
3 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
About me
 Broad member of AZEROUG (Azerbaijan Oracle User Group)
 OCE, RAC 11g and Grid infrastructure
 OCP Database 11g Administrator
 OCE Database SQL
 Author of OTN Articles and OTech Magazine
 Central Bank - Oracle DBA
 Oracle Blog : http//www.mahir-quluzade.com
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 12g
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
 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
0
0.5
1
1.5
2
2.5
3
CRM HCM ERP BI
GB
Pluggable Database
MEMORY
0
0.5
1
1.5
2
2.5
3
CRM HCM ERP BI DW
GB
Pluggable Database
MEMORY
Multitenant Scalability
 Only small increments in memory as
additional PDBs are added
0
0.5
1
1.5
2
2.5
3
CRM HCM ERP
GB
Pluggable Database
MEMORY
19 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
20 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
21 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
22 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
23 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Agenda
 Rethinking Architecture for the Database Cloud
 Multitenant Architecture
 Capabilities Enabled
 Managing Shared Resources
 Upgrading to Multitenant
24 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
25 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Manage Many as One with Multitenant
One standby database covers all pluggable databases
26 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
27 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Multitenant for Upgrades
Flexible choice when patching & upgrading databases
28 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Improved Agility With Changing Workloads
Expand Cluster to Support Flexible Consolidation Model
Services
Single SGA per
CDB Instance
Node1
CDB Instance 1
Node2
CDB Instance 2
Multitenant Container Database (CDB)
29 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Improved Agility With Changing Workloads
Expand Cluster to Support Flexible Consolidation Model
Services
Single SGA per
CDB Instance
Node1
CDB Instance 1
Node2
CDB Instance 2
Node3
CDB Instance 3
Multitenant Container Database (CDB)
30 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
31 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
32 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
33 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Advantages of Multitenant Architecture
Reduced CapEx & OpEx, Increased Agility, Easy Adoption
Self-contained PDB for each application
 Applications run unchanged
 Rapid provisioning (via clones)
 Portability (via pluggability)
Shared memory and background processes
 More applications per server
Common operations performed at CDB level
 Manage many as one (upgrade, HA, backup)
 Granular control when appropriate
34 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Agenda
 Rethinking Architecture for the Database Cloud
 Multitenant Architecture
 Capabilities Enabled
 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
 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
Benefit Capability Enabled
Minimize CapEx • More applications per server
Minimize OpEx
• Manage many as one
• Standardized procedures & service levels
• Rapid provisioning
Maximize Agility
• Cloning for development / testing
• Portability through “pluggability”
• Scalability with RAC
Ease of Adoption • Applications run unchanged
Key Benefits
45 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Agenda
 Rethinking Architecture for the Database Cloud
 Multitenant Architecture
 Capabilities Enabled
 Managing Shared Resources
 Upgrading to Multitenant
46 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Your questions
47 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
Mahir M. Quluzade
http://www.mahir-quluzade.com

More Related Content

PPTX
Oracle Multitenant - Oracle Ankara Day 2014
PPTX
Oracle Database In-Memory & Multitenant - TROUG Days'16 Istanbul
PPT
IEEE Day 2013 - Best 10 New Features of Oracle Database 12c
PPTX
MySQL DBA
PDF
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUG
PDF
My First 100 days with a MySQL DBMS
PDF
MySQL Enterprise Backup & Oracle Secure Backup
PDF
MythBusters Globalization Support - Avoid Data Corruption
Oracle Multitenant - Oracle Ankara Day 2014
Oracle Database In-Memory & Multitenant - TROUG Days'16 Istanbul
IEEE Day 2013 - Best 10 New Features of Oracle Database 12c
MySQL DBA
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUG
My First 100 days with a MySQL DBMS
MySQL Enterprise Backup & Oracle Secure Backup
MythBusters Globalization Support - Avoid Data Corruption

What's hot (20)

PPTX
Oracle 12c - Multitenant Feature
PDF
REST in Piece - Administration of an Oracle Cluster/Database using REST
PDF
Meb Backup & Recovery Performance
PDF
Tx lf propercareandfeedmysql
PDF
MySQL :What's New #GIDS16
PDF
MySQL Enterprise Backup: PITR Partial Online Recovery
PDF
MySQL For Oracle DBA's and Developers
PDF
Exploring Oracle Database 12c Multitenant best practices for your Cloud
PDF
MySQL 8.0 achitecture and enhancement
PDF
MySQL Cluster Asynchronous replication (2014)
PDF
SOUG Day Oracle 21c New Security Features
PDF
My First 100 days with an Exadata (WP)
PDF
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
PDF
MySQL's new Secure by Default Install -- All Things Open October 20th 2015
PPTX
Oracle database 12c new features
PDF
Oracle Multitenant meets Oracle RAC 12c OOW13 [CON8706]
PDF
Backing Up the MySQL Database
PDF
MySQL Performance Best Practices
PDF
Oracle 12c and its pluggable databases
PDF
MySQL Enterprise Backup
Oracle 12c - Multitenant Feature
REST in Piece - Administration of an Oracle Cluster/Database using REST
Meb Backup & Recovery Performance
Tx lf propercareandfeedmysql
MySQL :What's New #GIDS16
MySQL Enterprise Backup: PITR Partial Online Recovery
MySQL For Oracle DBA's and Developers
Exploring Oracle Database 12c Multitenant best practices for your Cloud
MySQL 8.0 achitecture and enhancement
MySQL Cluster Asynchronous replication (2014)
SOUG Day Oracle 21c New Security Features
My First 100 days with an Exadata (WP)
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
MySQL's new Secure by Default Install -- All Things Open October 20th 2015
Oracle database 12c new features
Oracle Multitenant meets Oracle RAC 12c OOW13 [CON8706]
Backing Up the MySQL Database
MySQL Performance Best Practices
Oracle 12c and its pluggable databases
MySQL Enterprise Backup
Ad

Viewers also liked (12)

PPTX
Mahir M. Quluzade - Oracle ASM : Ən çox soruşulan 5 sual
PPTX
Oracle Day in Baku State University - Oracle Database Overview
PPTX
Mahir M. Quluzade - TROUG DAY2012 11.10.2012
PPTX
Mahir M. Quluzade - Fərqli əməliyyat sistemləri eyni Data Guard Konfiqurasi...
PPTX
Presentation day1oracle 12c
DOCX
Database Vault / Verinin Güvenliği
PPTX
Oracle 12c Multi Tenant
PDF
EM13c: Write Powerful Scripts with EMCLI
PDF
Oracle Database 12c Multitenant for Consolidation
DOCX
how to protect your sensitive data using oracle database vault
PDF
Oracle 10g Database Server Kurulum
PPTX
Oracle 12c Architecture
Mahir M. Quluzade - Oracle ASM : Ən çox soruşulan 5 sual
Oracle Day in Baku State University - Oracle Database Overview
Mahir M. Quluzade - TROUG DAY2012 11.10.2012
Mahir M. Quluzade - Fərqli əməliyyat sistemləri eyni Data Guard Konfiqurasi...
Presentation day1oracle 12c
Database Vault / Verinin Güvenliği
Oracle 12c Multi Tenant
EM13c: Write Powerful Scripts with EMCLI
Oracle Database 12c Multitenant for Consolidation
how to protect your sensitive data using oracle database vault
Oracle 10g Database Server Kurulum
Oracle 12c Architecture
Ad

Similar to Oracle Multitenant - organized by Orient ITM - 12 Jul 2014 (20)

PPTX
Oracle Multitenant in 50 minutes
PDF
Oracle database 12c introduction- Satyendra Pasalapudi
PPTX
Oracle Database 12c para la comunidad GeneXus - Engineered for clouds
PDF
Multitenant Full Deck Jan 2015 Cloud Team AJ Linkedin
PPTX
Oracle Database Multitenant Architecture.pptx
PDF
Consolidate and prepare for cloud efficiencies
PPTX
apex-42-in-12c-1970039.pptx apex oracle
PPTX
Oracle 12c
PDF
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
PDF
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
PDF
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
PPT
173955573244324324324424322adsadsaasd.ppt
PPTX
Database Consolidation using Oracle Multitenant
PDF
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
PDF
Winning performance challenges in oracle multitenant
PDF
Multi-Tenancy: Da Teoria à Prática, do DB ao Middleware
PPTX
2-day-dba-oracle.pptx
PDF
Winning Performance Challenges in Oracle Multitenant
PDF
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
PPTX
TechEvent 18c Multitenant New Features
Oracle Multitenant in 50 minutes
Oracle database 12c introduction- Satyendra Pasalapudi
Oracle Database 12c para la comunidad GeneXus - Engineered for clouds
Multitenant Full Deck Jan 2015 Cloud Team AJ Linkedin
Oracle Database Multitenant Architecture.pptx
Consolidate and prepare for cloud efficiencies
apex-42-in-12c-1970039.pptx apex oracle
Oracle 12c
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
173955573244324324324424322adsadsaasd.ppt
Database Consolidation using Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
Winning performance challenges in oracle multitenant
Multi-Tenancy: Da Teoria à Prática, do DB ao Middleware
2-day-dba-oracle.pptx
Winning Performance Challenges in Oracle Multitenant
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
TechEvent 18c Multitenant New Features

Recently uploaded (20)

PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Electronic commerce courselecture one. Pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Network Security Unit 5.pdf for BCA BBA.
PPT
Teaching material agriculture food technology
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Big Data Technologies - Introduction.pptx
Empathic Computing: Creating Shared Understanding
Electronic commerce courselecture one. Pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
The AUB Centre for AI in Media Proposal.docx
Network Security Unit 5.pdf for BCA BBA.
Teaching material agriculture food technology
Digital-Transformation-Roadmap-for-Companies.pptx
Encapsulation theory and applications.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Encapsulation_ Review paper, used for researhc scholars
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
MYSQL Presentation for SQL database connectivity
Reach Out and Touch Someone: Haptics and Empathic Computing
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...

Oracle Multitenant - organized by Orient ITM - 12 Jul 2014

  • 1. Oracle Multitenant Mahir M. Quluzade Organized by ORIENT ITM 12 July 2014
  • 2. 2 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Agenda  Rethinking Architecture for the Database  Multitenant Architecture  Capabilities Enabled  Managing Shared Resources  Upgrading to Multitenant
  • 3. 3 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com About me  Broad member of AZEROUG (Azerbaijan Oracle User Group)  OCE, RAC 11g and Grid infrastructure  OCP Database 11g Administrator  OCE Database SQL  Author of OTN Articles and OTech Magazine  Central Bank - Oracle DBA  Oracle Blog : http//www.mahir-quluzade.com
  • 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 12g 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  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 0 0.5 1 1.5 2 2.5 3 CRM HCM ERP BI GB Pluggable Database MEMORY 0 0.5 1 1.5 2 2.5 3 CRM HCM ERP BI DW GB Pluggable Database MEMORY Multitenant Scalability  Only small increments in memory as additional PDBs are added 0 0.5 1 1.5 2 2.5 3 CRM HCM ERP GB Pluggable Database MEMORY
  • 19. 19 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
  • 20. 20 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
  • 21. 21 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
  • 22. 22 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com
  • 23. 23 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Agenda  Rethinking Architecture for the Database Cloud  Multitenant Architecture  Capabilities Enabled  Managing Shared Resources  Upgrading to Multitenant
  • 24. 24 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
  • 25. 25 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Manage Many as One with Multitenant One standby database covers all pluggable databases
  • 26. 26 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
  • 27. 27 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Multitenant for Upgrades Flexible choice when patching & upgrading databases
  • 28. 28 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Improved Agility With Changing Workloads Expand Cluster to Support Flexible Consolidation Model Services Single SGA per CDB Instance Node1 CDB Instance 1 Node2 CDB Instance 2 Multitenant Container Database (CDB)
  • 29. 29 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Improved Agility With Changing Workloads Expand Cluster to Support Flexible Consolidation Model Services Single SGA per CDB Instance Node1 CDB Instance 1 Node2 CDB Instance 2 Node3 CDB Instance 3 Multitenant Container Database (CDB)
  • 30. 30 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
  • 31. 31 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
  • 32. 32 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
  • 33. 33 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Advantages of Multitenant Architecture Reduced CapEx & OpEx, Increased Agility, Easy Adoption Self-contained PDB for each application  Applications run unchanged  Rapid provisioning (via clones)  Portability (via pluggability) Shared memory and background processes  More applications per server Common operations performed at CDB level  Manage many as one (upgrade, HA, backup)  Granular control when appropriate
  • 34. 34 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Agenda  Rethinking Architecture for the Database Cloud  Multitenant Architecture  Capabilities Enabled  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  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 Benefit Capability Enabled Minimize CapEx • More applications per server Minimize OpEx • Manage many as one • Standardized procedures & service levels • Rapid provisioning Maximize Agility • Cloning for development / testing • Portability through “pluggability” • Scalability with RAC Ease of Adoption • Applications run unchanged Key Benefits
  • 45. 45 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Agenda  Rethinking Architecture for the Database Cloud  Multitenant Architecture  Capabilities Enabled  Managing Shared Resources  Upgrading to Multitenant
  • 46. 46 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Your questions
  • 47. 47 Oracle Multitenant - Mahir M. Quluzade © 2014 http://www.mahir-quluzade.com Mahir M. Quluzade http://www.mahir-quluzade.com

Editor's Notes

  • #39: 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.