SlideShare a Scribd company logo
1 of 59
Download to read offline
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Oracle Multitenant
A new architecture for consolidating databases and simplifying operations in the cloud
Arush Jain
Senior Consultant
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Agenda
Rethinking Architecture for the Database Cloud
Multitenant Architecture
Capabilities Enabled
Managing Multitenant Environment
Upgrading to Multitenant
Use Cases & Customer Successes
1
2
3
4
5
Oracle Confidential – Internal/Restricted/Highly Restricted 3
6
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Agenda
Rethinking Architecture for the Database Cloud
Multitenant Architecture
Capabilities Enabled
Managing Multitenant Environment
Upgrading to Multitenant
Use Cases & Customer Successes
1
2
3
4
5
4
6
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Database Consolidation on Clouds
Traditional consolidation methods
Schema Consolidation
ConsolidationDensity
5
Shared Servers Shared Servers & OS Shared Servers, OS, & Database
Virtual Machines Clustered Databases
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Oracle Multitenant
Simplifies consolidation; enables Database as a Service
Multitenant Database
6
Schema Consolidation
ConsolidationDensity
Shared Servers & OS Shared Servers, OS, & Database
Virtual Machines Clustered Databases
Shared Servers
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Agenda
Rethinking Architecture for the Database Cloud
Multitenant Architecture
Capabilities Enabled
Managing Multitenant Environment
Upgrading to Multitenant
Use Cases & Customer Successes
1
2
3
4
5
7
6
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Oracle Database Architecture
Requires memory, processes and database files
8
System Resources
GL OE AP
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
APOEGL
New Multitenant Architecture
Memory and processes required at container level only
9
System Resources
GL OE AP
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
GL OE AP
Oracle Database Architecture
More efficient utilization of system resources
10
System Resources
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Multitenant Architecture
Components of a Multitenant Container Database (CDB)
11
Pluggable Databases
PDBs
Root
CDB
Multitenant Container Database
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Multitenant Architecture
• Multitenant architecture can currently
support up to 252 PDBs
• PDB / non-CDB compatibility guarantee:
You cannot tell, from the viewpoint of
a connected client, if you’re using a
PDB or a non-CDB
DB Link
GL OE AP
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
A Pluggable Database Is a Portable Database
13
Unplugging a PDB and plugging it in
GL OE AP
PO AP
• Simply unplug from the old
CDB…
• …and plug it into the new CDB
• 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.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Unplug / Plug – Orchestration Performed Using SQL
You already know how to use it!
alter pluggable database OE
unplug into '/u01/app/oracle/oradata/…/oe.xml'
create pluggable database My_PDB
using '/u01/app/oracle/oradata/…/oe.xml'
Plug
Unplug
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Multitenant Scalability
Only small increments in memory as additional PDBs are added
0
0.5
1
1.5
2
2.5
3
GL OE AP
GB
Pluggable Database
MEMORY
0
0.5
1
1.5
2
2.5
3
GL OE AP PO
GB
Pluggable Database
MEMORY
0
0.5
1
1.5
2
2.5
3
GL OE AP PO AR
GB
Pluggable Database
MEMORY
GL OE AP PO HR
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Multitenant vs Separate Databases
• OLTP benchmark
comparison
• Only 3GB of memory
vs. 20GB memory used
for 50 databases
• Multitenant
architecture scaled to
over 250 db’s while
separate database
instances maxed at 50
Highly Efficient: 6x Less H/w resource, 5x more scalable
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
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
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Utilize Spare Capacity
• Standalone systems seldom perfectly sized for workload
• They must be “configured for high water”
– Basic requirement is to be big enough
– Efficient use of resources secondary consideration
Consolidate to make more efficient use of capacity
Unconsolidated Consolidated
• Consolidated Server
– Comparable aggregate capacity
– Greater productive resource utilization
– Higher consolidation density
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Agenda
Rethinking Architecture for the Database Cloud
Multitenant Architecture
Capabilities Enabled
Managing Multitenant Environment
Upgrading to Multitenant
Use Cases & Customer Successes
1
2
3
4
5
19
6
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Manage Many Databases as One
Backup databases as one; recover at pluggable database Level
20
GL OE AP
Point-in-time recovery at pluggable database level
One Backup
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Manage Many Databases as One with Multitenant
One standby database covers all pluggable databases
21
Production Container Database
GL OE AP GL OE
Standby Container Database
AP
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Simplified Patching and Upgrades
Apply changes once, all pluggable databases updated
22
GL OE AP
In-place
12.1 12.1 12.112.X 12.X 12.X
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Simplified Patching and Upgrades
Flexible choice when patching & upgrading databases
23
Original Container Database 12.1
GL OE AP GL OE
Upgraded Container Database 12.x
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
SILVER
BRONZE
GOLD
Unprecedented Agility with Portable Pluggability
PDB migrates through SLAs as it becomes more mission critical
24
RAC, Data Guard
RAC
Backups
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
• Consolidation with Multitenant frees up
– Memory
– CPU Cycles
• Oracle Database In-Memory wants
– Memory
– CPU Cycles
25
Database In-Memory Works (Better) with Multitenant
GL OE
AP
Multitenant consolidation “gives back” resources that DB In-Memory needs
Column Format
Order Fact
DB In-Memory
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Agenda
Rethinking Architecture for the Database Cloud
Multitenant Architecture
Capabilities Enabled
Managing Multitenant Environment
Upgrading to Multitenant
Use Cases & Customer Successes
1
2
3
4
5
26
6
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Managing Shared Resources
Resource management in a multitenant environment
27
GL OE AP
High Priority Medium Priority Low Priority
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Manage CPU
Pluggable Database Shares Guaranteed CPU Maximum CPU
GL 2 2/4 = 50% 100%
OE 1 1/4 = 25% 100%
AP 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
GL OE AP
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Agenda
Rethinking Architecture for the Database Cloud
Multitenant Architecture
Capabilities Enabled
Managing Multitenant Environment
Upgrading to Multitenant
Use Cases & Customer Successes
1
2
3
4
5
Oracle Confidential – Internal/Restricted/Highly Restricted 29
6
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
GL
12.1
AP
12.1
OE
12.1
Upgrading to Multitenant
Step 1. Upgrade databases in place
In-place
GL
10.2
AP
11.1
OE
11.2
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
GL
12.1
AP
12.1
OE
12.1
Upgrading to Multitenant
Step 2. Plug in upgraded databases
GL
12.1
AP
12.1
OE
12.1 12.1
GL
12.1
AP
12.1
OE
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Step 3. Change applications to work with MultitenantStep 3. Change applications to work with Multitenant
Upgrading to Multitenant
• No application changes required!
GL
12.1
AP
12.1
OE
12.1
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Migrate Using Replication
① Provision new PDBs 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.)
Seed
GL OE
OEGL
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Expand cluster to support flexible consolidation model
Improved Agility With Changing Workloads
Services
Single SGA per
CDB Instance
Node 1
CDB Instance 1
Node 2
CDB Instance 2
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Node 1
Expand cluster to support flexible consolidation model
Improved Agility With Changing Workloads
Node 3
CDB Instance 3CDB Instance 1
Node 2
CDB Instance 2
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Soc. Sec. #
115-69-3428
DOB
11/06/71
PIN
5623
Policy
enforced redaction
of sensitive data
Oracle Redacting Sensitive Data
Mask Application Data Dynamically
Call Center
Operator
Payroll
Processing
Call Centers
Decision Support Systems
Systems with PII, PHI, PCI data
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Information Lifecycle Management
• Oracle Information Lifecycle Management (ILM) is a set of automated solutions that work with the
Oracle Database to enable the usage of multi-tier storage to dramatically lower the cost of storing
application data.
• ILM combines the Oracle Partitioning technology that moves data to the appropriate storage tier
based on its activity level, with Oracle Advanced Compression to reduce the amount of disk space
data requires.
• The benefits of Oracle ILM come from the fact that it:
– Works at the database level with no application changes
– Reduces disk space requirements for all types of data
– Automates the movement of data to lower cost storage based on activity patterns
– Lowers query times by keeping only active data on high performance storage
– Increases availability to critical information on the most reliable storage
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Temporal Validity
• VALID TIME rows are stored in the base table itself
• By default, queries see all rows in the table
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Enterprise Manager Express 12c
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
What is SQL Tuning?
Introduction to SQL Tuning
SQL tuning involves the following basic steps:
• Identifying high load or top SQL statements that are responsible for a large share of the application workload and system
resources, by reviewing past SQL execution history available in the system
• Verifying that the execution plans produced by the query optimizer for these statements perform reasonably
• Implementing corrective actions to generate better execution plans for poorly performing SQL statements
• The previous steps are repeated until the system performance reaches a satisfactory level or no more statements can be tuned.
Goals for Tuning
The objective of tuning a system is either to reduce the response time for end users of the system, or to reduce the resources used to
process the same work. You can accomplish both of these objectives in several ways:
• Reduce the Workload
• Balance the Workload
• Parallelize the Workload
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
SQL Tuning New Features
• Adaptive SQL Plan Management
• Adaptive Execution Plan
• Optimizer Statistics Management
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Heat Map
• A “Heat Map” of the Database
– Database level Heat Map shows which tables and partitions are being
used
– Block level Heat Map shows last modification at the block level
• Comprehensive
– Segment level shows both reads and writes
– Distinguishes index lookups from full scans
– Automatically excludes stats gathering, DDLs or table redefinition
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Automatic Data Optimization
• Tables grow in size ILM policies
compress data
• Tablespace containing
partitions reaches ILM tiering
threshold
• Partitions are moved to
different tablespce on lower
spec disk group
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Oracle Application Continuity
• Database and infrastructure outages can cause in-flight work to be lost, leaving users and
applications in-doubt
• Often leads to
 User pains
 Duplicate submissions
 Rebooting mid-tiers
 Developer pains
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Unknown Transaction State
Application Servers
Database Servers
End User
Current Situation
Network Switches
User selects product from
application and purchases it from
the web checkout
User transaction arrives at
application infrastructure. It makes
it’s way through the application
tiers and results in a database
transaction being created
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Application Servers
Database Servers
End User
Network Switches
User transaction arrives at
application infrastructure and
makes it’s way through application
tiers and results in a database
transaction being created
The transaction commits inside of
the database and an
acknowledgement begins it return
journey
A failure in the infrastructure on its
return journey means the
application server never receives an
acknowledgment
Unknown Transaction State
Current Situation
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Application Servers
Database Servers
End User
Network Switches
The application is left in an
unknown state. It returns an error
to the user who may order the
product for a second time resulting
in them potentially being charged
twice.
Unknown Transaction State
Current Situation
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Oracle Application Continuity
Application Servers
Database Servers
End User
A reliable replay of in flight work
Network Switches
User selects product from
application and purchases it from
the web checkout
User transaction arrives at
application infrastructure. It makes
it’s way through the application
tiers and results in a database
transaction being created
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Application Servers
Database Servers
End User
Network Switches The infrastructure hosting the
database fails just before the
transaction is committed to the
database.
Oracle Application Continuity
A reliable replay of in flight work
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Application Servers
Database Servers
End User
Network Switches
The jdbc driver detects the failure
and checks with an available node
in the cluster, using “Transaction
Guard”, whether the transaction
committed or needs to be replayed
If the transaction needs to be
replayed, “Application Continuity”
will submit all of the inflight work to
a surviving node in the cluster and
perform a commit. This all happens
transparently to the application
Oracle Application Continuity
A reliable replay of in flight work
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Application Servers
Database Servers
End User
Network Switches
The user receives confirmation that
his order has been successfully
completed.
Oracle Application Continuity
A reliable replay of in flight work
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Agenda
Rethinking Architecture for the Database Cloud
Multitenant Architecture
Capabilities Enabled
Managing Multitenant Environment
Upgrading to Multitenant
Use Cases & Customer Successes
1
2
3
4
5
Oracle Confidential – Internal/Restricted/Highly Restricted 52
6
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Multitenant for Development and Testing
Fast, flexible copy and snapshot of pluggable databases
Development Container Database
53
Production Container Database
GL OE AP
GL
Master
GL
(Dev2)
GL
(Dev1)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
✔8
✔
SILVER
BRONZE
GOLD
✔
✔
Oracle Multitenant for Database as a Service
Pick from standard sizes and service levels
54
RAC, Data Guard
RAC
Backupssmall
large
medium
✔
8
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Consolidation of Disparate Applications
Simplify, standardize, reduce risk, lower costs and upgrade SLAs with Multitenant
Scalability and High Availability Limited
Available Capacity
SILVER
Oracle Database 12c – Multitenant Container Database – Silver SLA
11g
9i
11g
10g
11g
10g
MySQL SQL Server
Oracle Conversion Utilities
55
“Deferred” Maintenance:
• Behind on Patches
• Seldom Backed Up
12c
12c
12c
12c
12c
12c
Databases
To Manage
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Multitenancy implemented by the Database, not the Application
56
Oracle Multitenant for Software as a Service
Customer 1 Customer 2 Customer 3 Customer 4 Customer 5 Customer 6 Customer 7
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Multitenant. Perfect for ISVs
Packaged apps and reference data are easily distributed
57
OE AP
Jolt! Applications Corporation
Development Container Database
OE AP
Customer Container Database
GL APJolt!
v7.3
Jolt!
v8.2
Jolt!
v8.2
Jolt!
v8.2
Jolt!
V7.3
Jolt!
V6.1
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 58
Multitenant Full Deck Jan 2015 Cloud Team AJ Linkedin

