You are on page 1of 57

Why you need to upgrade NOW

To Oracle Database 12c

Mike Dietrich
Master Product Manager
Database Upgrade
Oracle Corporation

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |

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, and timing of any features or
functionality described for Oracles products remains at the sole discretion of Oracle.

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

$> whoami
6 years
RDBMS Core & Mission Critical Support

5.5 years
Technology Presales for DataGuard, Upgrades

Mike Dietrich
Master Product Manager

>7.5 years
ST Upgrade Development Team

Database Upgrades & Migrations

MikeDietrichDE
http://blogs.oracle.com/UPGRADE

50%

50%

Reference
Projects

+ x%

Workshops
Worldwide

Development
Work

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |

Why you need to upgrade NOW to Oracle Database 12c!

Download Slides from the Database Upgrade Blog

http://blogs.oracle.com/UPGRADE

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

Supported Versions

2025

2024

2023

2022

2021

2020

2019

2018

2017

2016

2015

(GA: Sep 2009)

2014

Oracle 11.2

2013

(GA: Aug 2007)

2012

Jan 2012

Jul 2010

Oracle 11.1

2011

(GA: Jul 2005)

Jan 2009

2010

Oracle 10.2

2009

(GA: Jan 2004)

2008

2007
Oracle 10.1

today

Jul 2013

Aug 2012

Aug 2015
Jan 2015

May 2017

Oracle 12.1

Jun 2018

(GA: Jun 2013)

Dec 2020
Jun 2021

Oracle 12.2
(GA: xxx 2016)

Premier Support

Waived Extended Support

Paid Extended Support

Sustaining Support

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

Fineprint: Extended Support for Oracle Database 11.2


2025

2024

2023

2022

2021

2020

2019

Jun 2018

2018

May 2017

2017

2016

(GA: Jun 2013)

2015

Oracle 12.1

2014

Jan 2015

2013

2012

2011

2010

2009

(GA: Sep 2009)

2008

2007
Oracle 11.2

Dec 2020
Jun 2021

Oracle 12.2
(GA: xxx 2016)

Release Schedule of
Current Database Releases
MOS Note.742060.1

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

When will

Oracle Database 12.2


be released?
Let's be honest you will wait usually for the

1st patch set for the 2nd release


Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

Why you can't wait for the 2nd Release?


2025

2024

2023

2022

2021

2020

2019

Oracle 12.2

2018

Jun 2018

(GA: Jun 2013)

Dec 2020
Jun 2021
Patchset

(GA: xxx 2016)

Every release is a full release

Every release will get a significant


number of new features and changes
There's no such thing as THE
2nd release anymore!

2017

May 2017

Oracle 12.1

2016

Jan 2015

2015

2014

2013

2012

2011

2010

2009

(GA: Sep 2009)

2008

2007
Oracle 11.2

Span between Releases in Months


Oracle 12.1 .. 12.2
Oracle 11.2 .. 12.1

Oracle 11.1 .. 11.2


Oracle 10.2 .. 11.1
Oracle 10.1 .. 10.2
Oracle 9.2 .. 10.1
0

10

20

30

40

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

50

Oracle and SAP Certified in Oracle Database 12.1.0.2

SAP has already certified Oracle


12.1.0.2 as of March 31, 2015

SAP has already certified Oracle


12.1.0.2 with In-Memory as of
June 30, 2015

http://tinyurl.com/CertOracleSAP

http://tinyurl.com/CertOracleSAP-InMem

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

We fully understand that things often are


complicated and business critical

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

10

And things can become really complicated ...

Oracle 8i to 11.2

26 TB

Oracle EBS

5-6 hours max downtime

Good

luck!!!

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

11

Or more work ...

Triple hops

Oracle 9.2.0.1

Oracle 9.2.0.4
Oracle 10.2.0.5
Oracle 12.1.0.2

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

12

But even if it does not look complicated at first sight ...


Databases
400
350
300
250
200
150
100
50

54%

382
292
113

(447
out
of
829
databases)
21
10
9
2
have no bug fixing support anymore

10.2.0.3.0 10.2.0.4.0 10.2.0.5.0 11.2.0.1.0 11.2.0.2.0 11.2.0.3.0 11.2.0.4.0

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

