Database_Upgrade_11203_11204_scribd.doc

Embed Size (px)

Citation preview

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    1/35

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    2/35

    Table of Contents !

    1)Installation of Oracle 11gR2 ( 11.2.0.4 ) as a new Oracle Home.

    2) re!"#gra$e %te#s.

    &)"#gra$e %te#s.

    4) ost!"#gra$e %te#s.

    Apps Associates Internal Purpose Not For Circulation "age 2

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    3/35

    I)Installation of Oracle 11gR2 (11.2.0.4) as a new Oracle Home:

    Installation rocess'

    1)Unzip the software and execute '. run!nstaller'

    !t will launch the Data"ase 11# $elease % !nstaller

    Apps Associates Internal Purpose Not For Circulation "age 3

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    4/35

    %)&elect ' reate and confi#ure a data"ase' as !nstallation (ption.

    lic on *+ext,

    -)&elect '!nstall data"ase software onl ' as /rid !nstallation (ptions

    Apps Associates Internal Purpose Not For Circulation "age 4

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    5/35

    lic on *+ext,

    0)&elect '&in#le !nstance data"ase !nstallation' as !nstall T pe

    lic *+ext,

    )&elect '2n#lish' as 3roduct 4an#ua#es

    Apps Associates Internal Purpose Not For Circulation "age #

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    6/35

    Clic on *e+t,

    5)&elect '2nterprise 2dition' as Data"ase 2dition

    lic on *+ext,

    6)&pecif the path for (racle 7ase director for the !nstallation (wner and (racle Data"ase8ome Director .

    Apps Associates Internal Purpose Not For Circulation "age $

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    7/35

    Clic on *e+t,

    9)&elect 'd"a' :default option) as Data"ase Administrator:(&D7A) /roup

    Apps Associates Internal Purpose Not For Circulation "age %

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    8/35

    lic on *+ext,

    ;)!nstaller will chec s for the prere uisites= !n this we #et some warnin#s. e can i#norethose warnin#s " selectin# the '!#nore All' chec "ox.

    &elect *!#nore All' chec "ox

    Apps Associates Internal Purpose Not For Circulation "age &

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    9/35

    !nstaller will prompt the warnin# messa#e=

    lic on *?es, and continue the !nstallation

    Apps Associates Internal Purpose Not For Circulation "age '

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    10/35

    1@) The !nstaller will summaries the /lo"al &ettin#s information

    lic on *!nstall,

    11) +ow the !nstallation will start

    Apps Associates Internal Purpose Not For Circulation "age 10

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    11/35

    lic on *+ext,

    1%)After !nstallation is completed= !nstaller will as to run the *root.sh, script as 'root' user.

    Apps Associates Internal Purpose Not For Circulation "age 11

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    12/35

    $un the script and lic on *exit,

    II) re!"#gra$e %te#s' Apps Associates Internal Purpose Not For Circulation "age 12

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    13/35

    1) -ll t e ste#s nee$ to /e #erforme$ after a ing set t e en ironment of t e#re ious ersion of t e Oracle ata/ase. *ote t at t e $ata/ase must /erunning in normal mo$e in t e ol$ release.

    %) 4o# into the s stem as the owner of the (racle Data"ase 11# $elease % :11.%.@.%) (racle8ome director and op the 3re Up#rade !nformation Tool :utlu11%i.s l) from the (racleData"ase 11# $elease % :11.%[email protected]) ($A 42B8(C2 rd"ms admin director to a directoroutside of the (racle 8ome= such as the temporar director on our s stem.

    $ORACLE_HOME/rdbms/admin/utlu112i.sql

    -) han#e to the director where utlu11%i.s l had "een copied in the pre ious step.

    0)&tart &E4F3lus and connect to the data"ase instance as a user with &?&D7A pri ile#es.Then run and spool the utlu11%i.s l file. 3lease note that the data"ase should "e startedusin# the source (racle 8ome:ie. 11.%.@.%)

    The output of the utlu11%i.s l is

    Apps Associates Internal Purpose Not For Circulation "age 13

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    14/35

    (racle Data"ase 11.% 3re Up#rade !nformation Tool @- %- %@10 @9G05G -

    &cript HersionG 11.%[email protected].@ 7uildG @@1

    .

    FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    Data"aseG

    FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    > nameG D2H

    > ersionG 11.%.@.%.@

    > compati"leG 11.%.@

    > "loc sizeG 91;%

    > platformG 4inux x95 50 "it

    > timezone fileG H10

    .

    FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    Ta"lespacesG Ima e adJustments in the current en ironmentK

    FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    > &?&T2C ta"lespace is ade uate for the up#rade.

    .... minimum re uired sizeG 1%1;; C7

    > T2C3 ta"lespace is ade uate for the up#rade.

    .... minimum re uired sizeG 5@ C7

    > TLD ta"lespace is ade uate for the up#rade.

    .... minimum re uired sizeG %9 C7

    > A33&BT&BEU2U2& ta"lespace is ade uate for the up#rade.

    .... minimum re uired sizeG 0@9; C7

    > A33&BT&BTLBDATA ta"lespace is ade uate for the up#rade.

    .... minimum re uired sizeG 5; 1% C7

    > &?&AUL ta"lespace is ade uate for the up#rade.

    .... minimum re uired sizeG -95;0 C7

    > A33&BU+D(T&1 ta"lespace is ade uate for the up#rade.

    .... minimum re uired sizeG 0@@ C7

    .

    FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    Apps Associates Internal Purpose Not For Circulation "age 14

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    15/35

    Mlash"ac G (MM

    FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    Update 3arametersG IUpdate (racle Data"ase 11.% init.ora or spfileK

    +oteG 3re up#rade tool was run on a lower ersion 50 "it data"ase.

    FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    > !f Tar#et (racle is -% 7it= refer here for Update 3arametersG

    +o update parameter chan#es are re uired. .

    --> If ar!"t Ora#l" is %-&it' r"f"r ("r" f)r *+dat" ,aram"t"rs

    -- ) u+dat" +aram"t"r #(an!"s ar" r"quir"d.

    .

    R"nam"d ,aram"t"rs 0*+dat" Ora#l" atabas" 11.2 init.)ra )r s+fil"

    -- ) r"nam"d +aram"t"rs f)und. ) #(an!"s ar" r"quir"d.

    .

    Obs)l"t"/ "+r"#at"d ,aram"t"rs 0*+dat" Ora#l" atabas" 11.2 init.)ra )r s+fil"

    -- ) )bs)l"t" +aram"t"rs f)und. ) #(an!"s ar" r"quir"d

    .

    C)m+)n"nts 0 (" f)ll)3in! databas" #)m+)n"nts 3ill b" u+!rad"d )r install"d

    --> Ora#l" Catal)! 4i"3s 0u+!rad" 4ALI

    --> Ora#l" ,a#5a!"s and 6+"s 0u+!rad" 4ALI

    --> 78"r9"r 7A4A 4irtual Ma#(in" 0u+!rad" 4ALI

    --> Ora#l" : ; f)r 7a9a 0u+!rad" 4ALI

    Apps Associates Internal Purpose Not For Circulation "age 1#

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    16/35

    --> R"al A++li#ati)n Clust"rs 0u+!rad" I 4ALI

    --> OLA, Anal6ti# OLA, Catal)! 0u+!rad" 4ALI

    --> EM R"+)sit)r6 0u+!rad" 4ALI

    --> Ora#l" "=t 0u+!rad" 4ALI

    --> Ora#l" :ML atabas" 0u+!rad" 4ALI

    --> Ora#l" 7a9a ,a#5a!"s 0u+!rad" 4ALI

    --> Ora#l" int"rM"dia 0u+!rad" 4ALI

    --> 8+atial 0u+!rad" 4ALI

    --> ata Minin! 0u+!rad" I 4ALI

    --> Ora#l" OLA, A,I 0u+!rad" 4ALI

    .

    Mis#"llan")us

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    17/35

    .... *8ER HR_RE,OR 8_*8ER (as 1 I 4ALI )b?"#ts.

    @)ur r"#6#l" bin #)ntains )b?"#tDs .

    .... It is REF*IRE t(at t(" r"#6#l" bin is "m+t6 +ri)r t) u+!radin!

    .... 6)ur databas". (" #)mmand

    ,*R E &A_REC@CLE&I

    .... must b" "="#ut"d imm"diat"l6 +ri)r t) "="#utin! 6)ur u+!rad".

    atabas" #)ntains s#("mas 3it( )b?"#ts d"+"nd"nt )n &M8_L A, +a#5a!".

    .... R"f"r t) t(" 11! *+!rad" uid" f)r instru#ti)ns t) #)nfi!ur" "t3)r5 ACLs.

    .... *8ER A,,8 (as d"+"nd"nt )b?"#ts.

    7O&_F*E*E_,ROCE88 9alu" must b" u+dat"d

    .... @)ur #urr"nt s"ttin! )f G2G is t)) l)3.

    .... 8tartin! 3it( Ora#l" atabas" 11! R"l"as" 2 D11.2 ' s"ttin!

    .... 7O&_F*E*E_,ROCE88E8 t) #aus"s b)t( &M8_8CHE *LER and

    .... &M8_7O& ?)bs t) n)t run. ,r"9i)usl6' s"ttin! 7O&_F*E*E_,ROCE88E8

    .... t) #aus"d &M8_7O& ?)bs t) n)t run' but &M8_8CHE *LER ?)bs 3"r"

    .... unaff"#t"d and 3)uld still run. (is +aram"t"r must b" u+dat"d t)

    .... a 9alu" !r"at"r t(an % Dd"fault 9alu" is 1 +ri)r t) u+!rad".

    .... )t d)in! s) 3ill aff"#t t(" runnin! )f utlr+.sql aft"r t(" u+!rad"

    .

    R"#)mm"ndati)ns

    Ora#l" r"#)mm"nds !at("rin! di#ti)nar6 statisti#s +ri)r t)

    u+!radin! t(" databas".

    ) !at("r di#ti)nar6 statisti#s "="#ut" t(" f)ll)3in! #)mmand

    3(il" #)nn"#t"d as 8@8 &A

    E:EC* E dbms_stats.!at("r_di#ti)nar6_stats

    Apps Associates Internal Purpose Not For Circulation "age 1%

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    18/35

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    19/35

    )b?"#ts b" r"m)9"d fr)m t(" databas".

    R"f"r t) t(" Ora#l" ata Minin! Administrati)n uid" f)r t("

    instru#ti)ns )n ()3 t) +"rf)rm t(is tas5.

    8FL> s+))l )ff

    NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN

    ) hec ed the spool file and made necessar chan#es to the Data"ase.

    a) hec ed for the inte#rit of the source data"ase prior to startin# the up#rade " downloadin#and runnin# d"up#dia#.s l script.

    O s lplus as s sd"as l> alter session set nlsBlan#ua#eN'American'Ps l> Qd"up#dia#.s ls l> exit

    /) The d"up#dia#.s l script reported some in alid o"Jects= so= ranO($A 42B8(C2 rd"ms admin utlrp.s l :multiple times) to alidate the in alid o"Jects in thedata"ase= until there is no chan#e in the num"er of in alid o"Jects.

    Apps Associates Internal Purpose Not For Circulation "age 1'

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    20/35

    I$enti e$ t e In ali$ o/3ects

    5) hec for T!C2&TAC3 !T8 T!C2R(+2 Datat pe

    8FL> s"l"#t P_4ER8IO fr)m r"!istr6$databas"

    Apps Associates Internal Purpose Not For Circulation "age 20

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    21/35

    6) hec that the +ational haracterset :+4&B+ 8A$B 8A$A T2$&2T) is UTM9 or A415UTM15.

    select alue from +4&BDATA7A&2B3A$AC2T2$& where parameter N '+4&B+ 8A$B 8A$A T2$&2T'P

    !f this is UTM9 or A415UTM15 then no action is needed.

    Apps Associates Internal Purpose Not For Circulation "age 21

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    22/35

    9) hen up#radin# to (racle Data"ase 11# $elease % :11.%)= optimizer statistics are collected fordictionar ta"les that lac statistics. This statistics collection can "e time consumin# for data"aseswith a lar#e num"er of dictionar ta"les= "ut statistics #atherin# onl occurs for those ta"les that lacstatistics or are si#nificantl chan#ed durin# the up#rade.

    To decrease the amount of downtime incurred when collectin# statistics= we can collect statistics prior to performin# the actual data"ase up#rade.

    (racle recommends us to use the D7C&B&TAT&./AT82$BD! T!(+A$?B&TAT& procedure to#ather these statistics

    5) (ptimizer &tatistics G The optimizer statistics are determined " runnin# a script *anal ze.s l,=which is downloaded from the oracle metalin .

    Apps Associates Internal Purpose Not For Circulation "age 22

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    23/35

    This script :anal ze.s l) should not return an errors

    & l> spool anal ze.s l

    8"t 9"rif6 )ff

    8"t s+a#" 8"t lin" 128"t ("adin! )ff8"t f""dba#5 )ff8"t +a!"s 18+))l anal6Q".sql

    8ELEC Anal6Q" #lust"r G #lust"r_nam" G 9alidat" stru#tur" #as#ad"NROM dba_#lust"rs

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    24/35

    This should return no rows.

    1%)$esol e outstandin# distri"uted transactions prior to the up#rade.

    1&) To chec if a stand" data"ase exists= issue the followin# uer

    8ELEC 8*&8 RD9alu"'I 8 RD9alu"' 'I 8 RD*,,ERD9alu" ' 8ER4ICE 1 NROM 9$+aram"t"r

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    25/35

    10)2nsure the users &?& and &?&T2C ha e '&?&T2C' as their default ta"lespace.e must ha e sufficient space in the ta"lespace or "e set to extents unlimited .

    8FL> 8ELEC us"rnam"' d"fault_tabl"s+a#" NROM dba_us"rs

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    26/35

    1 )2nsure that if the audO ta"le exists that it is in the &?& schema and in the &?&T2C ta"lespace.

    8FL> 8ELEC )3n"r'tabl"s+a#"_nam" NROM dba_tabl"s

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    27/35

    8FL> 8ELEC nam" NROM 9$#)ntr)lfil"8FL> 8ELEC fil"_nam" NROM dba_data_fil"s8FL> 8ELEC !r)u+S' m"mb"r NROM 9$l)!fil" .

    19) &top the listener for the data"ase.

    Olsnrctl stop (7!D2H

    1;)&hutdown the data"ase

    shut immediate

    %@)7ac up the Data"ase

    e ha e ta en the cold "ac up of the (7!D2H Data"ase.

    e ha e "rou#ht down the ser ices of (7!D2H and ta en the "ac up of all the files re uired.

    %1)Ca e sure the followin# en ironment aria"les point to the new (racle 8ome :11.%[email protected])

    ($A 42B7A&2 ($A 42B8(C2 3AT8

    22) opied the init file and tnsnames.ora from the "ac up locations to the respecti elocations in the new (racle 8ome.:11.%[email protected])

    2&) Update the orata" entr to set the new ($A 42B8(C2 pointin# to ($ 4 and disa"leautomatic startup.

    Apps Associates Internal Purpose Not For Circulation "age 2%

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    28/35

    III)Upgrade Steps:

    1)At the operatin# s stem prompt= chan#e to the O($A 42B8(C2 rd"ms admin director of11.%[email protected] (racle 8ome

    $ #d $ORACLE_HOME/rdbms/admin$ sql+lus G/ as s6sdbaG

    Apps Associates Internal Purpose Not For Circulation "age 2&

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    29/35

    %)&tart the up#rade " issuin# 'startup U3/$AD2'

    -)&et the s stem to spool results to a lo# file for later erification after the up#rade is completed andstart the up#rade script.

    8FL> s"t "#() )n8FL> 8,OOL u+!rad".l)!8FL> T#atu+!rd.sql8FL> s+))l )ff

    Apps Associates Internal Purpose Not For Circulation "age 2'

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    30/35

    0)After the a"o e script is completed= the data"ase will "e in the shut down state.

    &tart the data"ase in the normal mode and run 'utlu111s.s l' for chec in# the alidit of the productsinstalled.

    Halidit of the products installedG

    Apps Associates Internal Purpose Not For Circulation "age 30

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    31/35

    )$un catuppst.s l= located in the O($A 42B8(C2 rd"ms admin director = to perform up#radeactions that do not re uire the data"ase to "e in U3/$AD2 mode.

    5)$un utlrp.s l to recompile an remainin# stored 34 &E4 and Sa a code in another session.

    Apps Associates Internal Purpose Not For Circulation "age 31

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    32/35

    6) hec for the inte#rit of the up#raded data"ase " runnin# d"up#dia#.s l script Apps Associates Internal Purpose Not For Circulation "age 32

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    33/35

    9) Codif the listener.ora file. Mor the up#raded instance:s) modif the ($A 42B8(C2 parameter to point to the new

    ($A 42B8(C2.

    %tart t e listener

    ()*"ost Upgrade +teps

    1) hec the current ersion of the (racle time zone definitions in the up#raded data"ase8FL> #)nn / as s6sdbaC)nn"#t"d.8FL>8ELEC 9"rsi)n NROM 9$tim"Q)n"_fil"

    %)Up#rade &tatistics Ta"les reated " the D7C&B&TAT& 3ac a#e.!f we created statistics ta"les usin# the D7C&B&TAT&. $2AT2B&TATBTA742 procedure= thenup#rade these ta"les " executin# the followin# procedure.

    Apps Associates Internal Purpose Not For Circulation "age 33

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    34/35

    -) reate a ser er parameter file with an initialization parameter file.

    8FL> #r"at" s+fil" fr)m +fil"

    4)C ange t e 6o#timi7er8$9namic8sam#ling6 #arameter to 6116 ( /9 $efault it is 2)

    Apps Associates Internal Purpose Not For Circulation "age 34

  • 8/10/2019 Database_Upgrade_11203_11204_scribd.doc

    35/35