More Related Content

What's hot

What's hot (20)

SoftLayer Storage Services Overview
SoftLayer Storage Services OverviewSoftLayer Storage Services Overview
SoftLayer Storage Services Overview
 
Check Point automatizace a orchestrace
Check Point automatizace a orchestraceCheck Point automatizace a orchestrace
Check Point automatizace a orchestrace
 
Security implementation on hadoop
Security implementation on hadoopSecurity implementation on hadoop
Security implementation on hadoop
 
Migration to Alibaba Cloud
Migration to Alibaba CloudMigration to Alibaba Cloud
Migration to Alibaba Cloud
 
Azure Stack Overview (Dec/2018)
Azure Stack Overview (Dec/2018)Azure Stack Overview (Dec/2018)
Azure Stack Overview (Dec/2018)
 
Kafka Security
Kafka SecurityKafka Security
Kafka Security
 
Smart Cloud Webinar 2014-02-13 Introduction to Softlayer IaaS MDB
Smart Cloud Webinar 2014-02-13 Introduction to Softlayer IaaS MDBSmart Cloud Webinar 2014-02-13 Introduction to Softlayer IaaS MDB
Smart Cloud Webinar 2014-02-13 Introduction to Softlayer IaaS MDB
 
Consolidating File Servers into the Cloud
Consolidating File Servers into the CloudConsolidating File Servers into the Cloud
Consolidating File Servers into the Cloud
 