13

Another example ...

9.2.0.7.0
0%4%
2%

5%

10.2.0.3.0
2%
3%

10.2.0.4.0

32%

10.2.0.5.0

828

Databases

17%

11.2.0.1.0
11.2.0.2.0
11.2.0.3.0

35%

11.2.0.4.0
12.1.0.2.0

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

14

Don't maintain a zoo!

135 Oracle databases

7 different Oracle releases


13 different Oracle patch levels

6 different OS vendors

15 different OS versions

2% of all databases
under bug fixing support

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

15

Recommendation

Don't sit it out

It will just get more complicated and risky

Beware of application dependencies

Establish constant database inventory monitoring

Move on

upgrade your database(s) NOW!

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

16

Where should you start?

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

17

Project Approach?

Planning

Quarterly
Patching

Data
Gathering

Testing

Go-Live

Upgrade/
Migration

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

18

You need a plan


Week T-10

Migration Initiation, & Plan

Week T- 9

Baseline & Migration

Week T-8

Migration & Unit test initiation

Week T-7

Unit Test Complete

Week T- 6

Application & Performance Test Start

Week T-5

Application & Performance Tests

Week T-4

70%
Test

Application & Performance Tests

Week T-3
Week T-2
Week T-1

Application Testing Complete and Application Freeze


Cutover Plan & Tests
Migrate Go/No go
Migration Weekend
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

19

You need to know Which / Where / Who / When

Database inventory

OS inventory

Depending applications, certification

Responsibilities

Desired time frame

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

20

Build a tracking app Use APEX

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

21

Build Workstreams and Database Groups


Estate
Analysis

Production with
additional monitoring

Upgrade/Migration Group 1

Production

Workstream 1

Upgrade/Migration Group 2

Workstream 2

Post Migration
Monitoring,
Troubleshooting,
and Tuning Team

Upgrade/Migration Group 3

Workstream 3

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

22

General Test Guidelines

Upgrade/Migration Process
Post-Upgrade Functionality
Prod Load

Post-Upgrade Performance

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

23

Testing Effort

Completeness

100%

Relation between test completeness and costs

0%

low

Costs

high
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

24

Catch obvious issues with AWR Diff Reports


LINUX

IBM AIX

12.1.0.2

11.2.0.3
Migrate

Snapshot Interval

Snapshot Interval
Compare
AWR Diff
Report

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

25

Application Calls and overall performance: Database Replay


LINUX

IBM AIX

12.1.0.2

11.2.0.3
Migrate

Capture Workload

Compare then restore


and run again with changes

Replay Workload
Database Replay
Preprocess Workload

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

26

Tune your setup with SQL Performance Analyzer


LINUX

IBM AIX

12.1.0.2

11.2.0.3

STS

Migrate

Evaluate, compare and tune


over and over again!
Capture SQLs
into a STS

Load STS

STS
SQL Performance Analyzer

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

27

Use the Right Tools: SPA Resulting Reports

Example: Report showing regressed statements and plans

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

28

Got Regressions? Fix the Execution Plan


LINUX

IBM AIX

12.1.0.2

11.2.0.3

STS

Migrate

Capture SQLs
into a STS

Load STS

or

or

Capture plans as
Stored Outlines

Move OUTLN

Stored Outlines

Plan History
Plan Baseline
GB
HJ

Stored Outlines
HJ

STS

...

SQL Plan Management


(free EE feature!!!)

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

29

Now RELAX ... Stay Calm ...


And open an SR with Oracle Support in case of real trouble

Picture taken from: https://aycw.wordpress.com/2015/06/10/young-peoples-attitudes-toward-work/


Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

30

And don't forget:


The next patching day is right in front of you!
Oracle PSUs get delivered on a quarterly basis:
20-OCT-2015 / 19-Jan-2016 / 19-Apr-2016 / 19-Jul-2016

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

31

With a little help from ... Real Application Testing


Upgrade over 300 databases at CSX

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

32

Real World Checkpoint


Customer
Project

CSX

One of the nations leading transportation suppliers

Constraints

Preparation

