SlideShare a Scribd company logo
Simplify Consolidation with
Oracle Database 12c
Oracle Multitenant
Maris Elsins
Co-Authors: Marc Fielding, Alex Gorbachev and Oracle!
September 18, 2013
Māris Elsiņš
• 8y+ Oracle [Apps] DBA, 3y PL/SQL Developer
• Oracle Applications DBA / TTL at Pythian
• Oracle Certified Master
• Oracle Certified Professional 9i, 10g, 11g, 11i, R12
• Frequent Speaker (15) UKOUG, OUGF, LVOUG, Collaborate, …
• Blogger http://www.pythian.com/blog/author/elsins/
• MarisElsins, Maris.Elsins, ,
• FAN of BAAG (BattleAgainstAnyGuess.com)
2 © 2013 Pythian
Who is Pythian?
• 15 Years of Data infrastructure
management consulting
• 170+ Top brands
• 6000+ databases under management
• Over 200 DBA’s, in 26 countries
• Top 5% of DBA work force, 9 Oracle
ACE’s, 2 Microsoft MVP’s
• Oracle, Microsoft, MySQL partners,
Netezza, Hadoop and MongoDB plus
UNIX Sysadmin and Oracle apps
© 2013 Pythian3
Agenda
• Multitenant Architecture
• Use cases and benefits
© 2013 Pythian4
© 2013 Pythian5
Multitenant Architecture
Pre-12c Consolidation Options
Share
nothing
• Each Database on it’s own server
Share HW
• Multiple virtual machines on the same HW
Share HW
and OS
• Multiple databases on the same server
Share
HW, OS
and DB
• Multiple schemas in the same DB
Flexibility
Efficiency
© 2013 Pythian6
Consolidation options today (12c)
Share
nothing
• Each Database on it’s own server
Share HW
• Multiple virtual machines on the same HW
Share HW
and OS
• Multiple databases on the same server
Share HW,
OS and DB
• Multiple pluggable databases
• Multiple schemas in the same DB
Flexibility
Efficiency
© 2013 Pythian7
= Flexible and Efficient
Pre-12c Oracle Database Architecture
Requires memory, processes and database files
© 2013 Pythian8
12c Multitenant Architecture
Memory and processes required at Container DB level only
© 2013 Pythian9
PDBs
Root
Adding additional PDBs has
only a little memory overhead
Files in the CDB
• PDB owns
– User TS data files
– SYSTEM, SYSAUX
– TEMP (optional)
• Root owns
– SYSTEM, SYSAUX
– Redo logs
– UNDO
– TEMP
– Control Files
– (s)pfile
© 2013 Pythian10
Users and Privileges
• Local users
– Defined only in one PDB
– Connects to one PDB only
– Same as user schemas in
non-CDB
• Common Users
– Defined in Root
– Present in all PDBs
– Connects to PDBs where
“create session” is granted
– Starts with “C##” or “c##”
Authorization is checked in the container where the SQL is attempted
considering only the privileges that the user has in that container
• Locally granted Privileges
– Granted to any user in a
PDB (or Root)
– Applies to the PDB or Root
only
• Commonly granted
Privileges
– Only for common users
– Common roles can be
created
– Applies to all PDBs
© 2013 Pythian11
Plug / Unplug
Unplug from the old CDB…
© 2013 Pythian12
Plug / Unplug
…and plug into the new CDB
• PDBs are self-contained,
only metadata need to be
moved.
• Upgrading and patching
is a simple move from
one CDB to another.
© 2013 Pythian13
Plug / Unplug
unplug…
SQL> alter pluggable database PDB1 close immediate;
Pluggable database altered.
SQL> alter pluggable database PDB1 unplug into '/tmp/PDB1.xml';
Pluggable database altered.
© 2013 Pythian14
SQL> create pluggable database PDB2 using '/tmp/PDB1.xml';
Pluggable database created.
…plug
How to get to 12c Multitenant?
• In-place Upgrade to 12cand plug into CDB
• Migrate using Replication:
– Create PDB from Seed
– Use GG or DP to move data
• Use Full Transportable Export / Import (DP)
– copy all user data files
– Export metadata from source
– Import to an empty PDB
– Export available in 11.2.0.3
© 2013 Pythian15
CDB is Like a single database
• One Instance
• One buffer cache and shared pool
• One set of background processes
• Can be backed up all at once
• Can be Data Guard all at once
• Supports hundreds of applications in one CDB
• Do RMAN, data guard configuration once
• Global resource management
© 2013 Pythian16
CDB are Like Separate Databases
• Isolation of different applications
• No application changes required for consolidation
• Support for public synonyms without conflicts
• PDBs can be backed up individually
• startup / shutdown / recover PDBs individually
• Internal PDB resource management
• A client is unable to tell if it’s a PDB or a non-CDB
© 2013 Pythian17
Limitations of a Multitenant Architecture
• Same version/patches for all PDBs
• Limited ability to manage settings for each PDB
– Memory tuning for individual PDBs
– Some parameters can’t be set at PDB level.
(local_listener, diagnostic_dest)
• The same character set for all DBs
• Some operations don’t work within the CDB
– RMAN DUPLICATE to clone a PDB
• Maximum of 252 PDBs (too many?)
• Cloning a PDB requires the source to be in read only
mode © 2013 Pythian18
© 2013 Pythian19
Use Cases and Benefits
Manage as one
• Backups
– Backup whole CDB as one
– Restore/recover the whole CDB or PDBs individually.
• Data Guard
– Configure Data guard for the whole CDB at once
– Database roles are associated at CDB level.
– Switch/Fail-over happens for the whole CDB
– Role changes at PDB level are not possible.
© 2013 Pythian20
Patch as one
• Install patches once per CDB
• Effective in all PDBs immediately
© 2013 Pythian21
Upgrade as one
The old version CDB The new version CDB
© 2013 Pythian22
Simple cloning
Locally
SQL> create pluggable database test2 from test1;
Pluggable database created.
© 2013 Pythian23
Remotely using a DB Link
SQL> create pluggable database test2 from test1@remote;
Pluggable database created.
• The source PDB has to be in read-only mode
Storage snapshot ( on ACFS, ZFS Storage Appliance or NetApp?)
SQL> create pluggable database test2 from test1 snapshot copy;
Pluggable database created.
Multitenant works with RAC
• Same efficiency – one CDB instance per server
• RAC = Avoid downtime caused by node failures
• Advanced features
– Oracle Database Quality of Service Management
– Application Continuity
• Agility With Changing Workloads and Requirements
– No need to plan ahead which nodes the PDB is running on
– RAC, DG are features of CDB, plug the same PDB to enable these
features
© 2013 Pythian24
Mixed Workloads
• OLTP peak time is day
• DWH peak time is night
• Pre-12c DBs
– high resource allocation for peak use
– Low resource usage during non-peak
activity
• OLTP + DWH in the same CDB on
the same Hardware = efficient use
of resources
© 2013 Pythian25
0
20
40
60
80
100
day night day
OLTP
0
50
100
150
200
Pre-12c
0
50
100
150
day night day
12c
0
20
40
60
80
100
day night day
DWH
Perfect for Private Clouds
• Creating a DB
– Rapid provisioning
• From Seed
• From pre-created DB
• Into the requested
configuration
– Simplified cloning
– Quick cloning with copy-on-
write snapshots
• Improved and Simplified
AaaS
• Finally! DBaaS! © 2013 Pythian26
0
5
10
15
20
25
Non CDB PDB Clone PDB using
Copy-on-Write
File System
Time Taken to Provision New
Database (minutes)
© 2013 Pythian27
Summary
Benefits
• Saving resources
• Plug/unplug entire PDB database
• Rapid PDB cloning and
provisioning
• Separation of roles (PDB admin vs
CDB admin)
• Resource management
• Recovery of individual PDBs
• Quick starting / stopping of PDBs
• Agility
© 2013 Pythian28
Feature Availability
• Multitenant
– Enterprise Edition only
– Extra cost option
• Singletenant
– CDB with one PDB
• Useful for upgrades (Full Transportable Exp / Imp)
• Ability to use (un)plug feature without consolidation
– SE1 / SE / EE
– No Extra Cost
© 2013 Pythian29
License costs.
• List prices (August 16, 2013) per CPU
1. Oracle Multitenant 17,500$
2. Database Enterprise Edition 47,500$
3. Real Application Clusters 23,000$
4. Diagnostic Pack 5,000$
5. Tuning Pack 5,000$
6. Partitioning 11,500$
7. Cloud File System 5,000$
• +37% in addition to EE
• +19% in addition to EE + RAC + Part + Diag + Tun
© 2013 Pythian30
© 2013 Pythian31

