Download as pdf or txt
Download as pdf or txt
You are on page 1of 36

Database Consolidation with 19c

Ciprian Pustianu
Technology Cloud Engineer
October 2020
Safe harbor statement

The following is intended to outline our general product direction. It is intended for information purposes
only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code,
or functionality, and should not be relied upon in making purchasing decisions.

The development, release, timing, and pricing of any features or functionality described for Oracle’s
products may change and remains at the sole discretion of Oracle Corporation.

2 Oracle Database Consolidation – October 2020


AGENDA

➢ Database Consolidation with 19c, Multitenant & RAC


Ciprian Pustianu – Technology Cloud Engineer
Dan Lungu – Head of PaaS Team @ BRD SocGen
➢ Oracle Exadata X8M Enhancements
Cristian Termure – Principal Solution Engineer

➢ Exadata Cloud @ Customer – Consolidation Use Case


Gabriel Gheorghiu – Senior Manager Expert Services

3 Oracle Database Consolidation – October 2020


Database Complexity Has Steadily Increased

• Mission critical databases have been complex for decades

• The needs of data-driven enterprises made databases more complex


• Real-time analytics
• Scale-out architecture
• Zero downtime
• Defend from cyber-attacks

• Decades of automation plus the addition of cloud and machine learning have enabled
Oracle to eliminate database management complexity

4 Oracle Database Consolidation – October 2020


Data Strategy
• Modern Applications require many different:
• Data Types - Relational, Document, Spatial, Graph, etc.
• Workloads - Transactions, analytics, ML, IoT, etc.

• Each data type and workload requires different


database algorithms

• Two possible Data Strategies:


• Use single-purpose “best-of-breed” database for each data type and workload

• Use a converged database for all data types and workloads

5 Oracle Database Consolidation – October 2020


Fragmented Features vs. Converged Product
• Phone calls, messaging, camera, calendar, music , etc. originally
required separate products
• Now are features of smartphones

• Similarly, key-value, in-memory, analytics, ML, JSON, sharding, etc.


originally required separate products
• Now are features of a Converged Database

6 Oracle Database Consolidation – October 2020


Over Time New Functionality is Converged
Into Mainstream
• Single-purpose databases have emerged many times
• Abandoned after features are added to converged databases

Cobol
ISAM
Solution Complexity

Object DBs
XML DBs

JSON DBs
Relational Next DB
DB Multi-Model
DB Multi-Model
Multi-workload Converged
DB DB
1970s 1980s 1990s 2000s 2010s 20??
7 Oracle Database Consolidation – October 2020
What to do?

Migrate … but to which version?


Consolidate… but how?

8 Oracle Database Consolidation – October 2020


Database Release and Support Timelines

1 Oracle
Database 19c is the most current Long Term Release
Always check MOS Note 742060.1 for the latest schedule
9 Oracle Database Consolidation – October 2020
Use Long Term Release

11.2.0.4

12.1.0.2

12.2.0.1
12.2.0.3

12.2.0.2
10 Oracle Database Consolidation – October 2020
De-support of Non-CDB Database Architecture

• The Oracle Database previous non-Container architecture will be


de-supported from Oracle Database 20c onwards

• From Oracle Database 19c onwards, the multitenant architecture


supports creation of up to 3 user-created Pluggable Databases
of any type
• The Multitenant Option is required for deployment of 4 or more user-
created PDBs

11 Oracle Database Consolidation – October 2020


Database Consolidation Architectures
Isolation Virtual Machines Multitenant
& Agility

Stacked Databases Schema/Row Consolidation

Efficiency
12 Oracle Database Consolidation – October 2020
Multitenant Architecture
Fast Provisioning, Snapshot Clones

Time Taken to Provision New Database


Seed Original 25
PDB New PDB PDB Clone
From Seed of PDB
Snapshot 20
Clone of PDB
15

10

New GL GL-2 GL-3 0


Non CDB PDB Snapshot Clone

Oracle 12c Multitenant: Frequently Asked Questions (Doc ID 1511619.1)


13 Oracle Database Consolidation – October 2020
Multitenant

12.1, 12.2 18c, 19c


▪ 12.1 ▪ 18c
• Container managed database virtualization • Transportable backups
• Manage Many as one • Snapshot carousel
• Patching, Backup, Security, Online Cloning, • Refreshable PDB switchover
Online Relocation
▪ 19c
▪ 12.2
• DBCA Silent mode operations for PDB
• Online cloning & relocation
• RAT and ADDM at PDB level
• Incremental refresh of test/dev master
• Automated PDB Relocation
• Application containers