Encompasses 21,000 miles of tracks


in 23 states, from Florida to Ontario
HQ in Jacksonville, Florida

Upgrade
Success?
Remarks

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

33

Real World Checkpoint


Customer

Project

Upgrade and migration of 304 databases to 11.2.0.2 over a


24 month period (2011-2012)

Constraints

Preparation

Upgrade

Success?

Plan to use Real Application Testing

Remarks

1/3 production, 2/3 test and development systems


Source versions: Oracle 10.2.0.4 and a few Oracle 8i/9i
Single Instance on IBM AIX RAC on Linux

Guarantee quality and mitigate the risk of upgrading

Define standards

Install 11.2.0.2 and patches and apply latest PSU

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

34

Real World Checkpoint


Customer

Limited downtime on some business critical systems

Project

Testing cycles vary from 1-6 months depending on


complexity and criticality

Tight on available testing resources

Constraints
Preparation
Upgrade

Success?

Remarks

Time
People
Systems

New to Real Application Testing

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

35

Real World Checkpoint


Customer
Project
Constraints
Preparation

Close alliance with Oracle's Upgrade Development Group and


Oracle's RAT Pack

CSX agreed to become an official


Oracle Database 11.2 Reference Customer

Upgrade

Success?

Remarks

Monthly status meetings


Onsite training
Live upgrade and RAT demo

Cloning databases methods for use with RAT

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

36

Real World Checkpoint


Customer

Upgrade and migration methods used:

Project

Data Pump for OS Migration

20%

Constraints

80%

Preparation

DBUA for Upgrades

Upgrade
Success?

Policy:

Remarks

Install Oracle SW with latest patches and PSU


Combine HW refresh and OS upgrades

Internal application to track owner, status, success

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

37

Real World Checkpoint


Customer

Yes project took 2 years

Project

Constraints

Preparation

88% of all databases upgraded within 18 months


Some systems took longer due to business and/or resource
constraints

Upgrade

Performance comparison mechanisms are very helpful

Success?

Regressions found and fixed before upgrade

Remarks

RAT helped a lot to predict workload performance and


ensure careful testing

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

38

Real World Checkpoint


Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks

The Real Application Testing tool provided a comprehensive


and flexible solution for assessing the impact of the Oracle
11g database upgrade into CSX systems. At CSX we were
able to capture real production workloads, replay it in the
11g environment, identify poor performing queries and,
fine tune these queries in a test environment before the
production implementation.
Maritza Gonzalez, Technical Director
CSX Corporation

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

39

Real World Checkpoint


Customer
Project

More Information?
https://blogs.oracle.com/UPGRADE/entry/csx_corporation_upgrades_databases_2x

Constraints
Preparation
Upgrade
Success?
Remarks

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

40

A small team and an excellent plan


Upgrade 300 databases at Mobiliar Insurance, Switzerland

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

41

Real World Checkpoint


Customer

Swiss Mobiliar

Project

Constraints

Preparation

Upgrade
Success?
Remarks

Switzerland's most personal insurer


Founded 1826 in Bern, oldest Swiss insurance
Legal form:
Cooperative association (mutual company)
Over 1.7 million persons and firms insured
Switzerland's no.1 insurer for:
Businesses, term life insurances, households
80 general agencies at 160 locations
Over 4,400 employees and 325 trainees
Awarded Most Trusted Insurance Brand in
Switzerland for 13 consecutive years
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

42

Real World Checkpoint


Customer

Upgrade 289 databases

Project

Constraints

Oracle Database 11.2.0.3 to Oracle Database 12.1.0.2


80 production databases

Preparation

Oracle Cloud Control

Upgrade

AWR Warehouse (home-made)

Shell scripts

Oracle Restart with ASM

Oracle In Memory

OID

Success?
Remarks

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

43

Real World Checkpoint


Customer
Project

Project timeline: 24 months

Goal: 18 months

Constraints

Migrations per month

Preparation
45

Upgrade
Success?

40
35
30

Remarks

25
20
15
10
5
0
Jan-15

Feb-15

Mrz-15

Apr-15

Mai-15

Jun-15

Jul-15

Aug-15

Sep-15

Okt-15

