what i need to know when upgrading

Upload: prassu1

Post on 06-Jul-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/17/2019 What I Need to Know When Upgrading

    1/56

    Session S317113:

    What do I really need to know when upgrading

    Thomas Kyte

    http://asktom.oracle.com/

  • 8/17/2019 What I Need to Know When Upgrading

    2/56

    So … What Does Oracle Database 11g  ean !o

    #hange

  • 8/17/2019 What I Need to Know When Upgrading

    3/56

    S$all #hange % but think  about it…

    &et's (o

    (reen

  • 8/17/2019 What I Need to Know When Upgrading

    4/56

    S$all #hange % but think  about it…

    ops$tkyte%ORA11GR2> create table t

      2 as

      3 select substr(object_name, 1, 1 ) str, all_objects!

      " #rom all_objects

      orer by bms_ranomranom&

    'able create

    ops$tkyte%ORA11GR2> create ne t_ on t(str,object_name)&

    *ne create

    ops$tkyte%ORA11GR2> be+n

      2 bms_stats+ater_table_stats

      3 ( user, -'-,

      " meto_opt .> -#or all nee columns s/e 2"-,

      estmate_percent.>100 )&

      en&

     

    45675 proceure success#ully complete

  • 8/17/2019 What I Need to Know When Upgrading

    5/56

    S$all #hange % but think  about it…

    ops$tkyte%ORA11GR2> select count(subobject_name) #rom t t1 8ere str . -'-&

    9

    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

    ; * ; Operaton ;

  • 8/17/2019 What I Need to Know When Upgrading

    6/56

    S$all #hange % but think  about it…

    ops$tkyte%ORA11GR2> nsert nto t

      2 select -'-, all_objects!

      3 #rom all_objects

      " 8ere ro8num I. 1&

    1 ro8 create

    ops$tkyte%ORA11GR2> be+n

      2 bms_stats+ater_table_stats

      3 ( user, -'-,

      " meto_opt .> -#or all nee columns s/e 2"-,

      estmate_percent.>100 )&

      en&

     

    45675 proceure success#ully complete

  • 8/17/2019 What I Need to Know When Upgrading

    7/56

    S$all #hange % but think  about it…

    ops$tkyte%ORA11GR2> select count(subobject_name) #rom t t2 8ere str . -'-&

    9

    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

    ; * ; Operaton ;

  • 8/17/2019 What I Need to Know When Upgrading

    8/56

    ““The Law of unintended consequences holds that almall human actions have at least one unintendedconsequence. Unintended consequences are a commphenomenon, due to the complexity of the world and

    human over-condence.”

  • 8/17/2019 What I Need to Know When Upgrading

    9/56

    What do you ha.e /ro$ the past…

    •Online Parameter Changes

    •Online Major Memory Changes•Online Schema Eol!tion

    •Online "n#e$ Creates

    •%!iesce

    •&olling 'pgra#es

    •Online (isk recon)ig!ration *+SM,•Online Cross Plat)orm Ta-lespace Transport

    •!ll (ata-ase Transports

    • +n# more.

  • 8/17/2019 What I Need to Know When Upgrading

    10/56

    What do you need to know"

    Test To Scale

    SQL PlanManagement 

    The ability to and let it g

    Never

    Stopping 

    Planning Ahead 

  • 8/17/2019 What I Need to Know When Upgrading

    11/56

    0 1232 Oracle Corporation

    irst 4 5hat #o 5e nee#to #o6

  • 8/17/2019 What I Need to Know When Upgrading

    12/56

  • 8/17/2019 What I Need to Know When Upgrading

    13/56

    0 1232 Oracle Corporation

    S%lan anage$ent

  • 8/17/2019 What I Need to Know When Upgrading

    14/56

  • 8/17/2019 What I Need to Know When Upgrading

    15/56

    S& lan anage$ent

    hase 2 4 Selection

    • Fe5 Plans are generate# *-eca!se something ch

    • !t are not tr!ste#– O4'**K@R_A4'?R@_675_45A

  • 8/17/2019 What I Need to Know When Upgrading

    16/56

    S& lan anage$ent

    hase 3 % !voltion

    • Plans are eri)ie# 4 -y testing the per)ormance o)

    plan in the -ackgro!n#– +!tomagically or Man!ally

    lan 5istory

    lan aseline

    (

    8&

    8&

    D9

    (

    56

    56

    E?!al or -etter plans can -e a##e# tothe S% Plan aseline (

    8&

    8&

    "ne))icient plan 5ill-e kept in the

    Plan Gistory

    (

    8&

    8&

    9

  • 8/17/2019 What I Need to Know When Upgrading

    17/56

  • 8/17/2019 What I Need to Know When Upgrading

    18/56

    S& lan anage$ent % ara$eterie

    lan 5istory

    lan aseline

    (

    8&

    8&

    (

    56

    56

    (

    8&

    8&

    &epeata-le plans 5ill -e a##e#to the Plan aseline !pon 1n#e$ec!tion

    O4'**K@R_J@A'?R@6_@

  • 8/17/2019 What I Need to Know When Upgrading

    19/56

    pgrade Scenario

    • Io!r application is in Ai

    • Io!J# like to hae ?!ery plan sta-ilityJ

    – Co!ple# 5ith the opport!nity to !se -etter plans 4 #o no

    to -e )ro7en

    • Io! 5ill -e changing plat)orms #!ring the !pgra#e

    #oing a #irect !pgra#e o) the #ata-ase,• The steps 5o!l# -e.

  • 8/17/2019 What I Need to Know When Upgrading

    20/56

    S& lan anage$ent % Outlines

    S!S SS

    Capt!re ?!ery o!tlines on thepro#!ction system

    E$p/imp o!tlines toFe5 system

    e$p impe$p#p imp#p

    (ink ...

    lan 5istory

    lan aseline

    (

    8&

    8&

    (

    56

    56

    (

    8&

    8&

    E=6_64*GRA'@_6'O3

  • 8/17/2019 What I Need to Know When Upgrading

    21/56

    pgrade Scenario

    • Same Scenario -!t yo!r application is in 32g

    • Io!J# like to hae ?!ery plan sta-ilityJ

    – Co!ple# 5ith the opport!nity to !se -etter plans 4 #o no

    to -e )ro7en

    • Io! 5ill -e changing plat)orms #!ring the !pgra#e

    #oing a #irect !pgra#e o) the #ata-ase,• The steps 5o!l# -e.

  • 8/17/2019 What I Need to Know When Upgrading

    22/56

    S& lan anage$ent % !uning ack

    S!S

    Staging

    !able

    e$p impe$p#p imp#p

    (ink ...

    S!S

    lan 5istory

    lan aseline

    (

    8&

    8&

    (

    56

    56

    (

    8&

    8&

    32.1 plans 5ill -ecomthe S% Plan aselin

    (

    8&

    8&

    3

  • 8/17/2019 What I Need to Know When Upgrading

    23/56

    pgrade Scenario

    • Io! 5o!l# like to #eploy )rom #eelopment to

    pro#!ction..• Io! 5o!l# like to #eploy at a c!stomer site

    •  And yo# *ant to start *ith a stable set of plans

    – Using better plans only after they have been verified 

    • The steps 5o!l# -e.

  • 8/17/2019 What I Need to Know When Upgrading

    24/56

    S& lan anage$ent 4 8ew 9pplication

    E=6_64?

  • 8/17/2019 What I Need to Know When Upgrading

    25/56

    0 1232 Oracle Corporation

    Test to Scale

    Database

  • 8/17/2019 What I Need to Know When Upgrading

    26/56

    Database

  • 8/17/2019 What I Need to Know When Upgrading

    27/56

    Supported #hanges

    Changes Supported•Database pgrades> atches

    •Sche$a> ara$eters

    • Interconnect

    •OS lat/or$s> OS pgrades

    •#> e$ory

    •Storage

    •?tc@

    #lient#lient

    …#lient

    iddle !ier 

    Storage

     ?

    ChangesUnsupported

    (there areother tools

    for that)

    St 1 W kl d # t

  • 8/17/2019 What I Need to Know When Upgrading

    28/56

    Step 1: Workload #apture

    roduction Syst

    #lient#lient

    #lient

    iddle !ier 

    Storage

    • +ll e$ternal client re?!ests capt!re# in -inary )iles

    • System -ackgro!n# an# internal actiity e$cl!#e#

    • Minimal oerhea#– +oi#s )!nction call 5hen possi-le

    –!))ere# "/O

    • "n#epen#ent o) client protocol

    • Can capt!re on Ai, 32 g, an# 33 g  an# replay on33g

    • Capt!re loa# )or interesting time perio#< e.g.<peak 5orkloa#< monthen# processing< etc.

    St 2 W kl d Bil

  • 8/17/2019 What I Need to Know When Upgrading

    29/56

    Step 2: rocess Workload Biles

    !est Syste$

    Bile 1

    Bile 2

    Bile n

    #apture Biles

    •Set!p test system

    – +pplication #ata sho!l# -e same aspro#!ction system as o) capt!re start time

    –'se &M+F< Snapshot Stan#-y< imp/e$p<(ata P!mp< etc. to create test system

    –Make change: !pgra#e #- an#/or OS<change storage< migrate plat)orms< etc.

    •Processing trans)orms capt!re# #atainto replaya-le )ormat

    •Once processe#< 5orkloa# can -ereplaye# many times

    •or &+C copy all capt!re )iles to singlelocation )or processing or !se share#)ile system

    St 3 < l W kl d

  • 8/17/2019 What I Need to Know When Upgrading

    30/56

    Step 3:

  • 8/17/2019 What I Need to Know When Upgrading

    31/56

    9nalysis =

  • 8/17/2019 What I Need to Know When Upgrading

    32/56

    !ransportS&

    S& er/or$ance 9nalyer: O.er.

    ……

    …#lient

    #aptureS&

    iddle !ier 

    Storage

    Oracle D

  • 8/17/2019 What I Need to Know When Upgrading

    33/56

    S& er/or$ance 9nalyer: Work/

    roduction !est

    #apture

    S& S!SE

      !ransport

    S!S

      ?;ecute S&

    re4change

      ?;ecute S&

    ost4change

    Steps 1E 2E 3E )E *E

    +E 

  • 8/17/2019 What I Need to Know When Upgrading

    34/56

    !o:

    S& er/or$ance 9nalyer: Gey Di//erentiators

     +!tomatic regress

    o5 risk< o5 cos

     +!tomate# S% cFegligi-le oerhe

    Pro#!ction S% c

    Bro$:

    Man!al regression t!ning

    Gigh risk< Gigh cost

    Man!al S% capt!re<

    Gigh oerhea#

    Fonpro#!ction S% conte$t

     +!tomate# analysMonths o) man!al analysis

    Complete S% 5oPartial S% 5orkloa#

  • 8/17/2019 What I Need to Know When Upgrading

    35/56

  • 8/17/2019 What I Need to Know When Upgrading

    36/56

    ore in/or$ation…

    • Gan#s on a-: S93@A==– (ata-ase an# +pplication Testing GO

    – e#: .;;.; pm

    – Marriott Bol#en Bate

    •  SP+ / (ata-ase &eplay (emo gro!n#s

    – Moscone est: 29@/29A

  • 8/17/2019 What I Need to Know When Upgrading

    37/56

    0 1232 Oracle Corporation

    The +-ility to )orget +n# let it go

    Blashback /or

  • 8/17/2019 What I Need to Know When Upgrading

    38/56

    Blashback /or

  • 8/17/2019 What I Need to Know When Upgrading

    39/56

  • 8/17/2019 What I Need to Know When Upgrading

    40/56

    0 1232 Oracle Corporation

    Feer Stopping

  • 8/17/2019 What I Need to Know When Upgrading

    41/56

    <

    #

    S5

    Initial S& 9pply #on/ig

    #lientsRedo

    ersion J ersion J

    1

    9

    Switcho.er to > upgrade 9

    Redo

    )

    pgrade

    JK1JK1

    9

  • 8/17/2019 What I Need to Know When Upgrading

    42/56

    Online 9pplication pgrade?dition4based rede/inition

    •Co#e changes are installe# in the priacy o) a ne5

    edition•(ata changes are ma#e sa)ely -y 5riting only to necol!mns or ne5 ta-les not seen -y the ol# e#ition

    • +n editioning .iew e$poses a #i))erent projection ota-le into each e#ition to allo5 each to see j!st its o

    col!mns• + crossedition trigger propagates #ata changes mthe ol# e#ition into the ne5 e#itionJs col!mns< or *inrolloer, iceersa

    ?ditions = obHect .isibility

  • 8/17/2019 What I Need to Know When Upgrading

    43/56

    = H y

    O-ject

    O-ject9

    O-ject1

    O-ject3

    re4upgradeedition

    ?ditions = obHect .isibility

  • 8/17/2019 What I Need to Know When Upgrading

    44/56

    H y

    O-ject

    O-ject9

    O-ject1

    O-ject3

    O-ject1

    O-ject3

    re4upgradeedition

    ost4upgradeedition

    is child of 

    1in

    1in

    1in

    1in

    O-ject

    O-ject9

    ?ditions = obHect .isibility

  • 8/17/2019 What I Need to Know When Upgrading

    45/56

    H y

    O-ject

    O-ject9

    O-ject1

    O-ject3

    O-jectQ

    O-ject9Q

    O-ject1

    O-ject3

    re4upgradeedition

    ost4upgradeedition

    is child of 

    1a

    1a

    1in

    1in

  • 8/17/2019 What I Need to Know When Upgrading

    46/56

    0 1232 Oracle Corporation

    Planning +hea#pgrade lanner 

  • 8/17/2019 What I Need to Know When Upgrading

    47/56

    The )ollo5ing is inten#e# to o!tline o!r general pro#

    #irection. "t is inten#e# )or in)ormation p!rposes onlyan# may not -e incorporate# into any contract. "t is

    commitment to #elier any material< co#e< or )!nctio

    an# sho!l# not -e relie# !pon in making p!rchasing

    #ecisions.

    The #eelopment< release< an# timing o) any )eat!re)!nctionality #escri-e# )or OracleJs pro#!cts remain

    the sole #iscretion o) Oracle.

    OS4?: ni/ied iew> Integrated In/or$ation

    etween y Oracle Support and ?nterprise ana

  • 8/17/2019 What I Need to Know When Upgrading

    48/56

    0 1232 Oracle Corporation

    y Oracle Support

    er/or$ance

    anage$ent

    ?nterprise anager 

    ro.

    =

    roble$

    Diagnosis

    etween y Oracle Support and ?nterprise ana

    Oracle

    #usto$er 

    (ata-asesOperating Systems Mi##le5are  +pplica

    Pro-lem/S&

    Management

    Con)ig!r

    Managem

    Kno5le#ge

    Management

    Pro-lem/S&

    Management

    Con

    Man

    Kno5le#ge

    Management

    y Oracle Support % pgrade lanner 

  • 8/17/2019 What I Need to Know When Upgrading

    49/56

    0 1232 Oracle Corporation

    hat +re e +nno!ncing6

    • Fe5 eat!re in My Oracle S!pport– +ssist c!stomers in planning the an 'pgra#e o) Oracle technolo

    • ene)its– &e#!ce# time to create< manage an# e$ec!te 'pgra#e plan

    • Streamline# process to re?!est merge patches

    – Breater &elia-ility #!e to So)t5are C!rrency

    • atest S< Patch< an# Certi)ication in)ormation• +cc!racy o) recommen#ations -ase# on con)ig #ata *not man!

    – o5er &isk

    • +!tomate# analysis )or missing patches an# con)lict checking

    y Oracle Support: pgrade lanner 

  • 8/17/2019 What I Need to Know When Upgrading

    50/56

    0 1232 Oracle Corporation

    • 'pgra#e )rom 32.1.2. to 33.1

    • here #o " get the so)t5are

    • hat are the ali# S !pgra#epaths 6

    • hat is the certi)ication/EOstat!s o) the S 6

    • hat recommen#e# patches#o " apply post!pgra#e6

    • Go5 #o " kno5 i) my 32.1.2.)i$es 5ill -e on my 33.1!pgra#e6

    •  +re there patch con)licts6

    • 'pgra#e path Srecommen#ations 5/

    • Certi)ication /EO checks

    • &ecommen#e# Patches

    • &eplacement/Merge Patch

    • Con)lict +nalysis )or Patches

    • &esearch an# +## Patches

    • &eie5 Patch ee#-ack

    • inks to latest S!pport

    • est Practices an# kno5le#ge

    • &e#!ce# Tanalysis an

    'pgra#e P

    • &e#!ce# &acc!racy *a

    • "mproe# ?latest Orac

    Practices

    Challenges Capa#ilities $

  • 8/17/2019 What I Need to Know When Upgrading

    51/56

  • 8/17/2019 What I Need to Know When Upgrading

    52/56

    5ow to get there

    pgrade is easierP

  • 8/17/2019 What I Need to Know When Upgrading

    53/56

    0 1232 Oracle Corporation %& 

    •The !pgra#e to Oracle (ata-ase 33 g   is m!ch easier tha!pgra#es to earlier Oracle releases

    •Si7e o) 'pgra#e g!i#es:–3!%!4  ;31 pages

    –5!&!% @ pages  4 333 steps )or an &(MS 5ith A components

    –5!6!&  9 pages

    –%&!%!&  3>2 pages

    –%&!6!&  32 pages–%%!%!&  3@= pages

    –%%!6!& 3>@ pages

    Docu$entation

  • 8/17/2019 What I Need to Know When Upgrading

    54/56

    –Fote:>@;9;3.3  'pgra#e Companion 33g  &elease 1

    What are $y upgrade paths" di t bl / t d

  • 8/17/2019 What I Need to Know When Upgrading

    55/56

    redictable per/or$ance post4upgrade

     

    10.2.0.2

      11.1.0.6

    10.1.0.5

    9.2.0.8

    11.

    S& lan a

    9uto$ated S

  • 8/17/2019 What I Need to Know When Upgrading

    56/56