11G Upgrade Best Practices

download 11G Upgrade Best Practices

of 108

Transcript of 11G Upgrade Best Practices

  • 7/25/2019 11G Upgrade Best Practices

    1/108

    Upgrading to 11g Why, How and Best Practices

    Roderick Manalac

    Consulting Technical Advisor - Center of Expertise

    Tom WrightCustomer Support Manager

    tom.right!oracle.com

  • 7/25/2019 11G Upgrade Best Practices

    2/108

    Recap

    Agenda

    Challenges " #est $ractices

    S%& $lan Management

    AWR " STATS$AC'

    Real Application Testing

    %"A

  • 7/25/2019 11G Upgrade Best Practices

    3/108

    t200

    200!

    200"

    200#

    200$

    200%

    2002

    200&

    2010

    today

    'i(eti)e *upport Po+icy

    2011

    2012

    201!

    201"

    Sustaining Support

    Premier Support2 July 2007

    Extended SupportJuly 2010

    January 2009 January 2012

    2 July 2010 July 2013

    http://www.oracle.com/support/library/brochure/lifetime-support-technology.pf

    201#

    201$

    !ugust 2012 !ugust 201"

    July 200#

  • 7/25/2019 11G Upgrade Best Practices

    4/108

    'i(eti)e *upport Po+icy -e+i.era/+es

    eature Pre)ier

    *upport

    tended

    *upport

    *ustaining

    *upport3a4or Product and 5echno+ogy e+eases3a4or Product and 5echno+ogy e+eases

    5echnica+ *upport5echnica+ *upport

    Access to 6now+edge BaseAccess to 6now+edge Base

    73eta'in89:usto)er :onnection9*upportWe/;73eta'in89:usto)er :onnection9*upportWe/;

    Updates, ies, *ecurity A+erts and :ritica+ PatchUpdates, ies, *ecurity A+erts and :ritica+ Patch

    UpdatesUpdates

    Preeisting =n+yPreeisting =n+y

    5a, 'ega+ and egu+atory Updates5a, 'ega+ and egu+atory Updates

    oo

    Upgrade *criptsUpgrade *cripts

    oo

    :erti(ication with eisting 5hird Party:erti(ication with eisting 5hird PartyProducts9?ersionsProducts9?ersions

    oo

    :erti(ication with ew 5hird Party:erti(ication with ew 5hird PartyProducts9?ersionsProducts9?ersions

    oo oo

    :erti(ication with new =rac+e Products:erti(ication with new =rac+e Products

    oo

  • 7/25/2019 11G Upgrade Best Practices

    5/108

  • 7/25/2019 11G Upgrade Best Practices

    6/108

  • 7/25/2019 11G Upgrade Best Practices

    7/108

    *e+( 3anaging -ata/ase

    *torage

    Bac8up

    3e)ory

    Apps9*@'

    *che)a

    ,A:

    ,eco.ery

    ,ep+ication

    Auto5uning5uning

    Ad.isory

    Instru)entation

  • 7/25/2019 11G Upgrade Best Practices

    8/108

    -ocu)entation

    ( /ote0 122343.35pgrade Companion 36gR7

    ( /ote0 263468.3 5pgrade Companion 33g

    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=601807.1https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=466181.1https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=466181.1https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=601807.1
  • 7/25/2019 11G Upgrade Best Practices

    9/108

    -ocu)entation

    ( /ote0 263468.3 5pgrade Companion 33g

    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=466181.1https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=466181.1
  • 7/25/2019 11G Upgrade Best Practices

    10/108

    -ocu)entation

    ( /ote0 263468.3 5pgrade Companion 33g

    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=466181.1https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=466181.1
  • 7/25/2019 11G Upgrade Best Practices

    11/108

    3y =rac+e *upport :on(iguration 3anager

    A Support capa+ilit* that automates configuration information exchange

    +eteen 9racle and our customers ena+ling faster resolution andproactive detection of customer issues. M* 9racle Support utili:es core

    configuration management capa+ilities availa+le from 9racle Enterprise

    Manager and provides0

    The a+ilit* to define configurations and organi:e pro;ects

    A vie of S*stem details and changes Create, track, and status Service Re

  • 7/25/2019 11G Upgrade Best Practices

    12/108

    =:3 5he Big Picture

    $upport

    HTTPS

    :usto)er *ite

    Ca nc el

    OracleSupportLive Link

    OracleLiveLinkhelpsOracleprovideyoutimelyandfocusedSupport.

    small amountofinformation a!outyourenvironmenti s

    sentto Oraclesupportto !etterhandleyour re"uests.

    #oseeanexampleoftheinformation$selectthislink.

    OracleLive LinkOracle LiveLink

    %na!leOracleLive Link

    &isa!leOracleLive Link

    Simple install/command UI

    %nowlege

    &anagement

    ProxyServer

    My Oracle Support or MetaLink

    $'&

    'onfig (iew

    =rac+e ::

  • 7/25/2019 11G Upgrade Best Practices

    13/108

    What is a syste)

    *yste)s are na)ed co++ections o( hardware, so(tware, andoperating syste) running on a )achine

  • 7/25/2019 11G Upgrade Best Practices

    14/108

    *a)p+e *yste) -ata /eing pu++ed C

    Infrastructure level' pps (e! con)*uration' pps (e! con)*uration )les' Context )les' &ata!ase con)*uration' &ata!ase con)*uration )les' Custom context varia!les

    ' %nvironment context varia!les' +lo!al context varia!les' ,ost context varia!les' -nstall context varia!les' rocess context varia!les' System context varia!les'#echnolo*y stack inventory /)le system0' 1ork2o( mailer con)*uration' 1ork2o( mailer con)*uration )les

    Infrastructure level' pps (e! con)*uration' pps (e! con)*uration )les' Context )les' &ata!ase con)*uration' &ata!ase con)*uration )les' Custom context varia!les' %nvironment context varia!les

    ' +lo!al context varia!les' ,ost context varia!les' -nstall context varia!les' rocess context varia!les' System context varia!les'#echnolo*y stack inventory /)le system0' 1ork2o( mailer con)*uration' 1ork2o( mailer con)*uration )les

    JServ level' Con)*uration )les' 3ones

    JServ level' Con)*uration )les' 3ones

    HTTP Server level' Cipher suites' Con)*uration )les' +eneral' Listen addresses

    ' erformance related settin*s' 4irtual hosts

    HTTP Server level' Cipher suites' Con)*uration )les' +eneral' Listen addresses' erformance related settin*s

    ' 4irtual hosts

    ApplicationServer level

    ' Con)*uration )les' Console con)*uration

    ' &C5 con)*uration' &eployed applications' +eneral' O5N con)*uration

    ApplicationServer level

    ' Con)*uration )les' Console con)*uration

    ' &C5 con)*uration' &eployed applications' +eneral' O5N con)*uration

    eBusiness Suite' # of active users' pplied patches' Custom forms

    ' pplications system summary' pplications topolo*y' Comprisin* patches' Component versions' Con)* version' Custom applications' ro)le options re*istered under custom

    app.' Custom data!ase o!6ects' Cust. ,ooks' Custom messa*e count' Custom o!6ects o(ned !y pps

    ' Custom re"uest sets' 7esponsi!ility count' Custom tri**ers' Custom value sets 8 ta!le validated' Custom value sets 8 other' Custom (ork2o(s' &ata *roups' &ata!ase version' %nd9&ated users' +eneric service components

    parameters' ,i*h priority patches not applied

    ':#; hooks' Localiation modules' NSL lan*ua*es' Other customiations' pplication patch levels' rinters' rinter drivers' ro)le options' 7e*istered Oracle users'#echnolo*y stack inventory /&B0

    eBusiness Suite' # of active users' pplied patches' Custom forms' pplications system summary

    ' pplications topolo*y' Comprisin* patches' Component versions' Con)* version' Custom applications' ro)le options re*istered under custom

    app.' Custom data!ase o!6ects' Cust. ,ooks' Custom messa*e count' Custom o!6ects o(ned !y pps' Custom re"uest sets' 7esponsi!ility count' Custom tri**ers' Custom value sets 8 ta!le validated' Custom value sets 8 other' Custom (ork2o(s' &ata *roups' &ata!ase version' %nd9&ated users' +eneric service components

    parameters' ,i*h priority patches not applied

    ':#; hooks' Localiation modules' NSL lan*ua*es' Other customiations' pplication patch levels' rinters' rinter drivers' ro)le options' 7e*istered Oracle users'#echnolo*y stack inventory /&B0

    Databaselevel

    ' Con)* version

    ' Control )les' &ata )les' -nstance information' ;eature usa*e' ,i*h (ater mark' -nitialiation

    parameters' Session hi*h (ater

    mark' Options' 7edo lo*s' 7oll!ack se*ments

    ' S+'#a!lespaces' &ata!ase users' Statspack

    con)*uration

    Databaselevel

    ' Con)* version' Control )les

    ' &ata )les' -nstance information' ;eature usa*e' ,i*h (ater mark' -nitialiation

    parameters' Session hi*h (ater

    mark' Options' 7edo lo*s' 7oll!ack se*ments' S+'#a!lespaces' &ata!ase users' Statspack

    con)*uration

    Host level' Operatin* system initialied services' Operatin* system =L-5-#s' ,ard(are' C=s' -O devices

    ' Net(ork interfaces' Operatin* system' Component' ;ile system' 5odules' OS parameters' 7e*istered soft(are

    Host level' Operatin* system initialied services' Operatin* system =L-5-#s' ,ard(are' C=s' -O devices' Net(ork interfaces' Operatin* system' Component' ;ile system' 5odules' OS parameters' 7e*istered soft(are

  • 7/25/2019 11G Upgrade Best Practices

    15/108

    :on(iguration 3anager=rac+e :on(iguration 3anager and =rac+e nterprise 3anager

    ( =ou do not need to install Enterprise Manager >EM? in

    order to use the 9racle Configuration Manager.

    ( f EM Agent is alread* installed, *ou ma* also install the

    9racle Configuration Manager

    ( EM and 9racle Configuration Manager send data todifferent repositories0 Enterprise Manager sends to EM

    Repositor*, 9racle Configuration Manager sends to

    Customer Configuration Repositor* at 9racle Support.

    ( To manage *our 9racle s*stem ith EM and also send

    Configuration data +ack to configuration manager in M*

    9racle Support or Meta&ink, each must +e installed on the

    s*stem.

  • 7/25/2019 11G Upgrade Best Practices

    16/108

    *er.ice eDuest *e.erity -e(initions

    o +oss o( ser.ice or resources

    3inor +oss o( ser.ice or resources

    *e.ere +oss o( ser.ice or resources w9o accepta/+e wor8around

    :o)p+ete +oss o( ser.ice or resources and wor8 cannot

    reasona/+y continue the wor8 is considered E)ission critica+F

  • 7/25/2019 11G Upgrade Best Practices

    17/108

    sca+ation Process

    Support Representative

    Manager @

    Escalation Manager

    Senior Manageror irector

    B.$. or

    Executive

    Customer

    :a++ U* 00 22! 1%119ther lo+al Support )ot &ines0

    http://www.oracle.com/support/contact.html

  • 7/25/2019 11G Upgrade Best Practices

    18/108

    G+o/a+ :usto)er :are

    G+o/a+ :usto)er :are is a high+y a.ai+a/+e epert resourcethat reso+.es custo)ers /usinessre+ated inDuiries whi+ecapturing and sharing (eed/ac8 to enhance the custo)er

    re+ationshipesponsi/i+ities inc+ude /ut are not +i)ited to

    ( Access and navigation of 9racle Support e+sites >including Metalink?

    ( $lacing softare orders

    ( Assisting ith CS

  • 7/25/2019 11G Upgrade Best Practices

    19/108

    =rac+e *upport *er.iceshttp://www.oracle.com/support

  • 7/25/2019 11G Upgrade Best Practices

    20/108

    =rac+e Ad.isor We/casts ow A.ai+a/+e5hrough 3y =rac+e *upport and 3eta'in8J

    ( A ne a* to receive information a+out *our 9racle E-#usiness Suite solutions

    ( o to Meta&ink /ote D4488.3 - )elcome to the

    *racle !+isor )ebcast ,rogram

    ( ncludes links to the Advisor We+cast page

    ( nstructions for registering and vieing +oth live and archived

    e+casts

    ( The current menu of scheduled e+casts to choose from

  • 7/25/2019 11G Upgrade Best Practices

    21/108

    Process and 5oo+s Ad.isor We/casts

    http://www.oracle.com/support/seminars.html

  • 7/25/2019 11G Upgrade Best Practices

    22/108

    :usto)er *upport ducation

    Delivery Options

    ( 9ne-on-9ne Customer meetings and We+casts( Support We+casts F targeting a core Customer audience

    ( Regularl* scheduled free nternet Seminars

    ( Regional Support Education Workshops

    ( 5ser roups, Ss, R5s, etc.

    Value to you

    olloing attendance at one of our presentations, Customers have

    experienced, on average0

    ( 5p to a 16G reduction in volume of ne Service Re

  • 7/25/2019 11G Upgrade Best Practices

    23/108

    Recap

    Agenda

    Challenges " #est $ractices

    S%& $lan Management

    AWR " STATS$AC'

    Real Application Testing

    %"A

  • 7/25/2019 11G Upgrade Best Practices

    24/108

    :ha++enges K Best Practices

    ( H6G of so-called upgrade pro+lems arenIt reall* upgrade

    pro+lems +utperformance issues after the upgrade( tIs important to use sufficient test scenarios and methods

    ( T*pical pro+lem areas0

    ( 9ptimi:er - execution plans

    ( %ueries are slo( Reports or +atches take longer to complete

    ( ncreased resource re

  • 7/25/2019 11G Upgrade Best Practices

    25/108

    :ha++enges K Best Practices

    ( et as much performance information as possi+le

    #E9RE*ou upgrade to the ne release - thatIs of vitalimportanceJJJ

    ( et accurate performance statistics

    ( Comparison0 +eforeafter

    ( Measure

  • 7/25/2019 11G Upgrade Best Practices

    26/108

    :ha++enges K Best Practices

    ( $ossi+ilities for performance anal*sis and

    prediction0( STATS$AC'

    ( AWR

    ( S%& $lan Management

    ( Real Application Testing( S%& $erformance Anal*:er

    ( ata+ase Repla*

  • 7/25/2019 11G Upgrade Best Practices

    27/108

    :ha++enges K Best Practices

    ( 9ptimi:er - prevent execution plan changes0

    ( Classical approach0( Rule #ased 9ptimi:er>$lease note0 R#9 desupport since 9racle 36g?

    ( )ints

    ( Stored 9utlines

    ( Reriting S%& statements

    ( optimi:erKfeaturesKena+ledLn.n.n

    ( Change specific optimi:er parameters

    ( mport and fix o+;ect and s*stem statistics

    ( Modern, efficient and +etter resource consumption0

    ( S%& $lan Management

    ( S%& $rofiling

  • 7/25/2019 11G Upgrade Best Practices

    28/108

    -ictionary *tatistics

    ( Create dictionar* statisticsprior to the upgrade - otherise

    it ill take significantl* longer

    ( etailed scripts can +e found here0

    =rac+eL -ata/ase Upgrade Guide Appendi B

    ( 9r in @ 0

    SQL> EXECUTE dbms_stats.gather_schema_stats ('SYS', options > '!"T#E$', estimate_percent > %&S_ST"TS."UT_S")LE_S*+E,

    method_opt > '$ "LL CLU-S S*+E "UT', cascade > T$UE/

    SQL> EXECUTE dbms_stats.gather_schema_stats ('SYS', options > '!"T#E$', estimate_percent > %&S_ST"TS."UT_S")LE_S*+E,

    method_opt > '$ "LL CLU-S S*+E "UT', cascade > T$UE/

    SQL> EXECUTE dbms_stats.gather_dictionar0_stats/SQL> EXECUTE dbms_stats.gather_dictionar0_stats/

  • 7/25/2019 11G Upgrade Best Practices

    29/108

    Post Upgrade

    ( Create s*stem statisticsduring a regular orkload period -

    otherise non-appropriate values for the C#9 ill +e used0

    SQL> se1ect pname -"E, p2a13 4E$T, p2a15 *- 6rom a78_stats9/

    -"E 4E$T *-:::::::::::::::::::: :::::::::: ::::::::::::::::::::::::::::::ST"TUS C)LETE%%ST"$T ; EXECUTE dbms_stats.gather_s0stem_stats('stop'/

    SQL> EXECUTE dbms_stats.gather_s0stem_stats('start'/...SQL> EXECUTE dbms_stats.gather_s0stem_stats('stop'/

  • 7/25/2019 11G Upgrade Best Practices

    30/108

    Post Upgrade

    ( Create fixed ta+le statisticssoon after the upgrade0

    SQL> e8ec7te dbms_stats.gather_6i8ed_obects_stats/

    SQL> e8ec7te dbms_stats.gather_6i8ed_obects_stats/

  • 7/25/2019 11G Upgrade Best Practices

    31/108

    Recap

    Agenda

    Challenges " #est $ractices

    S%& $lan Management

    AWR " STATS$AC'

    Real Application Testing

    %"A

  • 7/25/2019 11G Upgrade Best Practices

    32/108

    Auto)atic Wor8+oad epository

    ( Since 9racle 36g0AWR>Automatic Workload Repositor*?

    ( Statistics repositor* in the S=SA5 ta+lespace( Contains AWR snapshots >current and pastperiods?

    ( Re 'aFr_data.dmp', dmpdir > 'T)_%*$',

    bid > @;5, eid > @;A/end/G

    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=189702.1https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=189702.1https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=189702.1https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=189702.1https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=189702.1https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=189702.1
  • 7/25/2019 11G Upgrade Best Practices

    33/108

    *5A5*PA:6

    ( ata+ase performance tool - pre-36g

    ( /ote0D1D8.3 STATS$AC' guide( Export the PERFSTATuser

    http://st-doc.us.oracle.com/11/111/server.111/b28300/statistics.htmhttp://st-doc.us.oracle.com/11/111/server.111/b28300/statistics.htm
  • 7/25/2019 11G Upgrade Best Practices

    34/108

    Recap

    Agenda

    Challenges " #est $ractices

    S%& $lan Management

    AWR " STATS$AC'

    Real Application Testing

    %"A

  • 7/25/2019 11G Upgrade Best Practices

    35/108

    NThe ata+ase Repla* and S%& $lan

    Management features alone are orthupgrading to 9racle ata+ase 33g N

    Arup /anda

    Senior irector of ata+ase Engineering and Architecture

    $tarwoo otels an esorts )orlwie

    What Starwood Hotels & esorts !orldwide Is *aying

  • 7/25/2019 11G Upgrade Best Practices

    36/108

    :ha++enge

    )o do ensureplan sta+ilit*OOO

  • 7/25/2019 11G Upgrade Best Practices

    37/108

    Without *@' P+an 3anage)ent

    ( Challenging to Nfree:eN execution plans and statistics

    ( ifficult*0( Statement has +een parsed and a plan got created.

    Berification happens during execution0

    ( /o some conditions get changed >e.g. upgrade?

    ( A ne plan ill +e created - is it +etter or orseOOO

    HM

    HM

    GB

    Parse ecute ,lan acceptable

    '

    '

    GB

    Parse ecute ,lan possiblynot acceptable

  • 7/25/2019 11G Upgrade Best Practices

    38/108

    *@' P+an 3anage)ent

    ( irst preventiveand full* transparentdata+ase mechanism

    to ensure plan sta+ilit*( S%& execution plans ill +e recorded

    (A S%& #aseline ill +e created

    ( Consists of accepted execution plans

    ( Contains onl* plans for statements +eing parsed@executed morethan once

    ( 9nl* knon and verified and accepted plans ill +e used

    ( $ackage0 %&S_S)

  • 7/25/2019 11G Upgrade Best Practices

    39/108

    *@' P+an 3anage)ent

    ( D phases for plan sta+ilit*0

    ( Capture( Create a S%& #aseline representing trustedexecution plans

    ( #aseline is stored in S%& Management #ase in ta+lespace

    S=SA5

    ( Selection

    ( 9nl* accepted plans ill +e used

    ( /e execution plans ill +e recorded in the plan histor*

    ( Evolution

    ( Evaluate all unverified plans for a given statement in the plan

    histor* to +ecome either accepted or re;ected

  • 7/25/2019 11G Upgrade Best Practices

    40/108

    *@' P+an 3anage)ent

    ( White $aper0

    http?GGFFF.orac1e.comGtechno1og0Gprod7ctsG manageabi1it0GdatabaseGpd6GoF;=G spm_Fhite_paper_oF;=.pd6

  • 7/25/2019 11G Upgrade Best Practices

    41/108

    *@' P+an 3anage)ent

    ( $hase 3 - Capture

    )T**+E$_C")TU$E_SQL_)L"-_&"SEL*-ET$UE (efault0 "LSE

    Parse

    HM

    HM

    GB

    P+an History

    HM

    HM

    GB

    P+an Base+ine

    ecute $lan accepta+le

    nitial planill +e acceptedif repeated and

    ill +e added to theS%& $lan #aseline

    SQL MANAGEMENT BASEesiing in $$! $.

    )ill occupy ma4. 105 of $$!.)ee6ly ob will elete plans

    not use since "3 wee6s 8efault.

  • 7/25/2019 11G Upgrade Best Practices

    42/108

    P+an History

    P+an Base+ine

    *@' P+an 3anage)ent

    ( $hase 7 - Selection

    )T**+E$_USE_SQL_)L"-_&"SEL*-ET$UE >efault0 T$UE( Same statement parsed again +ut a different plan ill +e created

    Parse

    HM

    HM

    GB

    /e plan ill +eadded to the $lan

    )istor* +ut it onIt+e used unless it

    has +een verified

    '

    '

    GB

    GB

    '

    '

  • 7/25/2019 11G Upgrade Best Practices

    43/108

    P+an History

    P+an Base+ine

    *@' P+an 3anage)ent

    ( $hase 7 - Selection

    )T**+E$_USE_SQL_)L"-_&"SEL*-ET$UE

    Parse

    HM

    HM

    GB

    HM

    HM

    GB

    ecute $lan knon andaccepta+le

    GB

    '

    '

    The optimi:er ill useonl* one of the

    BERE plans storedin the S%& #aseline

    +ecause onl* these illguarantee $&A/STA#&T=

  • 7/25/2019 11G Upgrade Best Practices

    44/108

    P+an History

    P+an Base+ine

    P+an History

    P+an Base+ine

    *@' P+an 3anage)ent

    ( $hase D - Evolution

    GB

    '

    '

    HM

    HM

    GB

    GB

    '

    '

    -BA

    9ptimi:er

    GB

    '

    ' GB

    HM

    HM

    E

  • 7/25/2019 11G Upgrade Best Practices

    45/108

    *@' P+an 3anage)ent

    ( ata+aseControl0

  • 7/25/2019 11G Upgrade Best Practices

    46/108

    *@' P+an 3anage)ent

    ( ata+aseControl - Configuration0

    Start ith P-31 eeks0

    exec #MSKS$M.C9/5RE>IplanKretentionKeeksI,P? Q

  • 7/25/2019 11G Upgrade Best Practices

    47/108

    *@' P+an 3anage)ent

    ( ata+aseControl - details0

  • 7/25/2019 11G Upgrade Best Practices

    48/108

    *@' P+an 3anage)ent

    ( ata+aseControl - evolve0

  • 7/25/2019 11G Upgrade Best Practices

    49/108

    *@' P+an 3anage)ent *cenarios

    ( 5pgrade scenario 30

    ( $arameteri:e the optimi:er +ack to the NoldN +ehaviour( Works for all data+ase releases since 4.6.D

    ( 5pgrade scenario 70

    ( Transport all ell knon plans to the ne release

    ( Works since 36g2( Ship a ne application >module? along ith appropriate

    S%& plan +aselines0

    ( Ship the +est execution plans for the ne statements ithin a

    staging ta+le and ensure that the*Ill +e used

    ( Works since 36g2

  • 7/25/2019 11G Upgrade Best Practices

    50/108

    *@' P+an 3anage)ent Upgrade 1

    ( 5pgrade scenario 3

    *5*

    P+an History

    P+an Base+ine

    GB

    '

    '

    GB

    HM

    HM

    GB

    '

    '

    Repeata+le plans ill +e addedto the $lan #aseline upon 7ndexecution

    GB

    '

    '

    )T**+E$_E"TU$ES_E-"&LEB.5.;)T**+E$_C")TU$E_SQL_)L"-_&"SEL*-ET$UE

    /o0 ifferentplans created

    ith 9EL33ill +e added tothe $lan )istor*for later verification

    )T**+E$_E"TU$ES_E-"&LE33.3.;)T**+E$_C")TU$E_SQL_)L"-_&"SEL*-E"LSE

    *@

  • 7/25/2019 11G Upgrade Best Practices

    51/108

    *@' P+an 3anage)ent Upgrade 2

    ( 5pgrade scenario 7

    *taging

    5a/+e

    *5*exp imp

    expdp impdp#-&ink ...

    *5*

    P+an History

    P+an Base+ine

    GB

    '

    '

    GB

    HM

    HM

    GB

    '

    '

    36.7 plans ill +e addedto the S%& $lan #aseline

    GB

    '

    '

    Ever* ne +etter plan found in 33gill +e added to the $lan )istor*

    *@' P+ 3 A +i i

  • 7/25/2019 11G Upgrade Best Practices

    52/108

    *@' P+an 3anage)ent ew App+ication

    ( /e application >module? gets delivered

    ep i)pepdp i)pdp

    !Bendor

    P+an Base+ine

    GB

    '

    '

    GB

    HM

    HM

    GB

    '

    '

    %&S_S).C$E"TE_ST!T"&_&"SEL*-E

    %&S_S).)"C_ST!T"&_&"SEL*-E

    *taging

    5a/+e

    %&S_S).U-)"C_ST!T"&_&"SEL*-E

    !Customer

    *taging

    5a/+e

    P+an Base+ine

    GB

    '

    '

    GB

    HM

    HM

    GB

    '

    '

    A d

  • 7/25/2019 11G Upgrade Best Practices

    53/108

    Recap

    Agenda

    Challenges " #est $ractices

    S%& $lan Management

    AWR " STATS$AC'

    Real Application Testing

    %"A

    + A +i ti 5 ti

  • 7/25/2019 11G Upgrade Best Practices

    54/108

    ea+ App+ication 5esting

    ( oal0

    (Ena+le successful adoption of ne technolog* and features -specificall*ne releases of the data+ase - at lo-costand lo-risk+*0( Record and repla* a real orkload to see ho the ne s*stem performs

    ( inding regressions and changing plans +efore the upgrade

    ( &icensa+le data+ase pack NReal Application TestingN

    Availa+le ith 9racle ata+ase 33.3.6.2Availa+le ith patch set 36.7.6.1

    Availa+le as single patch for .7.6.4 and 36.7.6.D

    or patch num+ers please see /ote0P2688.3

    Can +e used for upgrades from

    .7.6.4 to 36.7.6.D@1

    .7.6.4 to 33.3.6.x36.7.6.D@1 to 33.3.6.x

    + A +i ti 5 ti

  • 7/25/2019 11G Upgrade Best Practices

    55/108

    ea+ App+ication 5esting

    ( Real Application Testing consists of0

    ( ata+ase Repla*( $ackage%&S_4$L"%_C")TU$E

    ( $ackage %&S_4$L"%_$E)L"Y

    ( S%& $erformance Anal*:er >S$A?

    ( $ackage %&S_SQL)"

    ( S%& Tuning Sets >STS?( $ackage%&S_SQLTU-E

    + A +i ti 5 ti

  • 7/25/2019 11G Upgrade Best Practices

    56/108

    ea+ App+ication 5esting

    ( White $aper0

    ( S%& $erformance Anal*:er0( Techinical White $aper0 S%& $erformance Anal*:er

    http://www.oracle.com/technolog/prod!cts/manageabilit/database/pd

    "/ow#$/spa%white%paper%ow#$.pd"

    ( ata+ase Repla*0

    ( Techinical White $aper0 ata+ase Repla*http://www.oracle.com/technolog/prod!cts/manageabilit/database/pd"/ow#$/db%repla%white%paper%ow#$%'.pd"

    + A +i ti 5 ti 5 + ( th 5 d

  • 7/25/2019 11G Upgrade Best Practices

    57/108

    ea+ App+ication 5esting 5oo+s o( the 5rade

    $; ,erformance !naly

  • 7/25/2019 11G Upgrade Best Practices

    58/108

    ( ata+ase Control0

    ea+ App+ication 5esting

    A d

  • 7/25/2019 11G Upgrade Best Practices

    59/108

    Recap

    Agenda

    Challenges " #est $ractices

    S%& $lan Management

    AWR " STATS$AC'

    Real Application Testing

    %"A

    S%& $erformance Anal*:er

    ata+ase Repla*

    :h ++

    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=158845.1https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=158845.1
  • 7/25/2019 11G Upgrade Best Practices

    60/108

    :ha++enge

    )o do find outhich plans ill+e changedO

    )o do verif*

    parameterchangesO

    :o))on *PA Usage *cenarios

  • 7/25/2019 11G Upgrade Best Practices

    61/108

    :o))on *PA Usage *cenarios

    ( Common S$A usage scenario examples

    ( ata+ase upgrades, patch set changes( $arameter changes

    ( Schema changes

    ( 9ptimi:er statistics refresh, etc.

    ( S$A interface

    ( Rich 5 through Enterprise Manager

    ( Command line interface through %&S_SQL)"$&@S%&package

    *@' Per(or)ance Ana+yNer =.er.iew

    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=398372.1https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=398372.1https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=398372.1
  • 7/25/2019 11G Upgrade Best Practices

    62/108

    5ransport*@'

    *@' Per(or)ance Ana+yNer =.er.iew

    CC

    C:+ient

    :apture

    *@'

    3idd+e 5ier

    *torage

    =rac+e -B

    eeecute *@'

    Production 5est

    o )idd+e K app+ication tier setup reDuired

    3a8e :hanges 95uning egressions

    ( I( adeDuate spare cyc+es a.ai+a/+e,optiona++y eecute *@' here

    *@' Per(or)ance Ana+yNer Wor8(+ow

  • 7/25/2019 11G Upgrade Best Practices

    63/108

    *@' Per(or)ance Ana+yNer Wor8(+ow

    Production 5est

    :apture

    *@' 7*5*;

    5ransport

    *5*

    ecute *@'

    Prechange

    ecute *@'

    Postchange

    :o)pare

    Per(

    *teps 71; 72; 7!; 7"; 7#;

    7$; eiterate

    7%;

    o

    Oes

    7%;

    -one

    3a8e :hange

    Production :hange 9 5uning-ep+oy)ent

    5uned *yste)

    *PA Wor8(+ows

  • 7/25/2019 11G Upgrade Best Practices

    64/108

    *PA Wor8(+ows

    ( $ossi+le orkflos0

    ( 9ptimi:er upgrade simulation >Start0 4.6.6?( nit parameter change

    ( uided orkflo for manual changes

    ( All are +ased on S%& Tuning Sets

    -ata/ase Upgrade 10" to 11"

  • 7/25/2019 11G Upgrade Best Practices

    65/108

    -ata/ase Upgrade 10"to 11"

    Scenario #:

    ant to upgrade from 36.x to 33.x data+ase release to+enefit from 33g functionalit*. )o can +estaccomplish the upgradeO

    $oal:

    Assess impact of upgrade on S%& orkloadperformance so that there are no surprises after

    upgrade. 9nce upgraded to 33gne features can +eena+led one at a time.

    -ata/ase Upgrade 10g to 11g

  • 7/25/2019 11G Upgrade Best Practices

    66/108

    -ata/ase Upgrade 10g to 11g

    ( Step 30( Capture orkload into STS0

    $referredmethod >H 36.7.6.3?

    ( Create STS from Top S%& in AWR @ AWR #aseline

    ( or i data+ase ena+le S%& tracing0

    a1ter s0stem set e2ents '3;;

  • 7/25/2019 11G Upgrade Best Practices

    67/108

    -ata/ase Upgrade 10"to 11"

    ( Step 3 in EM0

    -ata/ase Upgrade 10g to 11g

  • 7/25/2019 11G Upgrade Best Practices

    68/108

    -ata/ase Upgrade 10g to 11g

    ( Step 70

    5pgrade a cop* of 36gproduction to 33gtest data+ase( Step D0

    Run S$A in 33gtest data+ase

    ( Select 9ptimi:er 5pgrade orkflo link

    -ata/ase Upgrade 10g to 11g

  • 7/25/2019 11G Upgrade Best Practices

    69/108

    -ata/ase Upgrade 10g to 11g

    ( Step D in EM0 Run S$A task

    -ata/ase Upgrade 10g to 11g

  • 7/25/2019 11G Upgrade Best Practices

    70/108

    -ata/ase Upgrade 10g to 11g

    "

    1

    !

    2

    ( S$A results

    -ata/ase Upgrade 10g to 11g

  • 7/25/2019 11G Upgrade Best Practices

    71/108

    -ata/ase Upgrade 10g to 11g

    1

    2

    ( After using S%& $lan Management ith a +aseline

    Para)eter :hanges

  • 7/25/2019 11G Upgrade Best Practices

    72/108

    Para)eter :hanges

    2

    !1

    ( S$A Recommendation0 S%& Tuning Advisor

    Para)eter :hanges

  • 7/25/2019 11G Upgrade Best Practices

    73/108

    Para)eter :hanges

    ( S%& Tuning Advisor offers S%& $rofiles

    Para)eter :hanges

  • 7/25/2019 11G Upgrade Best Practices

    74/108

    Para)eter :hanges

    1

    ( S$A run after S%& $rofiles had +een applied

    *@' Per(or)ance Ana+yNer

  • 7/25/2019 11G Upgrade Best Practices

    75/108

    *@' Per(or)ance Ana+yNer

    ( S$A0 S%& statement details example

    *PA (or a &i wor8+oad against 11"

  • 7/25/2019 11G Upgrade Best Practices

    76/108

    *PA (or a &iwor8+oad against 11"

    ( 5pgrade scenario from i directl* to 33g( See /ote0P274.3 for theWhite $aperand /ote01PP44.3 for a S$A example

    3apping 5a/+e

    ep 9 i)p

    %d Owner ame

    12! *H1 *A'1

    12" *H2 :U*5

    ORCL_ora_133674.trcORCL_ora_133674.trcORCL_ora_133674.trc

    ORCL_ora_133674.trc

    ...

    .ent 100"$

    copy

    *@' Per(or)ance Ana+yNer

    *5*

    Agenda

  • 7/25/2019 11G Upgrade Best Practices

    77/108

    Recap

    Agenda

    Challenges " #est $ractices

    S%& $lan Management

    AWR " STATS$AC'

    Real Application Testing

    %"A

    S%& $erformance Anal*:erata+ase Repla*

    :ha++enge

  • 7/25/2019 11G Upgrade Best Practices

    78/108

    :ha++enge

    )o ill m* s*stemperform after an

    upgradeO

    Will all

    applicationcalls ork in33gO

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    79/108

    ( Capture and repla*an actual production data+ase orkload

    ( dentif*, anal*:e and fix potential insta+ilities +efore making changes toproduction

    ( Capture Workload in $roduction( Capture full production orkload ith real load, timing " concurrenc*

    characteristics

    ( Move the captured orkload to test s*stem( Repla* Workload in Test

    ( Make the desired changes in test s*stem

    ( Repla* orkload ith full production characteristics

    ( )onor commit ordering

    ( Anal*:e " Report( Errors( ata divergence

    ( $erformance divergence

    -ata/ase ep+ay

    *tep 1 Wor8+oad :apture

  • 7/25/2019 11G Upgrade Best Practices

    80/108

    *tep 1 Wor8+oad :apture

    i+e 1

    i+e 2

    i+e n

    C

    Production *yste)

    i+e *yste)

    :+ient:+ient

    C:+ient

    3idd+e5ier

    *torage

    ( All external client re

  • 7/25/2019 11G Upgrade Best Practices

    81/108

    *tep 2 Process Wor8+oad i+es

    i+e 1

    i+e 2

    i+e n

    C

    3etadata

    ep+ay i+es

    5est *yste)( Setup test s*stem

    ( Application data should +e

    same as production s*stem as

    of capture start time

    ( 5se RMA/, Snapshot Stand+*,

    imp@exp, ata $ump, etc. to

    create test s*stem

    ( Make change0 upgrade d+and@or 9S, change storage,

    migrate platforms, etc.

    ( $re-processing transforms

    captured data into repla*a+le

    format

    ( 9nce pre-processed, orkload

    can +e repla*ed man* times

    i+e 1

    i+e 2

    i+e n

    C

    :apture i+es

    *tep ! ep+ay Wor8+oad

  • 7/25/2019 11G Upgrade Best Practices

    82/108

    *tep ! ep+ay Wor8+oad

    ( Repla*s orkload preservingtiming, concurrenc* and

    dependencies of the captureds*stem

    ( Repla* Client is a specialprogram that consumesprocessed orkload and

    sends re

  • 7/25/2019 11G Upgrade Best Practices

    83/108

    ( Step-#*-Step

    -ata/ase ep+ay

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    84/108

    -ata/ase ep+ay

    3.Create a cop* of the data+ase to repla* the orkload

    ( RMA/ uplicate( Snapshot Stand+*

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    85/108

    ata/ase ep ay

    7.Workflo in EM0 Workload Capture

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    86/108

    p y

    7.$reparation steps in EM0 Workload Capture

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    87/108

    p y

    D.Workload ilter0

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    88/108

    p y

    1.$repare an empt* director* for capture files

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    89/108

    p y

    ( Uo+ scheduling - specif* time frame for capture0

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    90/108

    p y

    ( ata+ase Control - capture revie and su+mit0

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    91/108

    p y

    ( ata+ase Control - capture summar*0

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    92/108

    p y

    ( ata+ase Control - capture statistics0

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    93/108

    p y

    ( $reprocessing captured orkload0

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    94/108

    p y

    ( Repla*ing the captured orkload0

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    95/108

    ( Choose director* containing preprocessed capture files

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    96/108

    ( Workload Repla* - choose repla* name0

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    97/108

    ( Workload Repla*0 Wait for repla* clients to connect

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    98/108

    ( Workload Repla* Clients0 Cali+rate

    9> Frc modeca1ibrate rep1a0dirGtmpGtesting( Workload Repla* Clients0 Start

    9> Frc s0stemGorac1e moderep1a0

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    99/108

    ( Workload Repla*0 WRC client>s? connected

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    100/108

    ( Monitor Workload Repla* during repla*

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    101/108

    ( Monitor divergence stats0

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    102/108

    ( Workload Repla* result0

    -ata/ase ep+ay

  • 7/25/2019 11G Upgrade Best Practices

    103/108

    ( Workload repla* reporting0

    I)portant Upgrade otes at a g+ance

  • 7/25/2019 11G Upgrade Best Practices

    104/108

    Upgrade to Oracle 10gR2Note: 466181.1Upgrade Companion 10gR2

    Note: 316889.1 Complete Checklist or !an"al Upgrade to 10gR2Note: ####$9.1 %no&n 'ss"es 10.2.0.4

    Upgrade to Oracle 11gNote: 60180$.1 Upgrade Companion 11gNote: 42982#.1Complete Checklist or !an"al Upgrades to 11g

    Note: 4#4#06.1 %no&n 'ss"es and (lerts 11.1.0.6Performance TestingNote: #609$$.1 Real (pplication )esting a*aila+le or earlier releasesNote: #62899.1 Using ,- /erormance (naler or "pgd. 9.2 to 10.2Note: 39493$.1 ,tatspack "ide

    Note: 29#819.1 /otential -"er )"ning Related 'ss"esNote: 34#048.1 RU/ 5 does not sort i o" dont "se R7R 5Upgrading to racle 7ata+ase 10g:hat to epect rom the ptimier

    Upgrade We/page on =5

  • 7/25/2019 11G Upgrade Best Practices

    105/108

    http?GGFFF.orac1e.comGtechno1og0Gprod7ctsGdatabaseGorac1e33gG7pgradeGinde8.htm1

    'atest Patchset 1110%0

  • 7/25/2019 11G Upgrade Best Practices

    106/108

    Patch Number 689081

    !"ailable for all ma#or platforms

    Agenda

  • 7/25/2019 11G Upgrade Best Practices

    107/108

    Recap

    Challenges " #est $ractices

    S%& $lan Management

    AWR " STATS$AC'

    Real Application Testing

    %"A

  • 7/25/2019 11G Upgrade Best Practices

    108/108