You are on page 1of 44

Upgrading

to Oracle Database 12c


Mike Dietrich
Master Product Manager
Database Upgrade
Oracle Corporation

20-APR-2015
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

Upgrading to Oracle Database 12c

Introduction

Why Upgrade?

What's new?

Where's all the information?

Wrap Up

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

$> whoami
6 years
RDBMS Core & Mission Critical Support

5.5 years
Technology Presales for DataGuard, Upgrades

Mike Dietrich

>7 years
ST Upgrade Development Team

50%

50%

Reference
Projects

+ x%

Workshops
Worldwide

Development
Work

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

When does

Oracle Database 11.2


run out of

Premier Support?

Already over since 31-Jan-2015


Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

Upgrading to Oracle Database 12c

Introduction

Why Upgrade?

What's new?

Where's all the information?

Wrap Up

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

Supported Versions

2025

2024

2023

2022

2021

2020

2019

2018

2017

JAN 2009

JAN 2012

JUL 2013

JUL 2010

AUG 2015

AUG 2012

JAN 2015

Oracle 12.1

JAN 2018

JUN 2018

(GA: Jun 2013)

Premier Support

2016

(GA: Sep 2009)

2015

Oracle 11.2

2014

(GA: Aug 2007)

2013

Oracle 11.1

2012

(GA: Jul 2005)

2011

Oracle 10.2

2010

(GA: Jan 2004)

2009

JUL 2010

JAN 2007

Oracle 10.1

2008

2007

2006

2005

2004

(GA: Jul 2002)

2003

2002
Oracle 9.2

today

Extended Support

Waived Extended

JUN 2021

Sustaining Support

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

Extended Support for Oracle Database 11.2

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

Oracle Database 11.2.0.4 vs. Oracle Database 12.1.0.2

Oracle Database 11.2.0.4

Oracle Database 12.1.0.2

End of Premier Support:


31-JAN-2015 ... 3 months ago!!!
End of Waived Extended Support:
31-JAN-2016
End of Extended Support:
31-JAN-2018

End of Premier Support:


30-JUN-2018 ... >3 years to go!!!

End of Extended Support:


30-JUN-2021

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

Why people usually don't upgrade?


"You need to upgrade
now as your release is
out of Premier Support
already!!!"

"Upgrading just
costs a lot!"

"I don't see any benefits by


upgrading to a newer release"
"I'm happy with the
features of Oracle 8i"
"It will just introduce
new bugs and issues"

"We'll wait for the 2nd release"


"Application is
not certified"
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

When will

Oracle Database 12.2


be released?
Are you one of the usual suspects always waiting

for the 2nd release only?


Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

10

Database Product Roadmap

Release Schedule of Current Database Releases:


MOS Note.742060.1

Be smart
and transform

"We'll go live with the


2nd release only"
into

"We'll go live with the


first patch set only"
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

11

Why you need to change your stragegy!

Every release is a full release

Every release will get


a significant number
of new features and
changes

Span between Releases in Months


Oracle 12.1 ==> 12.2
Oracle 11.2 ==> 12.1
Oracle 11.1 ==> 11.2

There's no such thing as


the 2nd release anymore!

Oracle 10.2 ==> 11.1


Oracle 10.1 ==> 10.2
Oracle 9.2 ==> 10.1

10

20

30

40

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

50
12

Support Periods This is a Projection Only


today

2025

2024

2023

2022

2021

2020

2019

2018

2017

(GA: Jun 2013)

2016

Oracle 12.1

2015

JAN 2015

2014

2013

2012

2011

(GA: Sep 2009)

2010

2009
Oracle 11.2

JAN 2018

JUN 2018

JUN 2021

Oracle 12.2
(proposed:
1 HY/CY2016)

Premier Support

Extended Support

Waived Extended

Sustaining Support

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

13

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

For certified Oracle options see:

http://tinyurl.com/CertOracleSAP

http://www.oracle.com/us/solutions/
sap/sap-database/index.html

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

14

Are you maintaining a Zoo?

3 different OS families 7 different major Oracle releases


6 of 8 OS desupported 77 of 80 databases out of Support
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

15

Maintaining a Zoo is EXPENSIVE

Maintenance Costs

Upgrade/Migration Costs
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

16

Another example from the Real World

OS change

Application change

Client change

HW change

No upgrade done for ~17 years!!!

10-15 databases

Minimal Downtime between Oracle 7.3 and Oracle 11.2


Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

17

Where's Oracle Database 12.1.0.2 Standard Edition ?

Oracle Database 12c - Availability

MOS Note: 1905806.1


Oracle Database 12c Release 1 Patchset 1
(12.1.0.2) is being released only as
Enterprise Edition at this time

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

18

Are you live already on Oracle Database 12c?


Not yet ...?

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

19