Nov-15

Dez-15

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

44

Real World Checkpoint


Customer

Small DBA Team

Project

Only 3.8 FTE + 1 newbie

2 major software releases of Mobiliar Applications per year


resulting in a full month of code freeze

Upgrade

Bug fixing support for Oracle 11.2.0.3 ended Aug 27, 2015

Success?

Highly complex applications

Constraints
Preparation

Remarks

Queries with more than 1000 bind variables and 250 outer joins

One core team member broke his leg in


September 2015 and did not return to work

yet

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

45

Real World Checkpoint


Customer

All queries, execution time and execution paths are tracked on a self
made AWR Performance DWH

Possibility to compare performance before and after the upgrade on


query level

Performance tests performed by application owner

Regression tests done during the testing phase of the Mobi Software
Release
PSU RDBMS 12.1.0.2.4, PSU GRID 12.1.0.2.2
Two Oracle Homes on the same server
Upgrade with catctl.pl embedded into home-built shell script

Project
Constraints
Preparation
Upgrade
Success?
Remarks

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

46

Real World Checkpoint


Customer

Project Monitoring with Excel Sheet

Project

Oracle Database Swiss Mobiliar


350

Constraints
300

Preparation
Upgrade

250

200

Success?

150

Remarks

100

50

0
Jan-15

Feb-15

Mrz-15

Apr-15

Mai-15

Jun-15

Jul-15

Aug-15

Sep-15

Okt-15

Nov-15

Dez-15

DBs 12c

Jan-15
0

Feb-15
7

Mrz-15
10

Apr-15
18

Mai-15
26

Jun-15
62

Jul-15
105

Aug-15
126

Sep-15
136

Okt-15
152

Nov-15
157

Dez-15
170

DBs 11g

289

282

279

271

263

227

184

163

153

137

132

119

DBs 11g

DBs 12c

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

47

Real World Checkpoint


Customer

Automated upgrade via home-built scripts:

Project
Constraints
Preparation
Upgrade
Success?
Remarks

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

48

Real World Checkpoint


Customer

Live? And alive?

Project

Constraints

Preparation
Upgrade
Success?

Yes! First system went live on Feb 4, 2015


Current status (Oct 12, 2015):
152 out of 289 databases live on Oracle Database 12.1.0.2
53% upgraded already
No. Databases
Project perfectly on schedule
137

152

Remarks

Oracle. 11.2.0.3

Oracle 12.1.0.2

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

49

Real World Checkpoint


Customer
Project
Constraints

No major issues after go live

Issues caught during testing, e.g.:

Bug 20776435: PARSE OF INMEMORY QUERY IS SPINNING ON CPU

Preparation

Upgrade

Query with 250 Left Joins


Workaround:

alter session set "_optimizer_inmemory_table_expansion"=false;

Success?
Remarks

Bug 19677469: NO QUERY REWRITE

Workaround:

CREATE MATERIALIZED VIEW . SELECT /*+ MV_MERGE */


or:
alter system set "_fix_control"='10145667:OFF';

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

50

Real World Checkpoint


Customer
Project

Oracle In-Memory boosts performance

Read on: http://tinyurl.com/Mobi12c

Constraints
Preparation
Upgrade
Success?
Remarks

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

51

Real World Checkpoint


Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks

"The entire upgrade project of our 300 Oracle databases at


Die Mobiliar is running very well.
When we catch issues, we fix them before going live.
And features such as Oracle In-Memory add a lot of
performance boost to some of our applications.
Especially the Oracle Upgrade Reference Program was a
great help and added a lot of value to our project's progress.
We are very happy and satisfied with the upgrade process
and the reliability and performance of Oracle Database 12c".
Paolo Kreth, Group Manager Databases, Die Mobiliar
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

52

Famous Last Words


Conclusion

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

53

Conclusion

If you have a complicated environment, you are not alone!

But, you can do it:


Plan your effort
Use the right tools
Track and
report progress

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

54

Twitter & Database Upgrade Blog

MikeDietrichDE

http://blogs.oracle.com/UPGRADE

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

55

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Why you need to upgrade NOW to Oracle Database 12c!

56

You might also like