14 Oracle Database Consolidation – October 2020


Multitenant – New Features

• Automatic Database Diagnostic Monitor (ADDM) Support for Pluggable Databases


• You can now use ADDM analysis for PDBs in a multitenant environment
• Oracle Real Application Testing (RAT) Workload Capture and Replay in a PDB
• You can capture and replay the workload from within an individual pluggable database
• Oracle Data Pump Support for Resource Usage Limitations
• Two new parameters, MAX_DATAPUMP_JOBS_PER_PDB and
MAX_DATAPUMP_PARALLEL_PER_JOB are introduced to give DBAs more control over
the number of jobs that can be started in a multitenant container database environment, and
over the number of parallel workers that can be used for an individual Data Pump job,
respectively

15 Oracle Database Consolidation – October 2020


PDB Hot Clone Snap Clone

Snap Clone
Oracle Cloud
CRM CRM Dev1 CRM Dev2
PDB Hot Clone
Online test master instantiation

Hot Clone Developers

Pricing Retail CRM

On-Premises
16 Oracle Database Consolidation – October 2020
Refreshable PDB Snap Clone

Snap Clone
Oracle Cloud
CRM CRM Dev1 CRM Dev2
PDB Hot Clone Cloned version no longer in sync

Online test master instantiation


Refreshable PDB
Incremental refresh of clone with latest data
Only changes copied and applied
Developers

Pricing Retail CRM


Changes made to database

TIME
On-Premises
17 Oracle Database Consolidation – October 2020
Online PDB Relocation

CRM HR
PDB Hot Clone
Online test master instantiation
Refreshable PDB
Incremental refresh of clone with latest data
Online PDB Relocation Oracle Cloud
Relocate with no downtime
Pricing Retail CRM

On-Premises
18 Oracle Database Consolidation – October 2020
Refreshable PDBs as Replicas
Per-PDB replica with only two CDBs to manage!
Server1 1. create pluggable database Red;
4. create pluggable database Brown;
6. create pluggable database Grey
from Grey@CDB2_Link
CDB1 refresh mode every 2 minutes;
Replication

Replication
Server2 2. create pluggable database Red
from Red@CDB1_Link
refresh mode every 2 minutes;
3. create pluggable database Gold;
CDB2 5. create pluggable database Grey;

19 Oracle Database Consolidation – October 2020


Refreshable PDB Switchover
Planned switchover
Server1

CDB1
Replication

Replication
Server2

1. alter pluggable database Grey


refresh mode every 2 minutes
CDB2 from Grey@dblink switchover;

20 Oracle Database Consolidation – October 2020


Refreshable PDB Switchover
Unplanned switchover
Server1

CDB1

Replication
Replication

Server2 1. alter pluggable database Grey


refresh;
2. alter pluggable database Grey
refresh mode none;
3. alter pluggable database Grey
CDB2 open read write;

21 Oracle Database Consolidation – October 2020


Snapshot Carousel
Ideal source for debugging date-specific problems

Tue
Wed c1
c6
c2
c3
c5
c4
c1
c2 Dev
Prod
Mon March 2018
Date-specific bug 15th
P
14th c1
16th
16th 13th
1. Reported on Friday Friday

2. “Bracket” problem
9th P
12th #B4PDB production
clones were always
10th 11th stale

3. Eliminate Monday
4. Eliminate Wednesday
5. Drill-in on Tuesday

22 Oracle Database Consolidation – October 2020


Oracle Real Application Clusters (RAC)
Node Failure, Instance Failure, Rolling Maintenance

• Utilizes two or more instances of an


Application Oracle Database concurrently
Tier • Application Continuity
• Masks errors from applications by recovering session
state and replaying in-flight requests
• Very Scalable
• All instances active; Add capacity online; Ideal for
Database database consolidation
Services Database
Tier
• Highly Available
• Auto-failover of services to an already running
instance; Outage is transparent to user, in-flight
transactions succeed; Zero downtime rolling
Primary Database maintenance

23 Oracle Database Consolidation – October 2020


Continuous Availability
Unplanned Outages without Client Interruptions, with Application Continuity

Outage or Interruption at Database:


1. Database Request interrupted when
2. RAC Node or instance or cluster fails
5 3. Session reconnects to the RAC Cluster (or Standby) and
4. Database Request replays automatically
5. Result from Database Request returned to user

3
1 3

4
2

Primary Active Data Guard Standby