Power of OpenStack & Hadoop
Power of OpenStack & HadoopPower of OpenStack & Hadoop
Power of OpenStack & Hadoop
 
AWS database services
AWS database servicesAWS database services
AWS database services
 
Eucalyptus-AWS Hybrid Using RightScale myCloud
Eucalyptus-AWS Hybrid Using RightScale myCloudEucalyptus-AWS Hybrid Using RightScale myCloud
Eucalyptus-AWS Hybrid Using RightScale myCloud
 
Getting Started with MariaDB with Docker
Getting Started with MariaDB with DockerGetting Started with MariaDB with Docker
Getting Started with MariaDB with Docker
 
Novinky v Oracle Database 18c
Novinky v Oracle Database 18cNovinky v Oracle Database 18c
Novinky v Oracle Database 18c
 
SoftLayer Cloud Services
SoftLayer Cloud ServicesSoftLayer Cloud Services
SoftLayer Cloud Services
 
Ask The Architect: RightScale & AWS Dive Deep into Hybrid IT
Ask The Architect: RightScale & AWS Dive Deep into Hybrid ITAsk The Architect: RightScale & AWS Dive Deep into Hybrid IT
Ask The Architect: RightScale & AWS Dive Deep into Hybrid IT
 
New Roles In The Cloud
New Roles In The CloudNew Roles In The Cloud
New Roles In The Cloud
 