More Related Content

What's hot (20)

PDF
Oracle 12c and its pluggable databases
Gustavo Rene Antunez
 
PPTX
Database Consolidation using the Oracle Multitenant Architecture
Pini Dibask
 
PDF
Reduce planned database down time with Oracle technology
Kirill Loifman
 
PPTX
Using oracle12c pluggable databases to archive
Secure-24
 
PDF
Plugging in oracle database 12c pluggable databases
Kellyn Pot'Vin-Gorman
 
PPTX
Introduction to Oracle Data Guard Broker
Zohar Elkayam
 
PPTX
Oracle 12c Architecture
AmeerpetTrainingOnline
 
PDF
Fast, Flexible Application Development with Oracle Database Cloud Service
Gustavo Rene Antunez
 
PDF
Oracle database 12c intro
pasalapudi
 
PDF
Architecting Your Own DBaaS in a Private Cloud with EM12c
Gustavo Rene Antunez
 
PDF
Oracle 12c New Features_RAC_slides
Saiful
 
PPTX
Oracle 12c Multi Tenant
Red Stack Tech
 
PDF
Oracle database high availability solutions
Kirill Loifman
 
PDF
RMAN in 12c: The Next Generation (PPT)
Gustavo Rene Antunez
 
PDF
How DBAs can garner the power of the Oracle Public Cloud?
Gustavo Rene Antunez
 
