Professional Documents
Culture Documents
Multitenant Best Practices - Aioug
Multitenant Best Practices - Aioug
12/3/15
GL
OE
AP
GL
GL
OE
OE
AP
AP
Oracle MulAtenant
Retail
PDBs
CDB$ROOT
MulAtenant Container
Shared memory and background processes
More applicaAons per server
12/3/15
OBJ$
TAB$
DEPT
EMP
SOURCE$
Meta-Data
PDB
Root
MulAtenant x:
Horizontally-par--oned
data dic-onary
User Data
Copyright 2015, Oracle and/or its aliates. All rights reserved. |
Only Oracle-supplied
meta-data remains in root
Copyright 2015, Oracle and/or its aliates. All rights reserved. | Oracle CondenAal Internal/Restricted/Highly Restricted
Planning(1/2)
IdenAfy Who are my candidates ?
Dene consolidaAon criteria
SLAs Performance and/or
availability
Workload
Line of Business
Character set and/or Time zone
PosiAons you to more easily dene
a DBaaS Service Catalog
Copyright 2015, Oracle and/or its aliates. All rights reserved. | Oracle CondenAal Internal/Restricted/Highly Restricted
10
Planning (2/2)
Dene Management
Policies
Where/when to
Manage Many as One
SLAs and HA soluAon
Provisioning policies
DB Resource
Management Policies
Evaluate PDB
Candidate
UncertainAes
Deploy as Single
Tenant
PosiAon the PDB for
MulAtenant
Clone and unplug/
plug features
available
Copyright 2015, Oracle and/or its aliates. All rights reserved. | Oracle CondenAal Internal/Restricted/Highly Restricted
11
Cigna Health CON6379: Oracle Mul;tenant Customer Success Story (class of 2014)
Post Consolida;on
Server Congs
10x reducAon
3x reducAon
Servers
Oracle Versions
OS Versions
Hardware Type
HA SoluAon
Physical Servers
Databases
DB Character Set
3 1
8 1
1 Standard Version
1 Standard HA SoluAon
50% reducAon
7x reducAon
1 Standard Character Set
Copyright 2015, Oracle and/or its aliates. All rights reserved. |
Provisioning
DBaaS
Security,
IsolaAon
Resource
Manager
RAC
Performance
Manage Performance
High
Availability
Performance
MulAtenant
DBaaS
Security
Resource
Management
GL-2
AP-1
AP-2
PO-1
GL
OE
AP
PO
15
Subset Clone
Remote Clone
over DB link
Full Clones
MulAtenant Cloning
Metadata
Only clone
TYPES
Snapshot clones
ACFS
Copy-on-write - Source
opened in read write aser
clone is created
ZFSSA
Netapp
EMC
16
Deployment
CDB Crea;on and Congura;on
Use DBCA
Standardize
12/3/15
Character set
AL32UTF8
Use OMF
OperaAons
e.g. Patching schedule
Copyright 2015, Oracle and/or its aliates. All rights reserved. |
Deployment - ConguraAons
Size your SGA the Divide by 2 rule of
thumb
Congure Huge Pages if SGA > 30GB
AcAve process count should be ~5 x
physical core
Set SGA_TARGET to 60% of physical
memory
Let Oracle Manage the Memory Pools
12/3/15
OPEN_CURSORS
OPTIMIZER se|ngs
CURSOR_SHARING
Evaluate as consolidaAon density increases
Management
Opera;onal
Size SYSAUX appropriately
Monitor free space in CDB and in all PDBs
Ensure 10GB free before upgrade to 12.1.0.2
Look for ORA-1652 temp extent allocaAon
errors in the mmon slaves trace les
$ORACLE_HOME/rdbms/admin/catcon.pl
Execute SQL*Plus scripts or SQL statements in
a non-CDB
all or subset of PDBs in a CDB
12/3/15
Archive Logging
Pre-ConsolidaAon: Evaluate and Size Aggregate
Redo Rate
Size Archive Log Dest and Monitor Purging
Policies
Calibrate disk quota for FAST RECOVER AREA
per consolidaAon density, le sizes and target
recovery window
Resource Management
GL
High Priority
OE
AP
Medium Priority
Low Priority
22
Specify a minimum
allocaAon
Specify a minimum
and maximum
Manage CPU
A CDB Resource Plan uses
shares to specify how CPU is
distributed between PDBs
GL
OE
AP
2 Shares
1 Share
1 Share
Pluggable Database
Shares
Guaranteed CPU
Maximum CPU
GL
2/4 = 50%
100%
OE
1/4 = 25%
100%
AP
1/4 = 25%
100%
Manage CPU
GL
OE
AP
2 Shares
1 Share
50%
1 Share
50%
Pluggable Database
Shares
Maximum CPU
GL
2/4 = 50%
100%
OE
1/4 = 25%
50%
50%
AP
1/4 = 25%
50%
50%
Manage CPU
Configure a default directive: the
default shares and utilization limit
for PDBs.
GL
OE
AP
2 Shares
Default
Default
Pluggable Database
Shares
Maximum CPU
(Default DirecAve)
GL
2/4 = 50%
OE
Default (1)
1/4 = 25%
Default (50%)
50%
AP
Default (1)
1/4 = 25%
Default (50%)
50%
50%
100%
Manage CPU
With a default directive, you dont
need to modify the resource plan
for each PDB plug and unplug
GL
OE
AP
PO
2 Shares
Default
Default
Default
Pluggable Database
Shares
Maximum CPU
(Default DirecAve)
GL
2/5 = 40%
OE
Default (1)
1/5 = 20%
Default (50%)
50%
AP
Default (1)
1/5 = 20%
Default (50%)
50%
PO
Default (1)
1/5 = 20%
Default (50%)
50%
50%
100%
PDB
Shares
GL
50
OE
50
AP
50
16
Copyright 2015, Oracle and/or its aliates. All rights reserved. |
(P)DBaaS
GOLD
SILVER
RAC
BRONZE
Backups
30
Deployment
PDB Provisioning in PDBaaS
A central CDB with a catalog and a PDB templates
CDB1 BI SERVICE 125/250 PDBS 50%
CDB2 FINANCE 75 / 125 - PDBS - 60%
CDB3 SCHEMA 200 / 250 PDBS 80%
PDB TEMPLATES
BI
FINANCE
DATABASE OF DATABASES
PROVISION A BI PDB
CATALOG
FORWARDS
REQUEST TO BI
POD TO
PROVISION A PDB
Security
Management
Common Users
Understand, dene and Generalize your
common user & local user policies
Dene the role separaAon 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
12/3/15
Management
Security Prac;ces - Ager Clone Trigger
PDB Cloning
Production
DEPT LAST_NAME
SSN
Non-Production
SALARY
10
AGUILAR
203-33-3234
40,000
20
BENSON
543-44-2737
30,000
10
CHANDRA
323-22-2943
60,000
30
DONNER
270-24-4023
50,000
DEPT
LAST_NAME
SSN
10
SMITH
11123-1111
40,000
10
JOHNSON
222-34-1345
60,000
SALARY
Q&A
Copyright 2015, Oracle and/or its aliates. All rights reserved. | Oracle CondenAal Internal/Restricted/Highly Restricted
35
Key Benets
Benet
Capability Enabled
Minimize CapEx
Minimize OpEx
Maximize Agility
Easy
12/3/15
PDB1
CDB
Shutdown database
PDB1
xml
DB1
Read Only
Convert to PDB
start ?/rdbms/admin/noncdb_to_pdb.sql
Copyright 2015, Oracle and/or its aliates. All rights reserved. |
Using le_name_convert
SQL> create pluggable database PDB1 using /tmp/pdb1.xml
file_name_convert = (/u01/oradata/cdb1, /u01/oradata/cdb2);
Copyright 2015, Oracle and/or its aliates. All rights reserved. | Oracle CondenAal Internal/Restricted/Highly Restricted
40
Copyright 2015, Oracle and/or its aliates. All rights reserved. | Oracle CondenAal Internal/Restricted/Highly Restricted
41
Copyright 2015, Oracle and/or its aliates. All rights reserved. | Oracle CondenAal Internal/Restricted/Highly Restricted
42
Remote snapshot clone of PDB where CDBs share the same storage
SQL> create pluggable database PDB1 from PDB2@CDB2_LINK
snapshot copy;
Copyright 2015, Oracle and/or its aliates. All rights reserved. | Oracle CondenAal Internal/Restricted/Highly Restricted
43
44