(ENT201) New Generation Hybrid Architectures with Suncorp, NetApp, and AWS | ...
(ENT201) New Generation Hybrid Architectures with Suncorp, NetApp, and AWS | ...(ENT201) New Generation Hybrid Architectures with Suncorp, NetApp, and AWS | ...
(ENT201) New Generation Hybrid Architectures with Suncorp, NetApp, and AWS | ...
 
Amazon WorkSpaces - Fully Managed Desktops in the Cloud
Amazon WorkSpaces - Fully Managed Desktops in the Cloud Amazon WorkSpaces - Fully Managed Desktops in the Cloud
Amazon WorkSpaces - Fully Managed Desktops in the Cloud
 
App Associates : Leveraging AWS for Oracle Workloads
App Associates : Leveraging AWS for Oracle WorkloadsApp Associates : Leveraging AWS for Oracle Workloads
App Associates : Leveraging AWS for Oracle Workloads
 
How to Make Your Move to the Cloud with Confidence
How to Make Your Move to the Cloud with ConfidenceHow to Make Your Move to the Cloud with Confidence
How to Make Your Move to the Cloud with Confidence
 

Similar to Multitenant Full Deck Jan 2015 Cloud Team AJ Linkedin

Simplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable DatabasesSimplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable Databases
omnidba
 

