Best Practices
John P. McHugh
Senior Principal
Product Management
Oracle Multitenant
NOTE: Published .pdf version does not
have the demo builds from the original
presentation and formatting may be off.
CAPEX
RATIONALIZE
STANDARDIZE
OPEX
Oracle Multitenant
New architecture for consolidating databases and simplifying operations
AP
GL
OE
PDBs
CDB
Root
Public
Key Benefits
Benefit
Capability Enabled
Minimize CapEx
Minimize OpEx
Maximize Agility
Easy
80% higher
aggregate
throughput
tps
databases
150000
300
100000
200
50000
100
50% more
databases
consolidated
0
non-CDBs
PDBs
non-CDBs
PDBs
MB
cores
IOPS
2000
200
400000
1500
150
300000
1000
100
200000
500
50
100000
non-CDBs
PDBs
8x reduction in memory
footprint
non-CDBs
PDBs
non-CDBs
PDBs
Copyright 2014, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted
Agenda
Deployment
Management
High Availability
Agenda
Deployment
Management
High Availability
Deployment
PLANNING
Management Policies
Deployment
PLANNING USE CONSOLIDATION DATABASE REPLAY
Test System
Production Systems
CRM- DB1
HCM-DB2
Directories
DW-DB3
Capture 1
Windows
DB 10.2
AIX
DB 9.2.0.8
HP-UX
DB 11g
Capture 2
Capture 3
Replay on CDB
Directories
Capture 1
Capture 2
Capture 3
CDB DB12c
Deployment
CONSOLIDATION WORKBENCH
Databases to Database
Initial consolidation
Incremental consolidation
Databases to Servers
Consolidate multiple source databases
onto a fewer number of destination
servers
No change in the number of databases
Exadata and other server platforms
CONSOLIDATION WORKBENCH
Deployment
PLANNING DEFINE CONSOLIDATION SCENARIOS
Ultra-Conservative Mode
Size for peak maximum
Conservative Mode
Size for maximums within hourly buckets
Aggressive Mode
Size for average within hourly buckets
Deployment
CONSOLIDATION WORKBENCH
120%
100%
80%
60%
40%
20%
0%
Application A CPU
Utilization
Resource
considerations
120%
100%
80%
60%
40%
20%
0%
Application B CPU
Utilization
CPU
Combined CPU
Utilization
Memory
I/O
Storage
120%
100%
80%
60%
40%
20%
0%
120%
100%
80%
60%
40%
20%
0%
Application A CPU
Utilization
120%
100%
80%
60%
40%
20%
0%
Application B CPU
Utilization
Conflicts
Configuration
Workload
Combined CPU
Utilization
Namespaces
Deployment
CDB Creation and Configuration
Use DBCA
GUI or Silent Mode
MOS NOTE for Silent Mode Syntax
If you must use your scripts call catcdb.sql
Standardize
Options
Character set
AL32UTF8
Custom Standardizations
Use OMF
Use ASMM
Set Processes to 100 x physical core
Set SGA_TARGET to 60% of physical memory
Let Oracle Manage the Memory Pools
Deployment
ISPDB_MODIFIABLE
Clone!
Full
Snapshot
Remote
Subset
Metadata
OPEN_CURSORS
OPTIMIZER settings
CURSOR_SHARING
Evaluate as consolidation density increases
Deployment
Use the Pluggable Database Self-Service Provisioning App
Self-Service
Lines of Business subscribe and manage their
data
Deployment
Use the Pluggable Database Self-Service Provisioning App
Deployment
UPGRADE / PATCHING
Conservative Upgrade Methodology:
1.
2.
3.
4.
5.
6.
7.
Patch Applies
Manage Many-as-One
Agenda
Deployment
Management
High Availability
20
Management
DATABASE RESOURCE MANAGEMENT
Evaluate your consolidation strategy based application resource
requirements
Applications contend for
CPU
Memory
Parallel servers
Disk bandwidth
Flash
Resource Management
Managing CPU - PDBs
Shares
Sales
Utilization
Limit
Sales is guaranteed
50% of the CPU.
If it doesnt use it,
someone else can.
Guaranteed
CPU
Maximum
CPU
5/(5+2+2+1)
= 50%
100%
Marketing
20%
100%
Support
20%
90%
Other
10%
100%
90%
Resource Management
Managing CPU PDBs
Shares
Sales
Marketing
default (2)
Support
(Default
directive)
Utilization
Limit
Guaranteed
CPU
Maximum
CPU
5/(5+2+2) =
56%
100%
default (75%)
22%
75%
default (2)
default (75%)
22%
75%
75%
90
80
70
60
CPU
Utilization
50
40
Support (1 share)
Marketing (1 share)
Sales (2 shares) - Batch (1 share)
Sales (2 shares) - Critical (4 shares)
30
20
10
0
Resource Management
Define Utilization Limits for PDBs
100
90
80
70
CPU
Utilization
60
Support (1 share)
50
Marketing (1 share)
40
Sales (2 shares)
30
20
10
45
Utilization Limit
= 40%
40
35
30
25
Guaranteed CPU =
20%
# Running Sessions
20
15
10
5
0
Resource Management
Monitor with ASH
Management
Use EM EXPRESS
CDB
Global Performance Monitoring
Performance
Resources
SQL Monitor
Session
Summary and drill down
PDB
Performance Monitoring
Wait/User IO/CPU
Management
Common Users
Define and Generalize your common user
local user policies
Define the role separation between local and
common users
Avoid GRANT session to common user globally
New PDBs plugged in inherit common user
Enforce local grant session to the common user
Management
Security Practices
Implement Security features where
appropriate
Management
Operational
Review AutoTask scheduling
Archive Logging
Pre-Consolidation: Evaluate and Size Aggregate
Redo Rate
Post-Consolidation: Size Archive Log Dest and
Monitor Purging Policies
Management
Connections
Use Services
Client Authentication
SQLNET.ALLOWED_LOGON_VERSION_CLIENT
USE_SID_AS_SERVICE_listenername=ON
Only for legacy SID connect strings
Opportunity to identify laggards
Management
Connections Connection Pools
34
High Availability
RAC
Use DB QoS for sub second performance
requirement
High Availability
DATA GUARD - Follow MAA Best Practices for Data Guard
Role Transition is at the CDB level
Ensure all PDBs common uptime and
protection requirements
NOLOGGING
Direct path writes only
Conventional DML continues to log
FORCE and HINT overrides
High Availability
Backup the PDB after plug-in operations
as soon as possible
BACKUP
Follow MAA and RMAN Best Practices
High Availability Best Practices for Database
Consolidation, The Foundation for Databaseas-a Service
Manage Many-as-One
CDB level backups captures all PDBs
Summary
Standardization is a Best Practice
Oracle Multitenant Imposes Standardization
Identify Standardization opportunities
Integrate these standards as best practices in your
Multitenant Deployments, Policies and Procedures
17
Applications consolidated on a single Container Database.
9 migrated and 8 new applications
50%
Less downtime during patching
31.5%
3.3
Copyright 2014, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted
39
Title
Customer
Session
SAS
Cigna
GE
Pulte Group
e-DBA
HDFC Bank