PPTX
Presentation day4 oracle12c
Pradeep Srivastava
 
PPTX
Collaborate 17 - Database consolidation using the oracle multitenant architec...
Pini Dibask
 
PDF
Things Every Oracle DBA Needs to Know about the Hadoop Ecosystem
Zohar Elkayam
 
PPTX
Product Update: EDB Postgres Platform 2017
EDB
 
PDF
OOW 17 - database consolidation using the oracle multitenant architecture
Pini Dibask
 
Oracle 12c and its pluggable databases
Gustavo Rene Antunez
 
Database Consolidation using the Oracle Multitenant Architecture
Pini Dibask
 
Reduce planned database down time with Oracle technology
Kirill Loifman
 
Using oracle12c pluggable databases to archive
Secure-24
 
Plugging in oracle database 12c pluggable databases
Kellyn Pot'Vin-Gorman
 
Introduction to Oracle Data Guard Broker
Zohar Elkayam
 
Oracle 12c Architecture
AmeerpetTrainingOnline
 
Fast, Flexible Application Development with Oracle Database Cloud Service
Gustavo Rene Antunez
 
Oracle database 12c intro
pasalapudi
 
Architecting Your Own DBaaS in a Private Cloud with EM12c
Gustavo Rene Antunez
 
Oracle 12c New Features_RAC_slides
Saiful
 
Oracle 12c Multi Tenant
Red Stack Tech
 
Oracle database high availability solutions
Kirill Loifman
 
RMAN in 12c: The Next Generation (PPT)
Gustavo Rene Antunez
 
How DBAs can garner the power of the Oracle Public Cloud?
Gustavo Rene Antunez
 
Presentation day4 oracle12c
Pradeep Srivastava
 
Collaborate 17 - Database consolidation using the oracle multitenant architec...
Pini Dibask
 
Things Every Oracle DBA Needs to Know about the Hadoop Ecosystem
Zohar Elkayam
 
Product Update: EDB Postgres Platform 2017
EDB
 
OOW 17 - database consolidation using the oracle multitenant architecture
Pini Dibask
 

Viewers also liked (13)

PPTX
Ensuring Data Protection Using Oracle Flashback Features - Presentation
Pini Dibask
 
PPTX
Simplify Consolidation with Oracle Pluggable Databases
omnidba
 
PPTX
Oracle REST Data Services Best Practices/ Overview
Kris Rice
 
PDF
Data mart consolidation
William McKnight
 
PPTX
Exadata x4 for_sap
Fran Navarro
 