Similar to Multitenant Full Deck Jan 2015 Cloud Team AJ Linkedin (20)

Consolidate and prepare for cloud efficiencies
Consolidate and prepare for cloud efficienciesConsolidate and prepare for cloud efficiencies
Consolidate and prepare for cloud efficiencies
 
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
 
OOW-TBE-12c-CON7307-Sharable
OOW-TBE-12c-CON7307-SharableOOW-TBE-12c-CON7307-Sharable
OOW-TBE-12c-CON7307-Sharable
 
Oracle Database 12c : Multitenant
Oracle Database 12c : MultitenantOracle Database 12c : Multitenant
Oracle Database 12c : Multitenant
 
Multi-Tenancy: Da Teoria à Prática, do DB ao Middleware
Multi-Tenancy: Da Teoria à Prática, do DB ao MiddlewareMulti-Tenancy: Da Teoria à Prática, do DB ao Middleware
Multi-Tenancy: Da Teoria à Prática, do DB ao Middleware
 
Oracle Multitenant in 50 minutes
Oracle Multitenant in 50 minutesOracle Multitenant in 50 minutes
Oracle Multitenant in 50 minutes
 
Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster
 
Oracle Multitenant meets Oracle RAC - IOUG 2014 Version
Oracle Multitenant meets Oracle RAC - IOUG 2014 VersionOracle Multitenant meets Oracle RAC - IOUG 2014 Version
Oracle Multitenant meets Oracle RAC - IOUG 2014 Version
 
The Good, The Bad and the Ugly
The Good, The Bad and the UglyThe Good, The Bad and the Ugly
The Good, The Bad and the Ugly
 
Simplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable DatabasesSimplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable Databases
 
New Not Your Father's Enterprise Manager
New Not Your Father's Enterprise ManagerNew Not Your Father's Enterprise Manager
New Not Your Father's Enterprise Manager
 
Oracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra PasalapudiOracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra Pasalapudi
 
Latest Innovations in Database as a Service Enabled by Oracle Enterprise Manager
Latest Innovations in Database as a Service Enabled by Oracle Enterprise ManagerLatest Innovations in Database as a Service Enabled by Oracle Enterprise Manager
Latest Innovations in Database as a Service Enabled by Oracle Enterprise Manager
 
Maximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19cMaximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19c
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for Consolidation
 
Oracle Database Cloud Fleet Maintenance
Oracle Database Cloud Fleet MaintenanceOracle Database Cloud Fleet Maintenance
Oracle Database Cloud Fleet Maintenance
 
con8832-cloudha-2811114.pdf
con8832-cloudha-2811114.pdfcon8832-cloudha-2811114.pdf
con8832-cloudha-2811114.pdf
 
Oracle Multitenant - organized by Orient ITM - 12 Jul 2014
Oracle Multitenant - organized by  Orient ITM - 12 Jul 2014Oracle Multitenant - organized by  Orient ITM - 12 Jul 2014
Oracle Multitenant - organized by Orient ITM - 12 Jul 2014
 
Whats new in Oracle Database 12c release 12.1.0.2
Whats new in Oracle Database 12c release 12.1.0.2Whats new in Oracle Database 12c release 12.1.0.2
Whats new in Oracle Database 12c release 12.1.0.2
 
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
 