24 Oracle Database Consolidation – October 2020
Multitenant and RAC: Affinity
PDB1 PDB2 PDB3 PDB4 PDB5 PDB6
• Single CDB
Inst1
• Two-node cluster
• Single instance per
Inst2
node
• PDB’s affinity to a
node defined by
starting its services
there
RAC Cluster • Present in “mounted”
state in other nodes
Single
CDB /
Shared
Storage

25 Oracle Database Consolidation – October 2020


Multitenant and RAC: Scalability and Agility
PDB1 PDB2 PDB3 PDB4 PDB5 PDB6
• Expand cluster
Inst1
• Redistribute PDBs
• Either:
Inst2
Srvctl
• Or
alter PDB relocate;
Inst3

RAC Cluster

Single
CDB /
Shared
Storage

26 Oracle Database Consolidation – October 2020


Multitenant and RAC: Scalability and Agility
PDB1 PDB2 PDB3 PDB4 PDB5 PDB6 PDB7 PDB8
• Single CDB
Inst1
• Single instance per
node
Inst2 • PDBs may be
configured with
“singleton” affinity to
Inst3
a specific node
• Present in “mounted”
RAC Cluster state in other nodes
Single • PDBs may be open in
CDB /
Shared
multiple nodes
Storage

27 Oracle Database Consolidation – October 2020


Singleton affinity of PDB to Instance in RAC
PDB1 PDB2 PDB3 PDB4 PDB5 PDB6 PDB7 PDB8
• Per-PDB lock
Inst1 domain provides
strong isolation
Inst2
• No cache fusion
required on
instance failure
Inst3

Inst4

RAC Cluster

28 Oracle Database Consolidation – October 2020


Multitenant and RAC: Availability
PDB1 PDB2 PDB3 PDB4 PDB5 PDB6 PDB7 PDB8 PDB9 PDB10 PDB11 PDB12

Inst1
P P P

Inst2
A M M

Inst3
M A M

Inst4
M M A

RAC Cluster

29 Oracle Database Consolidation – October 2020


# Exadata Cloud @ Customer
BRD – Groupe Société Générale

Dan Lungu
Head of Platform as a Service Team

30 Oracle Database Consolidation – October 2020


Cloud builds the essential foundation to digital transformation
BRD – IT Department Strategy

We already shifted to We promote the migration We adopt


full virtualized to private cloud. We are Cloud Native
infrastructure ready. Architecture

What we propose as actor

All Oracle DBs were


What we propose as catalyst & contributor consolidated and migrated to
Private Cloud – ExaCC
We contribute to reduce traditional, heavy
We setup “Go to application footprint and simplification of
Cloud” services BRD’s IS architecture

31 Oracle Database Consolidation – October 2020


Exadata Cloud @ Customer & Oracle Multitenant
Solution Deployment

Data Guard
Traffic
Non-Oracle
Systems Non-Oracle
OCC Systems (DR)
ExaCC ExaCC

Prod: Insurance,
Banking, Reporting, Pre Prod/ Dev /
Data Warehouse Monitoring Test / DR

32 Oracle Database Consolidation – October 2020


Exadata Cloud @ Customer & Oracle Multitenant
Solution benefits

▪ Before ▪ After ▪ Benefits


- Multiple DB servers with - All Oracle DBs stored on Oracle - Improved performance, reliability &
different versions, placed on Exadata Cloud @ Customer platform scalability
different platforms (IBM Power,
- Scaling up/down is done easily and - Pay per use model with simple
Intel x86)
on-demand through Cloud UI licensing model and instant boosting
- Provisioning new databases was
- High consolidation density using - High security – all Oracle DBs are
a time-consuming operation
Oracle Multitenant: +200PDBs encrypted with TDE
- Hard to manage licensing
- Provisioning of new DBs done - Standardization and reduced
- Complex policy for backups automatically using Cloud UI backup/restore window for
application
- Disaster Recovery based on - All DBs backed up to VTL
storage replication automatically via 10Gbps ports - Reduced bandwidth for DB
replication, guaranteed consistency
and simplified DRC procedures

33 Oracle Database Consolidation – October 2020


Learn more…
Oracle University Classes (12cR2/18c/19c/20c):
• Managing Multitenant Architecture
• Administration Workshop
• RAC & Clusterware Administration
• High Availability New Features
• Install and Upgrade Workshop
Stefan Dolea
stefan.dolea@oracle.com
Principal Instructor
Mobile: +40731200682
Oracle University https://education.oracle.com/

34 Oracle Database Consolidation – October 2020


Thank you

35 Oracle Database 19c New Features

You might also like