PDF
Exploring Oracle Multitenant in Oracle Database 12c
Zohar Elkayam
 
PDF
Cosas que “probablemente” no sabes pero deberías de saber en Oracle 12c
Gustavo Rene Antunez
 
PPTX
Presentation upgrade, migrate & consolidate to oracle database 12c &amp...
solarisyougood
 
PDF
Oracle E-Business Suite R12.2.5 on Database 12c: Install, Patch and Administer
Andrejs Karpovs
 
PDF
Oracle Multitenant meets Oracle RAC - IOUG 2014 Version
Markus Michalewicz
 
PPTX
REST Enabling Your Oracle Database
Jeff Smith
 
DOCX
Solution Analytics : Oracle Advanced Analytics
Quentin Apruzzese
 
PPTX
Best New Features of Oracle Database 12c
Pini Dibask
 
Ensuring Data Protection Using Oracle Flashback Features - Presentation
Pini Dibask
 
Simplify Consolidation with Oracle Pluggable Databases
omnidba
 
Oracle REST Data Services Best Practices/ Overview
Kris Rice
 
Data mart consolidation
William McKnight
 
Exadata x4 for_sap
Fran Navarro
 
Exploring Oracle Multitenant in Oracle Database 12c
Zohar Elkayam
 
Cosas que “probablemente” no sabes pero deberías de saber en Oracle 12c
Gustavo Rene Antunez
 
Presentation upgrade, migrate & consolidate to oracle database 12c &amp...
solarisyougood
 
Oracle E-Business Suite R12.2.5 on Database 12c: Install, Patch and Administer
Andrejs Karpovs
 
Oracle Multitenant meets Oracle RAC - IOUG 2014 Version
Markus Michalewicz
 
REST Enabling Your Oracle Database
Jeff Smith
 
Solution Analytics : Oracle Advanced Analytics
Quentin Apruzzese
 
Best New Features of Oracle Database 12c
Pini Dibask
 
Ad

Similar to Simplify Consolidation with Oracle Database 12c (20)

PDF
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...
Alex Gorbachev
 
PDF
9.6_Course Material-Postgresql_002.pdf
sreedb2
 
PDF
Winning Performance Challenges in Oracle Multitenant
Pini Dibask
 
PDF
Database as a Service on the Oracle Database Appliance Platform
Maris Elsins
 
PDF
Winning performance challenges in oracle multitenant
Pini Dibask
 
PDF
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
Pini Dibask
 
PDF
Gloc gangler 2018._v4
Secure-24
 
PDF
Consolidate and prepare for cloud efficiencies
DLT Solutions
 
PDF
Using Oracle Multitenant to efficiently manage development and test databases
Marc Fielding
 
PDF
Migration to Oracle Multitenant
Jitendra Singh
 
PDF
IMS05 IMS V14 8gb osam for haldb
Robert Hain
 
PDF
COUG_AAbate_Oracle_Database_12c_New_Features
Alfredo Abate
 
PDF
Vijfhart thema-avond-oracle-12c-new-features
mkorremans
 
PDF
SOUG PDB Security, Isolation and DB Nest 20c
Stefan Oehrli
 
PDF
LDAP at Lightning Speed
C4Media
 
PDF
(ATS6-PLAT06) Maximizing AEP Performance
BIOVIA
 
PPTX
NGENSTOR_ODA_P2V_V5
UniFabric
 
PDF
Best practices for DB2 for z/OS log based recovery
Florence Dubois
 
PDF
Oracle Storage a ochrana dat
MarketingArrowECS_CZ
 
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...
Alex Gorbachev
 
9.6_Course Material-Postgresql_002.pdf
sreedb2
 
Winning Performance Challenges in Oracle Multitenant
Pini Dibask
 
Database as a Service on the Oracle Database Appliance Platform
Maris Elsins
 
Winning performance challenges in oracle multitenant
Pini Dibask
 
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
Pini Dibask
 
Gloc gangler 2018._v4
Secure-24
 
Consolidate and prepare for cloud efficiencies
DLT Solutions
 
Using Oracle Multitenant to efficiently manage development and test databases
Marc Fielding
 
Migration to Oracle Multitenant
Jitendra Singh
 