Multitenant Full Deck Jan 2015 Cloud Team AJ Linkedin

  • 1.
  • 2. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Oracle Multitenant A new architecture for consolidating databases and simplifying operations in the cloud Arush Jain Senior Consultant
  • 3. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Agenda Rethinking Architecture for the Database Cloud Multitenant Architecture Capabilities Enabled Managing Multitenant Environment Upgrading to Multitenant Use Cases & Customer Successes 1 2 3 4 5 Oracle Confidential – Internal/Restricted/Highly Restricted 3 6
  • 4. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Agenda Rethinking Architecture for the Database Cloud Multitenant Architecture Capabilities Enabled Managing Multitenant Environment Upgrading to Multitenant Use Cases & Customer Successes 1 2 3 4 5 4 6
  • 5. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Database Consolidation on Clouds Traditional consolidation methods Schema Consolidation ConsolidationDensity 5 Shared Servers Shared Servers & OS Shared Servers, OS, & Database Virtual Machines Clustered Databases
  • 6. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Oracle Multitenant Simplifies consolidation; enables Database as a Service Multitenant Database 6 Schema Consolidation ConsolidationDensity Shared Servers & OS Shared Servers, OS, & Database Virtual Machines Clustered Databases Shared Servers
  • 7. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Agenda Rethinking Architecture for the Database Cloud Multitenant Architecture Capabilities Enabled Managing Multitenant Environment Upgrading to Multitenant Use Cases & Customer Successes 1 2 3 4 5 7 6
  • 8. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Oracle Database Architecture Requires memory, processes and database files 8 System Resources GL OE AP
  • 9. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | APOEGL New Multitenant Architecture Memory and processes required at container level only 9 System Resources GL OE AP
  • 10. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | GL OE AP Oracle Database Architecture More efficient utilization of system resources 10 System Resources
  • 11. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Multitenant Architecture Components of a Multitenant Container Database (CDB) 11 Pluggable Databases PDBs Root CDB Multitenant Container Database
  • 12. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Multitenant Architecture • Multitenant architecture can currently support up to 252 PDBs • PDB / non-CDB compatibility guarantee: You cannot tell, from the viewpoint of a connected client, if you’re using a PDB or a non-CDB DB Link GL OE AP
  • 13. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | A Pluggable Database Is a Portable Database 13 Unplugging a PDB and plugging it in GL OE AP PO AP • Simply unplug from the old CDB… • …and plug it into the new CDB • 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.
  • 14. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Unplug / Plug – Orchestration Performed Using SQL You already know how to use it! alter pluggable database OE unplug into '/u01/app/oracle/oradata/…/oe.xml' create pluggable database My_PDB using '/u01/app/oracle/oradata/…/oe.xml' Plug Unplug
  • 15. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Multitenant Scalability Only small increments in memory as additional PDBs are added 0 0.5 1 1.5 2 2.5 3 GL OE AP GB Pluggable Database MEMORY 0 0.5 1 1.5 2 2.5 3 GL OE AP PO GB Pluggable Database MEMORY 0 0.5 1 1.5 2 2.5 3 GL OE AP PO AR GB Pluggable Database MEMORY GL OE AP PO HR
  • 16. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Multitenant vs Separate Databases • OLTP benchmark comparison • Only 3GB of memory vs. 20GB memory used for 50 databases • Multitenant architecture scaled to over 250 db’s while separate database instances maxed at 50 Highly Efficient: 6x Less H/w resource, 5x more scalable
  • 17. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 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
  • 18. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Utilize Spare Capacity • Standalone systems seldom perfectly sized for workload • They must be “configured for high water” – Basic requirement is to be big enough – Efficient use of resources secondary consideration Consolidate to make more efficient use of capacity Unconsolidated Consolidated • Consolidated Server – Comparable aggregate capacity – Greater productive resource utilization – Higher consolidation density
  • 19. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Agenda Rethinking Architecture for the Database Cloud Multitenant Architecture Capabilities Enabled Managing Multitenant Environment Upgrading to Multitenant Use Cases & Customer Successes 1 2 3 4 5 19 6
  • 20. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Manage Many Databases as One Backup databases as one; recover at pluggable database Level 20 GL OE AP Point-in-time recovery at pluggable database level One Backup
  • 21. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Manage Many Databases as One with Multitenant One standby database covers all pluggable databases 21 Production Container Database GL OE AP GL OE Standby Container Database AP
  • 22. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Simplified Patching and Upgrades Apply changes once, all pluggable databases updated 22 GL OE AP In-place 12.1 12.1 12.112.X 12.X 12.X
  • 23. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Simplified Patching and Upgrades Flexible choice when patching & upgrading databases 23 Original Container Database 12.1 GL OE AP GL OE Upgraded Container Database 12.x
  • 24. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | SILVER BRONZE GOLD Unprecedented Agility with Portable Pluggability PDB migrates through SLAs as it becomes more mission critical 24 RAC, Data Guard RAC Backups
  • 25. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | • Consolidation with Multitenant frees up – Memory – CPU Cycles • Oracle Database In-Memory wants – Memory – CPU Cycles 25 Database In-Memory Works (Better) with Multitenant GL OE AP Multitenant consolidation “gives back” resources that DB In-Memory needs Column Format Order Fact DB In-Memory
  • 26. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Agenda Rethinking Architecture for the Database Cloud Multitenant Architecture Capabilities Enabled Managing Multitenant Environment Upgrading to Multitenant Use Cases & Customer Successes 1 2 3 4 5 26 6
  • 27. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Managing Shared Resources Resource management in a multitenant environment 27 GL OE AP High Priority Medium Priority Low Priority
  • 28. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Manage CPU Pluggable Database Shares Guaranteed CPU Maximum CPU GL 2 2/4 = 50% 100% OE 1 1/4 = 25% 100% AP 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 GL OE AP
  • 29. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Agenda Rethinking Architecture for the Database Cloud Multitenant Architecture Capabilities Enabled Managing Multitenant Environment Upgrading to Multitenant Use Cases & Customer Successes 1 2 3 4 5 Oracle Confidential – Internal/Restricted/Highly Restricted 29 6
  • 30. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | GL 12.1 AP 12.1 OE 12.1 Upgrading to Multitenant Step 1. Upgrade databases in place In-place GL 10.2 AP 11.1 OE 11.2
  • 31. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | GL 12.1 AP 12.1 OE 12.1 Upgrading to Multitenant Step 2. Plug in upgraded databases GL 12.1 AP 12.1 OE 12.1 12.1 GL 12.1 AP 12.1 OE
  • 32. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Step 3. Change applications to work with MultitenantStep 3. Change applications to work with Multitenant Upgrading to Multitenant • No application changes required! GL 12.1 AP 12.1 OE 12.1
  • 33. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Migrate Using Replication ① Provision new PDBs 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.) Seed GL OE OEGL
  • 34. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Expand cluster to support flexible consolidation model Improved Agility With Changing Workloads Services Single SGA per CDB Instance Node 1 CDB Instance 1 Node 2 CDB Instance 2
  • 35. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Node 1 Expand cluster to support flexible consolidation model Improved Agility With Changing Workloads Node 3 CDB Instance 3CDB Instance 1 Node 2 CDB Instance 2
  • 36. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Soc. Sec. # 115-69-3428 DOB 11/06/71 PIN 5623 Policy enforced redaction of sensitive data Oracle Redacting Sensitive Data Mask Application Data Dynamically Call Center Operator Payroll Processing Call Centers Decision Support Systems Systems with PII, PHI, PCI data
  • 37. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Information Lifecycle Management • Oracle Information Lifecycle Management (ILM) is a set of automated solutions that work with the Oracle Database to enable the usage of multi-tier storage to dramatically lower the cost of storing application data. • ILM combines the Oracle Partitioning technology that moves data to the appropriate storage tier based on its activity level, with Oracle Advanced Compression to reduce the amount of disk space data requires. • The benefits of Oracle ILM come from the fact that it: – Works at the database level with no application changes – Reduces disk space requirements for all types of data – Automates the movement of data to lower cost storage based on activity patterns – Lowers query times by keeping only active data on high performance storage – Increases availability to critical information on the most reliable storage
  • 38. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Temporal Validity • VALID TIME rows are stored in the base table itself • By default, queries see all rows in the table
  • 39. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Enterprise Manager Express 12c
  • 40. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | What is SQL Tuning? Introduction to SQL Tuning SQL tuning involves the following basic steps: • Identifying high load or top SQL statements that are responsible for a large share of the application workload and system resources, by reviewing past SQL execution history available in the system • Verifying that the execution plans produced by the query optimizer for these statements perform reasonably • Implementing corrective actions to generate better execution plans for poorly performing SQL statements • The previous steps are repeated until the system performance reaches a satisfactory level or no more statements can be tuned. Goals for Tuning The objective of tuning a system is either to reduce the response time for end users of the system, or to reduce the resources used to process the same work. You can accomplish both of these objectives in several ways: • Reduce the Workload • Balance the Workload • Parallelize the Workload
  • 41. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | SQL Tuning New Features • Adaptive SQL Plan Management • Adaptive Execution Plan • Optimizer Statistics Management
  • 42. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Heat Map • A “Heat Map” of the Database – Database level Heat Map shows which tables and partitions are being used – Block level Heat Map shows last modification at the block level • Comprehensive – Segment level shows both reads and writes – Distinguishes index lookups from full scans – Automatically excludes stats gathering, DDLs or table redefinition
  • 43. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Automatic Data Optimization • Tables grow in size ILM policies compress data • Tablespace containing partitions reaches ILM tiering threshold • Partitions are moved to different tablespce on lower spec disk group
  • 44. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Oracle Application Continuity • Database and infrastructure outages can cause in-flight work to be lost, leaving users and applications in-doubt • Often leads to  User pains  Duplicate submissions  Rebooting mid-tiers  Developer pains
  • 45. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Unknown Transaction State Application Servers Database Servers End User Current Situation Network Switches User selects product from application and purchases it from the web checkout User transaction arrives at application infrastructure. It makes it’s way through the application tiers and results in a database transaction being created
  • 46. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Application Servers Database Servers End User Network Switches User transaction arrives at application infrastructure and makes it’s way through application tiers and results in a database transaction being created The transaction commits inside of the database and an acknowledgement begins it return journey A failure in the infrastructure on its return journey means the application server never receives an acknowledgment Unknown Transaction State Current Situation
  • 47. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Application Servers Database Servers End User Network Switches The application is left in an unknown state. It returns an error to the user who may order the product for a second time resulting in them potentially being charged twice. Unknown Transaction State Current Situation
  • 48. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Oracle Application Continuity Application Servers Database Servers End User A reliable replay of in flight work Network Switches User selects product from application and purchases it from the web checkout User transaction arrives at application infrastructure. It makes it’s way through the application tiers and results in a database transaction being created
  • 49. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Application Servers Database Servers End User Network Switches The infrastructure hosting the database fails just before the transaction is committed to the database. Oracle Application Continuity A reliable replay of in flight work
  • 50. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Application Servers Database Servers End User Network Switches The jdbc driver detects the failure and checks with an available node in the cluster, using “Transaction Guard”, whether the transaction committed or needs to be replayed If the transaction needs to be replayed, “Application Continuity” will submit all of the inflight work to a surviving node in the cluster and perform a commit. This all happens transparently to the application Oracle Application Continuity A reliable replay of in flight work
  • 51. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Application Servers Database Servers End User Network Switches The user receives confirmation that his order has been successfully completed. Oracle Application Continuity A reliable replay of in flight work
  • 52. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Agenda Rethinking Architecture for the Database Cloud Multitenant Architecture Capabilities Enabled Managing Multitenant Environment Upgrading to Multitenant Use Cases & Customer Successes 1 2 3 4 5 Oracle Confidential – Internal/Restricted/Highly Restricted 52 6
  • 53. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Multitenant for Development and Testing Fast, flexible copy and snapshot of pluggable databases Development Container Database 53 Production Container Database GL OE AP GL Master GL (Dev2) GL (Dev1)
  • 54. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | ✔8 ✔ SILVER BRONZE GOLD ✔ ✔ Oracle Multitenant for Database as a Service Pick from standard sizes and service levels 54 RAC, Data Guard RAC Backupssmall large medium ✔ 8
  • 55. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Consolidation of Disparate Applications Simplify, standardize, reduce risk, lower costs and upgrade SLAs with Multitenant Scalability and High Availability Limited Available Capacity SILVER Oracle Database 12c – Multitenant Container Database – Silver SLA 11g 9i 11g 10g 11g 10g MySQL SQL Server Oracle Conversion Utilities 55 “Deferred” Maintenance: • Behind on Patches • Seldom Backed Up 12c 12c 12c 12c 12c 12c Databases To Manage
  • 56. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Multitenancy implemented by the Database, not the Application 56 Oracle Multitenant for Software as a Service Customer 1 Customer 2 Customer 3 Customer 4 Customer 5 Customer 6 Customer 7
  • 57. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Multitenant. Perfect for ISVs Packaged apps and reference data are easily distributed 57 OE AP Jolt! Applications Corporation Development Container Database OE AP Customer Container Database GL APJolt! v7.3 Jolt! v8.2 Jolt! v8.2 Jolt! v8.2 Jolt! V7.3 Jolt! V6.1
  • 58. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 58