At DVAG we do thorough testing in a 3-step

approach for our critical environments.


The decision to upgrade directly to Oracle
Database 12c skipping the terminal patch set of
the previous database release was taken in order
to save us one complete testing cycle, and
furthermore the accompanying costs as well"

Michael Kuhn, Deutsche Vermgensberatung AG

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

20

Upgrading to Oracle Database 12c

Introduction

Why Upgrade?

What's new?

Where's all the information?

Wrap Up

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

21

Direct Upgrade to Oracle Database 12c


Oracle
9.2.0.8
Oracle 9.2
(GA: Jul 2002)

Oracle 10.1
(GA: Jan 2004)

Oracle 10.2
(GA: Jul 2005)

Oracle 11.1
(GA: Aug 2007)

Oracle 11.2
(GA: Sep 2009)

Oracle
10.1.0.5

Oracle
10.2.0.5

Oracle
11.1.0.7

Oracle
11.2.0.2

Oracle
12.1.0.2

11.2.0.2

9.2.0.8

11.2.0.2

10.1.0.5
10.2.0.5

DIRECT
11.1.0.7

DIRECT

11.2.0.2

DIRECT

Please note: This graph will apply to database upgrades only!

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

22

Upgrade SQL Automation


New Pre-Upgrade Script

preupgrd.sql

Executes pre-upgrade checks

Runs in source environment

Generates fixup scripts

preupgrade_fixups.sql

postupgrade_fixups.sql

Newest version MOS Note: 884522.1

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

23

40%
Faster Upgrades in
Oracle Database 12c

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

24

Faster Upgrade Less Downtime


catctl.pl

New Parallel Upgrade

catctl.pl

Runs database upgrade in parallel

Up to 40% faster upgrade

Used and proven by selected Oracle


Database 11g global customers

Telco billing

>100 SAP systems

Large DWH

script1.sql

script2.sql

script3.sql

script4.sql

script7.sql

script9.sql

script5.sql

script8.sql

script10.sql

script6.sql

script11.sql

script6.sql

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

25

The new parallel upgrade script promises to drastically


reduce downtime due to planned maintenance. We saw a
37% improvement over the previous upgrade process in our
environment.
Harald Stefan
Leiter Datenbanken
Payback GmbH

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

26

Faster Upgrade Less Downtime


New Parallel Upgrade
$> $ORACLE_HOME/perl/bin/perl catctl.pl -n 8 catupgrd.sql

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

27

Simplified Upgrade
Database Upgrade Assistant

Pre-Upgrade Automation

Parallel Upgrade

RMAN Integration

Guaranteed Restore Points

Activity and Alert Log

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

28

Upgrade into Oracle Multitenant

PDB$
SEED

PDB1

CDB
PDB1
xml
DB1
Read Only

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

29

Simplified Migration: Full Transportable Export/Import

Create a new database or PDB

Copy the datafiles or Restore/Merge Inc Backups

Data Pump
"One Command Migration"

Upgrade,Migrate
Migrate&&Consolidate
ConsolidatetotoOracle
OracleDatabase
Database12c
12c
Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade,

30

General Test Guidelines

Upgrade/Migration Process
Post-Upgrade Functionality
Prod Load

Post-Upgrade Performance

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

31

Use the right Testing Tools


Database
Replay

SQL
Performance
Analyzer

SQL Plan
Management

SQL Tuning
Advisor
Predictable
Upgrades

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

32

Testing Tools Hand-in-Hand

Collect execution plans


before upgrade

Verify them with SQL


Performance Analyzer

Regressed plans?
SQL Plan Management
SQL Tuning Advisor

Verify functionality and


performance with
Database Replay

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

33

Faster and more predictable upgrades with RAT

Real Application Testing

SQL Performance Analyzer


Database Replay

Customer Example

http://tinyurl.com/CSX-and-RAT

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

34

Upgrading to Oracle Database 12c

Introduction

Why Upgrade?

What's new?

Where's all the information?

Wrap Up

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

35

Upgrade Companion

MOS Note:1462240.1 Upgrade Companion 12c

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

36

Database Upgrade: OTN Web Site

http://otn.oracle.com/goto/upgrade

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

37

Database Upgrade Blog

http://blogs.oracle.com/UPGRADE

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

38

Try the Upgrade: Hands On Lab

http://blogs.oracle.com/UPGRADE

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

39

Oracle Database 12c Interactive Quick Reference

http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/12c/r1/poster/OUTPUT_poster/poster.html#

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

40

Upgrading to Oracle Database 12c

Introduction

Why Upgrade?

What's new?

Where's all the information?

Wrap Up

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

41

Q&A

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

42

Copyright 2015 Oracle and/or its affiliates. All rights reserved. | Upgrade, Migrate & Consolidate to Oracle Database 12c

43