IMS05 IMS V14 8gb osam for haldb
Robert Hain
 
COUG_AAbate_Oracle_Database_12c_New_Features
Alfredo Abate
 
Vijfhart thema-avond-oracle-12c-new-features
mkorremans
 
SOUG PDB Security, Isolation and DB Nest 20c
Stefan Oehrli
 
LDAP at Lightning Speed
C4Media
 
(ATS6-PLAT06) Maximizing AEP Performance
BIOVIA
 
NGENSTOR_ODA_P2V_V5
UniFabric
 
Best practices for DB2 for z/OS log based recovery
Florence Dubois
 
Oracle Storage a ochrana dat
MarketingArrowECS_CZ
 
Ad

More from Maris Elsins (18)

PDF
An AWS DMS Replication Journey from Oracle to Aurora MySQL
Maris Elsins
 
PDF
Oracle Databases on AWS - Getting the Best Out of RDS and EC2
Maris Elsins
 
PDF
Migrating and Running DBs on Amazon RDS for Oracle
Maris Elsins
 
PDF
Mining AWR V2 - Trend Analysis
Maris Elsins
 
PDF
DB12c: All You Need to Know About the Resource Manager
Maris Elsins
 
PPTX
C15LV: Ins and Outs of Concurrent Processing Configuration in Oracle e-Busine...
Maris Elsins
 
PDF
Mining the AWR: Alternative Methods for Identification of the Top SQLs (inclu...
Maris Elsins
 
PPTX
LVOUG meetup #2 - Forcing SQL Execution Plan Instability
Maris Elsins
 
PDF
OUG Harmony 2012 - Using SQL Plan Baselines for Performance Testing
Maris Elsins
 
PPTX
LVOUG meetup #4 - Case Study 10g to 11g
Maris Elsins
 
PPTX
Surviving the Crisis With the Help of Oracle Database Resource Manager
Maris Elsins
 
PPTX
Concurrent Processing Performance Analysis for Apps DBAs
Maris Elsins
 
PPTX
10 ways to improve your rman script
Maris Elsins
 
PPTX
Wildcard13 - warmup slides for the "Roundtable discussion with Oracle Profess...
Maris Elsins
 
PDF
Whitepaper: Running Oracle e-Business Suite Database on Oracle Database Appli...
Maris Elsins
 
PDF
Running E-Business Suite Database on Oracle Database Appliance
Maris Elsins
 
PDF
Internals of concurent managers
Maris Elsins
 
PDF
Using SQL Plan Management for Performance Testing
Maris Elsins
 
An AWS DMS Replication Journey from Oracle to Aurora MySQL
Maris Elsins
 
Oracle Databases on AWS - Getting the Best Out of RDS and EC2
Maris Elsins
 
Migrating and Running DBs on Amazon RDS for Oracle
Maris Elsins
 
Mining AWR V2 - Trend Analysis
Maris Elsins
 
DB12c: All You Need to Know About the Resource Manager
Maris Elsins
 
C15LV: Ins and Outs of Concurrent Processing Configuration in Oracle e-Busine...
Maris Elsins
 
Mining the AWR: Alternative Methods for Identification of the Top SQLs (inclu...
Maris Elsins
 
LVOUG meetup #2 - Forcing SQL Execution Plan Instability
Maris Elsins
 
OUG Harmony 2012 - Using SQL Plan Baselines for Performance Testing
Maris Elsins
 
LVOUG meetup #4 - Case Study 10g to 11g
Maris Elsins
 
Surviving the Crisis With the Help of Oracle Database Resource Manager
Maris Elsins
 
Concurrent Processing Performance Analysis for Apps DBAs
Maris Elsins
 
10 ways to improve your rman script
Maris Elsins
 
Wildcard13 - warmup slides for the "Roundtable discussion with Oracle Profess...
Maris Elsins
 
Whitepaper: Running Oracle e-Business Suite Database on Oracle Database Appli...
Maris Elsins
 
Running E-Business Suite Database on Oracle Database Appliance
Maris Elsins
 
Internals of concurent managers
Maris Elsins
 
Using SQL Plan Management for Performance Testing
Maris Elsins
 

Recently uploaded (20)

PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
July Patch Tuesday
Ivanti
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 

Simplify Consolidation with Oracle Database 12c

  • 1. Simplify Consolidation with Oracle Database 12c Oracle Multitenant Maris Elsins Co-Authors: Marc Fielding, Alex Gorbachev and Oracle! September 18, 2013
  • 2. Māris Elsiņš • 8y+ Oracle [Apps] DBA, 3y PL/SQL Developer • Oracle Applications DBA / TTL at Pythian • Oracle Certified Master • Oracle Certified Professional 9i, 10g, 11g, 11i, R12 • Frequent Speaker (15) UKOUG, OUGF, LVOUG, Collaborate, … • Blogger http://www.pythian.com/blog/author/elsins/ • MarisElsins, Maris.Elsins, , • FAN of BAAG (BattleAgainstAnyGuess.com) 2 © 2013 Pythian
  • 3. Who is Pythian? • 15 Years of Data infrastructure management consulting • 170+ Top brands • 6000+ databases under management • Over 200 DBA’s, in 26 countries • Top 5% of DBA work force, 9 Oracle ACE’s, 2 Microsoft MVP’s • Oracle, Microsoft, MySQL partners, Netezza, Hadoop and MongoDB plus UNIX Sysadmin and Oracle apps © 2013 Pythian3
  • 4. Agenda • Multitenant Architecture • Use cases and benefits © 2013 Pythian4
  • 6. Pre-12c Consolidation Options Share nothing • Each Database on it’s own server Share HW • Multiple virtual machines on the same HW Share HW and OS • Multiple databases on the same server Share HW, OS and DB • Multiple schemas in the same DB Flexibility Efficiency © 2013 Pythian6
  • 7. Consolidation options today (12c) Share nothing • Each Database on it’s own server Share HW • Multiple virtual machines on the same HW Share HW and OS • Multiple databases on the same server Share HW, OS and DB • Multiple pluggable databases • Multiple schemas in the same DB Flexibility Efficiency © 2013 Pythian7 = Flexible and Efficient
  • 8. Pre-12c Oracle Database Architecture Requires memory, processes and database files © 2013 Pythian8
  • 9. 12c Multitenant Architecture Memory and processes required at Container DB level only © 2013 Pythian9 PDBs Root Adding additional PDBs has only a little memory overhead
  • 10. Files in the CDB • PDB owns – User TS data files – SYSTEM, SYSAUX – TEMP (optional) • Root owns – SYSTEM, SYSAUX – Redo logs – UNDO – TEMP – Control Files – (s)pfile © 2013 Pythian10
  • 11. Users and Privileges • Local users – Defined only in one PDB – Connects to one PDB only – Same as user schemas in non-CDB • Common Users – Defined in Root – Present in all PDBs – Connects to PDBs where “create session” is granted – Starts with “C##” or “c##” Authorization is checked in the container where the SQL is attempted considering only the privileges that the user has in that container • Locally granted Privileges – Granted to any user in a PDB (or Root) – Applies to the PDB or Root only • Commonly granted Privileges – Only for common users – Common roles can be created – Applies to all PDBs © 2013 Pythian11
  • 12. Plug / Unplug Unplug from the old CDB… © 2013 Pythian12
  • 13. Plug / Unplug …and plug into the new CDB • PDBs are self-contained, only metadata need to be moved. • Upgrading and patching is a simple move from one CDB to another. © 2013 Pythian13
  • 14. Plug / Unplug unplug… SQL> alter pluggable database PDB1 close immediate; Pluggable database altered. SQL> alter pluggable database PDB1 unplug into '/tmp/PDB1.xml'; Pluggable database altered. © 2013 Pythian14 SQL> create pluggable database PDB2 using '/tmp/PDB1.xml'; Pluggable database created. …plug
  • 15. How to get to 12c Multitenant? • In-place Upgrade to 12cand plug into CDB • Migrate using Replication: – Create PDB from Seed – Use GG or DP to move data • Use Full Transportable Export / Import (DP) – copy all user data files – Export metadata from source – Import to an empty PDB – Export available in 11.2.0.3 © 2013 Pythian15
  • 16. CDB is Like a single database • One Instance • One buffer cache and shared pool • One set of background processes • Can be backed up all at once • Can be Data Guard all at once • Supports hundreds of applications in one CDB • Do RMAN, data guard configuration once • Global resource management © 2013 Pythian16
  • 17. CDB are Like Separate Databases • Isolation of different applications • No application changes required for consolidation • Support for public synonyms without conflicts • PDBs can be backed up individually • startup / shutdown / recover PDBs individually • Internal PDB resource management • A client is unable to tell if it’s a PDB or a non-CDB © 2013 Pythian17
  • 18. Limitations of a Multitenant Architecture • Same version/patches for all PDBs • Limited ability to manage settings for each PDB – Memory tuning for individual PDBs – Some parameters can’t be set at PDB level. (local_listener, diagnostic_dest) • The same character set for all DBs • Some operations don’t work within the CDB – RMAN DUPLICATE to clone a PDB • Maximum of 252 PDBs (too many?) • Cloning a PDB requires the source to be in read only mode © 2013 Pythian18
  • 19. © 2013 Pythian19 Use Cases and Benefits
  • 20. Manage as one • Backups – Backup whole CDB as one – Restore/recover the whole CDB or PDBs individually. • Data Guard – Configure Data guard for the whole CDB at once – Database roles are associated at CDB level. – Switch/Fail-over happens for the whole CDB – Role changes at PDB level are not possible. © 2013 Pythian20
  • 21. Patch as one • Install patches once per CDB • Effective in all PDBs immediately © 2013 Pythian21
  • 22. Upgrade as one The old version CDB The new version CDB © 2013 Pythian22
  • 23. Simple cloning Locally SQL> create pluggable database test2 from test1; Pluggable database created. © 2013 Pythian23 Remotely using a DB Link SQL> create pluggable database test2 from test1@remote; Pluggable database created. • The source PDB has to be in read-only mode Storage snapshot ( on ACFS, ZFS Storage Appliance or NetApp?) SQL> create pluggable database test2 from test1 snapshot copy; Pluggable database created.
  • 24. Multitenant works with RAC • Same efficiency – one CDB instance per server • RAC = Avoid downtime caused by node failures • Advanced features – Oracle Database Quality of Service Management – Application Continuity • Agility With Changing Workloads and Requirements – No need to plan ahead which nodes the PDB is running on – RAC, DG are features of CDB, plug the same PDB to enable these features © 2013 Pythian24
  • 25. Mixed Workloads • OLTP peak time is day • DWH peak time is night • Pre-12c DBs – high resource allocation for peak use – Low resource usage during non-peak activity • OLTP + DWH in the same CDB on the same Hardware = efficient use of resources © 2013 Pythian25 0 20 40 60 80 100 day night day OLTP 0 50 100 150 200 Pre-12c 0 50 100 150 day night day 12c 0 20 40 60 80 100 day night day DWH
  • 26. Perfect for Private Clouds • Creating a DB – Rapid provisioning • From Seed • From pre-created DB • Into the requested configuration – Simplified cloning – Quick cloning with copy-on- write snapshots • Improved and Simplified AaaS • Finally! DBaaS! © 2013 Pythian26 0 5 10 15 20 25 Non CDB PDB Clone PDB using Copy-on-Write File System Time Taken to Provision New Database (minutes)
  • 28. Benefits • Saving resources • Plug/unplug entire PDB database • Rapid PDB cloning and provisioning • Separation of roles (PDB admin vs CDB admin) • Resource management • Recovery of individual PDBs • Quick starting / stopping of PDBs • Agility © 2013 Pythian28
  • 29. Feature Availability • Multitenant – Enterprise Edition only – Extra cost option • Singletenant – CDB with one PDB • Useful for upgrades (Full Transportable Exp / Imp) • Ability to use (un)plug feature without consolidation – SE1 / SE / EE – No Extra Cost © 2013 Pythian29
  • 30. License costs. • List prices (August 16, 2013) per CPU 1. Oracle Multitenant 17,500$ 2. Database Enterprise Edition 47,500$ 3. Real Application Clusters 23,000$ 4. Diagnostic Pack 5,000$ 5. Tuning Pack 5,000$ 6. Partitioning 11,500$ 7. Cloud File System 5,000$ • +37% in addition to EE • +19% in addition to EE + RAC + Part + Diag + Tun © 2013 Pythian30