You are on page 1of 29

Applies to:

Oracle Server - Enterprise Edition - Version: 8.1.7.4 to 10.2.0 Information in this doc ment applies to an! platform.

Purpose
"his doc ment is created for se as a # ideline and chec$list %hen man all! p#radin# Oracle 8i& Oracle 'i or Oracle 10#(1 to Oracle 10#(2. "his doc ment is divided into three ma)or sections. -- *reparin# to +p#rade -- +p#radin# to the ,e% Oracle -ata.ase 10# (elease 2 -- /fter +p#radin# a -ata.ase *lease read the %hole article .efore startin# to perform an p#rade

Scope and Application


-ata.ase administrators

Complete checklist for manual upgrades to 10gR2


Prerequisites

Install Oracle 10# (elease 2 in a ne% Oracle 0ome. Install 1/ccelerator 2,3O4*5 into the home from the 3ompanion media. Install the latest availa.le patchset from 4etalin$. Install the latest availa.le 3ritical *atch +pdate. ,ote 2'0768.1 Oracle 3ritical *atch +pdate *ro#ram 7eneral 8/9 If !o are p#radin# to 10.2.0.6& revie% the follo%in# alerts .efore performin# the p#rade and appl! an! re: ired patches: ,ote 412271.1 ;O(/-<00 =22<6>? and O(/-<00 =@O@EIIA1? (eported Bhile +p#radin# or *atchin# -ata.ases to 10.2.0.6; ,ote 40<472.1 ;4andator! *atch >7>26'' for 10.2.0.6 on Solaris <4-.it and 8iles!stems 4ana#ed C! Veritas or Solstice -is$ S ite soft%are;

If !o are p#radin# to any 10.2.0.D version& revie% the follo%in# alert .efore performin# the p#rade and appl! an! re: ired patch: ,ote 47147'.1 ;IO" 3orr ptions /fter +p#rade from 3O4*/"ICEE FG '.2 to 3O4*/"ICEE HG 10.1;

Either ta$e a cold or hot .ac$ p for !o r data.ase.

4a$e s re to ta$e a .ac$ p of Oracle 0ome and 3entral Inventor!. 3entral inventor! can .e located .! the contents of oraInst.loc files. ;oraInst.loc; is availa.le in the follo%in# locations on vario s platforms: IvarIoptIoracleIoraInst.loc -- Solaris IetcIoraInst.loc -- other operatin# s!stems 0@EJKEO3/EK4/30I,ELSO8"B/(ELO(/3EELinstKloc -- On %indo%s *latform.

Verif! $ernel parameters are set accordin# to the 10#(2 Installation 7 ide. Verif! that all OIS pac$a#es and patches are installed as per the Installation 7 ide. Compatibility atri! 4inim m Version of the data.ase that can .e directl! p#raded to Oracle 10# (elease 2 8.1.7.4 -H 10.2.A.A.A '.0.1.4 or '.0.1.> -H 10.2.A.A.A '.2.0.4 or hi#her -H 10.2.A.A.A 10.1.0.2 or hi#her -H 10.2.A.A.A "he follo%in# data.ase version %ill re: ire an indirect p#rade path. 7.6.6 2or lo%er5 -H 7.6.4 -H 8.1.7 -H 8.1.7.4 -H 10.2.A.A.A 7.6.4 -H 8.1.7 -H 8.1.7.4 -H 10.2.A.A.A 8.0.n -H 8.1.7 -H 8.1.7.4 -H 10.2.A.A.A 8.1.n -H 8.1.7 -H 8.1.7.4 -H 10.2.A.A.A

Steps for "pgrading the #atabase to 10g Release 2 Preparing to "pgrade


In this section all the steps need to .e performed to the previo s version of Oracle. *lease note that the data.ase m st .e r nnin# in normal mode in the old release. Step 1: Eo# in to the s!stem as the o%ner of the ne% 10#(2 O(/3EEK0O4E and cop! the follo%in# files from the 10#(2 O(/3EEK0O4EIrd.msIadmin director! to a director! o tside of the Oracle home& s ch as the Itmp director! on !o r s!stem: O(/3EEK0O4EIrd.msIadminI tl 102i.s:l O(/3EEK0O4EIrd.msIadminI tltM v2.s:l 4a$e a note of the ne% location of these files.

Step 2: 3han#e to the temporar! director! that !o copied files to in Step 1. Start S9EN*l s and connect to the data.ase instance as a ser %ith SJS-C/ privile#es. "hen r n and spool the tl 102i.s:l file.
sqlplus '/as sysdba' SQL> spool Database_Info.log SQL> @utlu102i.sql SQL> spool off

"hen& chec$ the spool file and eDamine the o tp t of the p#rade information tool. "he sections %hich follo%& descri.e the o tp t of the +p#rade Information "ool 2 tl 102i.s:l5. ,O"E: If !o are p#radin# from 8.1.7.4& the tl 102i.s:l script %ill fail %ith an O(/-1406 error. *lease follo% the %or$aro nd in ,ote ><40>27.8 to ena.le tl 102i.s:l to r n. #atabase: "his section displa!s #lo.al data.ase information a.o t the c rrent data.ase s ch as the data.ase name& release n m.er& and compati.ilit! level. / %arnin# is displa!ed if the 3O4*/"ICEE initialiMation parameter needs to .e ad) sted .efore the data.ase is p#raded. $ogfiles: "his section displa!s a list of redo lo# files in the c rrent data.ase %hose siMe is less than 4 4C. 8or each lo# file& the file name& #ro p n m.er& and recommended siMe is displa!ed. ,e% files of at least 4 4C 2prefera.l! 10 4C5 need to .e created in the c rrent data.ase. /n! redo lo# files less than 4 4C m st .e dropped .efore the data.ase is p#raded. %ablespaces: "his section displa!s a list of ta.lespaces in the c rrent data.ase. 8or each ta.lespace& the ta.lespace name and minim m re: ired siMe is displa!ed. In addition& a messa#e is displa!ed if the ta.lespace is ade: ate for the p#rade. If the ta.lespace does not have eno #h free space& then space m st .e added to the ta.lespace in the c rrent data.ase. "a.lespace ad) stments need to .e made .efore the data.ase is p#raded. "pdate Parameters: "his section displa!s a list of initialiMation parameters in the parameter file of the

c rrent data.ase that m st .e ad) sted .efore the data.ase is p#raded. "he ad) stments need to .e made to the parameter file after it is copied to the ne% Oracle -ata.ase 10# release. #eprecated Parameters: "his section displa!s a list of initialiMation parameters in the parameter file of the c rrent data.ase that are deprecated in the ne% Oracle -ata.ase 10# release. &bsolete Parameters: "his section displa!s a list of initialiMation parameters in the parameter file of the c rrent data.ase that are o.solete in the ne% Oracle -ata.ase 10# release. O.solete initialiMation parameters need to .e removed from the parameter file .efore the data.ase is p#raded. Components: "his section displa!s a list of data.ase components in the ne% Oracle -ata.ase 10# release that %ill .e p#raded or installed %hen the c rrent data.ase is p#raded. iscellaneous 'arnings: "his section provides %arnin#s a.o t specific sit ations that ma! re: ire attention .efore andIor after the p#rade. S(SA") %ablespace: "his section displa!s the minim m re: ired siMe for the SJS/+A ta.lespace& %hich is re: ired in Oracle -ata.ase 10#. "he SJS/+A ta.lespace m st .e created after the ne% Oracle -ata.ase 10# release is started and CE8O(E the p#rade scripts are invo$ed. Step *: 3hec$ for the deprecated 3O,,E3" (ole /fter p#radin# to 10#(2& the 3O,,E3" role %ill onl! have the 3(E/"E SESSIO, privile#eO the other privile#es #ranted to the 3O,,E3" role in earlier releases %ill .e revo$ed d rin# the p#rade. "o identif! %hich sers and roles in !o r data.ase are #ranted the 3O,,E3" role& se the follo%in# : er!:
S L !" g#antee $%&' dba_#ole_p#i(s )* % g#anted_#ole + '!&,, !"' and g#antee ,&" I, 'S.S'/ '&0"L,'/ 'S.S" ''/ '!"1S.S'/ 'D2S,'3'/

'L&4S"D2._5D'I,IS"%5"&%'/ '&%DS.S'/ '&%D3L04I,S'/ '& '_'&,I"&%'/ ')6S.S'/ ')63%&1.'/ ')6_" S"'/ ')60S %'/ ''DS.S'/ 'L25!S.S'/ 'D'S.S'/ ')'S.S'/ '&L53D25'/ '&L53S7%'/ '&L53_0S %'/ '&L53S.S'/ ' 1$S.S'/ 'S.S'5,'/ ''DD5"5'/ 'SI_I,$&%'",_S!* '5'/ '1D2'/ '&D''89

If sers or roles re: ire privile#es other than 3(E/"E SESSIO,& then #rant the specific re: ired privile#es prior to p#radin#. "he p#rade scripts ad) st the privile#es for the Oracle-s pplied sers. In Oracle '.2.D and 10.1.D 3O,,E3" role incl des the follo%in# privile#es: SEEE3" 7(/,"EE&*(IVIEE7E 8(O4 -C/KSJSK*(IVS B0E(E 7(/,"EEGP3O,,E3"P 7(/,"EE *(IVIEE7E ------------------------------ --------------------------3O,,E3" 3(E/"E VIEB 3O,,E3" 3(E/"E "/CEE 3O,,E3" /E"E( SESSIO, 3O,,E3" 3(E/"E 3E+S"E( 3O,,E3" 3(E/"E SESSIO, 3O,,E3" 3(E/"E SJ,O,J4 3O,,E3" 3(E/"E SE9+E,3E 3O,,E3" 3(E/"E -/"/C/SE EI,@ In Oracle 10.2 the 3O,,E3" role onl! incl des 3(E/"E SESSIO, privile#e. Step +: 3reate the script for d.lin$ incase of do%n#rade of the data.ase. - rin# the p#rade to 10#(2& an! pass%ords in data.ase lin$s %ill .e encr!pted. "o do%n#rade .ac$ to the ori#inal release& all of the data.ase lin$s %ith encr!pted pass%ords m st .e dropped prior to the do%n#rade. 3onse: entl!& the data.ase lin$s %ill not eDist in the do%n#raded data.ase. If !o anticipate a re: irement to .e a.le to do%n#rade .ac$ to !o r ori#inal release& then save the information a.o t affected data.ase lin$s from the SJS.EI,@Q ta.le& so that !o can recreate the data.ase lin$s after the do%n#rade. 8ollo%in# script can .e sed to constr ct the d.lin$.
S L !" ':#eate ';;D !&D -0.,5' /'302LI!'/'publi: '8;;'database lin< ';;!*%-108 ;;D !&D -0.,5' /'302LI!'/,ull/ 0.,5' ;;'.'8;; L.,5' ;;:=#-108 ;;':onne:t to ' ;; L.0S %ID ;; ' identified by ''' ;;L.35SS)&%D;;''' using ''' ;; L.=ost ;; ''''

;;:=#-108;;'9' " 1" $%&' sys.lin<> L/ sys.use#> 0 )* % L.&), %? + 0.0S %? 9

Step ,: 3hec$ for the "I4ES"/4* BI"0 "I4ERO,E -atat!pe. *lease this step is onl! re: ired for the 10#(1 "he ma! affect eDistin# data of "I4ES"/4* BI"0 "I4E RO,E datat!pe. 8or eDample& if sers enter "I4ES"/4* P2006-02-17 0':00:00 /mericaISaoK*a loP& %e convert the data to +"3 .ased on the transition r les in the time Mone file and store them on the dis$. So P2006-02-17 11:00:00P alon# %ith the time Mone id for P/mericaISaoK*a loP is stored .eca se the offset for this partic lar time is P-02:00P. ,o% the transition r les are modified and the offset for this partic lar time is chan#ed to P-06:00P. %hen sers retrieve the data& the! %ill #et P2006-02-17 08:00:00 /mericaISaoK*a loP. "here is one ho r difference compared to the ori#inal val e. 3han#e to the temporar! director! that !o copied files to in Step 1. Start S9EN*l s and connect to the data.ase instance as a ser %ith SJS-C/ privile#es. "hen r n and spool the tltM v2.s:l file.
> sqlplus '/as sysdba' SQL> spool "i@eAone_Info.log SQL> @utltBu(2.sql SQL> spool off

If the tltM v2.s:l script identifies col mns %ith time Mone data affected .! a data.ase p#rade& then se the sol tion to solve this pro.lem. create ta.les %ith the time Mone information in character format 2for eDample& "OK30/(2col mn& PJJJJ-44--- 0024.4I.SSA88 "R(P5& and recreate the "I4ES"/4* data from these ta.les after the p#rade. 8or eDample& ser scott has a ta.le tMta.: create ta.le tMta.2D n m.er primar! $e!& ! timestamp %ith time Mone5O insert into tMta. val es21& timestamp PP5O Cefore p#rade& !o can create a ta.le tMta.K.ac$& note col mn ! here is defined as V/(30/(2 to preserve the ori#inal val e. create ta.le tMta.K.ac$2D n m.er primar! $e!& ! varchar222><55O insert into tMta.K.ac$ select D& toKchar2!& PJJJJ-44--- 0024.4I.SSA88 "R(P5 from tMta.O

/fter p#rade& !o need pdate the data in the ta.le tMta. sin# the val e in tMta.K.ac$. pdate tMta. t set t.! G 2select toKtimestampKtM2t1.!& PJJJJ-44--- 0024.4I.SSA88 "R(P5 from tMta.K.ac$ t1 %here t.DGt1.D5O Step -: Startin# in Oracle 'i the ,ational 3haracterset 2,ESK,30/(K30/(/3"E(SE"5 %ill .e limited to +"88 and /E1<+"81<. 8or more details refer to "he ,ational 3haracter Set in Oracle 'i and 10# /n! other ,ESK,30/(K30/(/3"E(SE" %ill no lon#er .e s pported. Bhen p#radin# to 10# the val e of ,ESK,30/(K30/(/3"E(SE" is .ased on val e c rrentl! sed in the Oracle8 version. If the ,ESK,30/(K30/(/3"E(SE" is +"88 then ne% it %ill sta! +"88. In all other cases the ,ESK,30/(K30/(/3"E(SE" is chan#ed to /E1<+"81< and -if sed- ,-t!pe data 2G data in col mns sin# ,30/(& ,V/(30/(2 or,3EOC 5 ma! need to .e converted. "he chan#e itself is done in step 68 .! r nnin# the p#rade script. "o chec$ %hether there are an! ,-t!pe o.)ects in a data.ase& r n the follo%in# : er!: select distinct OB,E(& "/CEEK,/4E from -C/K"/CK3OE+4,S %here -/"/K"J*E in 2P,30/(P&P,V/(30/(2P& P,3EOCP5 and OB,E( not in 2PSJSP&PSJS"E4P&PA-CP5O If no ro%s are ret rned it sho ld mean that the data.ase is not sin# ,-t!pe col mns for user data& so simpl! #o to the neDt step. If !o have ,-t!pe col mns for user data then r n the follo%in# : er!: S9EH select N from nlsKdata.aseKparameters %here parameter GP,ESK,30/(K30/(/3"E(SE"PO If !o are sin# ,-t!pe col mns /,- !o r ,ational 3haracterset is +"88 or is in the follo%in# list: 1/1<S1IS8IAE- & 1/1<E+38IAE- & 1/1<-C3S8IAE- & R0"62"(IS8IAE@O1<@S3><018IAE- & @O1<-C3S8IAE- & +S1<"S"8IAE- & R0S1<37C2612808IAER0S1<7C@8IAE- & R0S1<-C3S8IAE- & R0"1<-C3S8IAE- &

R0"1<CI7>8IAER0"62E+38IAEthen also simpl! #o to point neDt step. "he conversion of the ser data itself %ill then .e done in step 67 If !o are sin# ,-t!pe col mns /,- !o r ,ational 3haracterset is ,O" +"88 or ,O" in the follo%in# list: 1/1<S1IS8IAE- & 1/1<E+38IAE- & 1/1<-C3S8IAE- & R0"62"(IS8IAE@O1<@S3><018IAE- & @O1<-C3S8IAE- & +S1<"S"8IAE- & R0S1<37C2612808IAER0S1<7C@8IAE- & R0S1<-C3S8IAE- & R0"1<-C3S8IAE- & R0"1<CI7>8IAER0"62E+38IAE2!o r c rrent ,ESK,30/(K30/(/3"E(SE" is for eDample +S7/S3II& BE8ISO88>'*1& 3E84SBI,12>1 ...5 then !o have to:

chan#e the ta.les to se 30/(& V/(30/(2 or 3EOC instead the ,-t!pe or se eDportIimport the ta.le2s5 containin# ,-t!pe col mn and tr ncate those ta.les .efore mi#ratin# to 'i. "he recommended ,ESKE/,7 d rin# eDport is simpl! the ,ESK30/(/3"E(SE"& not the ,ESK,30/(K30/(/3"E(SE" Step .: Bhen p#radin# to Oracle -ata.ase 10#& optimiMer statistics are collected for dictionar! ta.les that lac$ statistics. "his statistics collection can .e time cons min# for data.ases %ith a lar#e n m.er of dictionar! ta.les& . t statistics #atherin# onl! occ rs for those ta.les that lac$ statistics or are si#nificantl! chan#ed d rin# the p#rade. "o decrease the amo nt of do%ntime inc rred %hen collectin# statistics& !o can collect statistics prior to performin# the act al data.ase p#rade. /s of Oracle -ata.ase 10# (elease 10.1& Oracle recommends that !o se the -C4SKS"/"S.7/"0E(K-I3"IO,/(JKS"/"S proced re to #ather these statistics. Jo can enter the follo%in#: Q s:lpl s PIas s!sd.aP S9EH EAE3 -C4SKS"/"S.7/"0E(K-I3"IO,/(JKS"/"SO

In 3ase of the '.0.1 or '.2.0 release& then !o sho ld se the -C4SKS"/"S.7/"0E(KS30E4/KS"/"S proced re to #ather statistics. Cac$ p the eDistin# statistics as follo%s:
> sqlplus '/as sysdba' SQL>spool sdi:t SQL>grant analyze any to sys; SQL>exec dbms_stats.create_stat_table('SYS','dictstatta '); SQL>exec dbms_stats.export_sc 'SYS'); SQL>exec dbms_stats.export_sc 'SYS'); SQL>exec dbms_stats.export_sc $> 'SYS'); SQL>exec dbms_stats.export_sc 'SYS'); SQL>exec dbms_stats.export_sc 'SYS'); SQL>exec dbms_stats.export_sc $> 'SYS'); SQL>exec dbms_stats.export_sc $> 'SYS'); SQL>exec dbms_stats.export_sc 'SYS'); SQL>exec dbms_stats.export_sc 'SYS'); SQL>exec dbms_stats.export_sc $> 'SYS'); SQL>exec dbms_stats.export_sc o#n $> 'SYS'); SQL>exec dbms_stats.export_sc ab',stato#n $> 'SYS'); SQL>exec dbms_stats.export_sc 'SYS'); SQL>exec dbms_stats.export_sc $> 'SYS'); SQL>exec dbms_stats.export_sc $> 'SYS'); SQL>exec dbms_stats.export_sc 'SYS'); SQL>spool o66 ema_stats('!"SYS','dictstattab',stato#n $> ema_stats('"%SYS','dictstattab',stato#n $> ema_stats('&'(SYS','dictstattab',stato#n ema_stats('(%)','dictstattab',stato#n $> ema_stats('!*SYS','dictstattab',stato#n $> ema_stats('L)+&SYS','dictstattab',stato#n ema_stats(',L+-SYS','dictstattab',stato#n ema_stats('%"SYS','dictstattab',stato#n $> ema_stats(',%"','dictstattab',stato#n $> ema_stats(',.%SYS','dictstattab',stato#n ema_stats(',.%-L/012S','dictstattab',stat ema_stats('S1_123,."'2_S&45"+','dictstatt ema_stats(',/'L2','dictstattab',stato#n $> ema_stats('%)S2"-','dictstattab',stato#n ema_stats('SYS'5"','dictstattab',stato#n ema_stats('SYS','dictstattab',stato#n $>

%his data is useful if you /ant to re0ert back the statistics 1or e!ample2 the follo/ing P$3S4$ subprograms import the statistics for the S(S schema after deleting the e!isting statistics: e!ec dbms5stats6delete5schema5stats78S(S89: e!ec dbms5stats6import5schema5stats78S(S828dictstattab89:

%o gather statistics run this script2 connect to the database AS S(S#;A using S4$<Plus6
7 s8lpl9s ':as sysdba' SQL>spool gdi t SQL>grant analyze any to sys; SQL>exec dbms_stats.gat er_sc ema_stats('!"SYS',opt ons$>'0+'45.', estimate_percent $> %)"S_S'+'S.+/',_S+"-L5_S1;5, < met od_opt $> '3,.=nbs ;+LL &,L/"2S S1;5 +/',', cascade $> './5); SQL>exec dbms_stats.gat er_sc ema_stats(' %SYS',options$>'0+'45.', estimate_percent $> %)"S_S'+'S.+/',_S+"-L5_S1;5, < met od_opt $>=nbs ;'3,. +LL &,L/"2S S1;5 +/',', cascade $> './5); SQL>exec dbms_stats.gat er_sc e a_stats('&'(SYS',options$>'0+'45.', estimate_percent $> %)"S_S'+'S.+/',_S+"-L5_S1;5, < met od_opt=nbs ;$> '3,. +LL &,L/"2S S1;5 +/',', cascade $> './5); SQL>exec dbms_stats. at er_sc ema_stats('(%)',options$>'0+'45.', estimate_percent $> %)"S_S'+'S.+/',_S+"-L5_S1;5, < met od opt $> '3,. +LL &,L/"2S S1;5 +/',', cascade $> './5); SQL>exec dbm _stats.gat er_sc ema_stats('!*SYS',options$>'0+'45.', estimate_percent $> %)"S_S'+'S.+/',_S+"-L5_S1;5, <=n sp;met od_opt $> '3,. +LL &,L/"2S S1;5 +/',', cascade $> './5); SQL>exe dbms_stats.gat er_sc ema_stats('L)+&SYS',options$>'0+'45.', estimate_percent $> %)"S_S'+'S.+/',_S+"-L5_ 1;5, < met od_opt $> '3,. +LL &,L/"2S S1;5 +/',', cascade $> './5);SQL>exec dbms_stats.gat er_sc ema_stats(',L+-SYS',options$>'0+'45.', estimate_percent $> %)"S_S'+'S. /',_S+"-L5_S1;5, < met od_opt $> '3,. +LL &,L/"2S S1;5 +/',', cascade $>=n sp;'./5); SQL>exec dbms_stats.gat er_sc ema_stats('%"SYS',options$>'0+'45.', estimate_percent $> % "S_S'+'S.+/',_S+"-L5_S1;5, < met od_opt $> '3,. +LL &,L/"2S S1;5 +/',', cascade=nb p;$> './5); SQL>exec dbms_stats.gat er_sc ema_stats(',%"',options$>'0+'45.', estimate_percent $> %)"S_S'+'S.+/',_S+"-L5_S1;5, < met od_opt $> '3,. +LL &,L/"2S S1;5 +/',', ca cade $> './5); SQL>exec dbms_stats.gat er_sc ema_stats(',.%SYS',options$>'0+'45.', estimate_percent $> %)"S_S'+'S.+/',_S+"-L5_S1;5, < met od_opt $> '3,. +LL &,L/"2S S1;5 +/',', cascade $> './5); SQL>exec dbms_stats.gat er_sc ema_stats(',.%-L/012S',options$>'0+'45.', estimate_percent $> %)"S_S'+'S.+/',_S+"-L5_S1;5, < met od_opt $> '3,. +LL &,L/"2S S1;5 +/',', cascade $> './5); SQL>exec dbms_stats.gat er_sc ema_stats('S1_123,."'2_S&45"+',options$>' 0+'45.', estimate_percent $> %)"S_S'+'S.+/',_S+"-L5_S1;5, < met od_opt $> '3,. +LL &,L/"2S S1;5 +/',', cascade $> './5); SQL>exec dbms_stats.gat er_sc ema_stats(',/'L2',options$>'0+'45.', estimate_percent $> %)"S_S'+'S.+/',_S+"-L5_S1;5, < met od_opt $> '3,. +LL &,L/"2S S1;5 +/',', cascade $> './5); SQL>exec dbms_stats.gat er_sc ema_stats('%)S2"-',options$>'0+'45.', estimate_percent $> %)"S_S'+'S.+/',_S+"-L5_S1;5, < met od_opt $> '3,. +LL &,L/"2S S1;5 +/',', cascade $> './5); SQL>exec dbms_stats.gat er_sc ema_stats('SYS'5"',options$>'0+'45.', estimate_percent $> %)"S_S'+'S.+/',_S+"-L5_S1;5, < met od_opt $> '3,. +LL &,L/"2S S1;5 +/',', cascade $> './5); SQL>exec dbms_stats.gat er_sc ema_stats('SYS',options$>'0+'45.',

estimate_percent $> %)"S_S'+'S.+/',_S+"-L5_S1;5, < met od_opt $> '3,. +LL &,L/"2S S1;5 +/',', cascade $> './5); SQL>spool o66

Step =: Check for in0alid ob>ects in0alid ob>ects6


spool in>alid_pre.lst select s9bstr(o#ner,?,?@) o#ner, s9bstr(obAect_name,?,BC) obAect, s9bstr(obAect_type,?,BC) type, stat9s 6rom dba_obAects # ere stat9s D>'E+L1%'; spool o66

Run the follo/ing script and then requery in0alid ob>ects: %his script must be run as a user /ith S(S#;A pri0s using S4$<Plus: ? cd ?&RAC$@5A& @3rdbms3admin ? sqlplus 83as sysdba8 S4$B Cutlrp6sql %his last query /ill return a list of all ob>ects that cannot be recompiled before the upgrade in the file 8in0alid5pre6lst8 Step D: Check for corruption in the dictionary2 use the follo/ing commands in sqlplus connected as sys:
Set >eri6y o66 Set space C Set line ?@C Set eading o66 Set 6eedbacF o66 Set pages ?CCC Spool analyze.s8l Select '+nalyze cl9ster G'HHcl9ster_nameHH'G >alidate str9ct9re cascade ;' 6rom dba_cl9sters # ere o#ner$'SYS' 9nion Select '+nalyze table G'HHtable_nameHH'G >alidate str9ct9re cascade;' 6rom dba_tables # ere o#ner$'SYS' and partitioned$'2,' and (iot_type$'1,'' or iot_type is 2/LL) 9nion Select '+nalyze table G'HHtable_nameHH'G >alidate str9ct9re cascade into

in>alid_ro#s;' 6rom dba_tables # ere o#ner$'SYS' and partitioned$'Y5S'; spool o66

%his creates a script called analyEe6sql6 Fo/ e!ecute the follo/ing steps6 ? sqlplus 83as sysdba8 S4$B C?&RAC$@5A& @3rdbms3admin3utl0alid6sql S4$B CanalyEe6sql %his script 7analyEe6sql9 should not return any errors6 Step 10: @nsure that all Snapshot refreshes are successfully completed2 and that replication is stopped6 ? sqlplus 83 as sysdba8 S4$B select distinct7trunc7last5refresh99 from dba5snapshot5refresh5times: Step 11: Stop the listener for the database: ? lsnrctl $SFRC%$B stop @nsure no files need media reco0ery: ? sqlplus 83 as sysdba8 S4$B select < from 0?reco0er5file: %his should return no ro/s6 Step 12: @nsure no files are in backup mode: S4$B select < from 0?backup /here statusGH8F&% AC%IJ@8: %his should return no ro/s6 Step 1*:

Resol0e any outstanding unresol0ed distributed transaction: S4$B select < from dba52pc5pending: If this returns ro/s you should do the follo/ing: S4$B select local5tran5id from dba52pc5pending: S4$B e!ecute dbms5transaction6purge5lost5db5entry7889: S4$B commit: Step 1+: #isable all batch and cron >obs6 Step 1,: @nsure the users sys and system ha0e 8system8 as their default tablespace6 S4$B select username2 default5tablespace from dba5users /here username in 78S(S828S(S%@ 89: %o modify use: S4$B alter user sys default tablespace S(S%@ : S4$B alter user system default tablespace S(S%@ : Step 1-: @nsure that the aud? is in the system tablespace /hen auditing is enabled6 S4$B select tablespace5name from dba5tables /here table5nameH8A"#?8: Step 1.: Fote do/n /here all control files are located6 S4$B select < from 0?controlfile: Step 1=: Shutdo/n the database ? sqlplus 83as sysdba8 S4$B shutdo/n immediate: Step 1D:

If table )#;6 IKRD202S%A%"S e!ists in the database2 drop it before upgrading the database 7to a0oid the issue described in Fote *,-0=2619 Step 20: Perform a full cold backup 7or an online backup using R AF9 (ou can either do this by manually copying the files or sign on to R AF: ? rman Ltarget 3 nocatalogL And issue the follo/ing R AF commands: R"F M A$$&CA%@ CAAFF@$ chan5name %(P@ #ISN: ;ACN"P #A%A;AS@ 1&R A% 8some5backup5directoryO"8 %AK before5upgrade: ;ACN"P C"RR@F% C&F%R&$1I$@ %& 8sa0e5controlfile5location8: P

"pgrading to the Fe/ &racle #atabase 10g Release 2


Step 21: "pdate the init6ora file: Q ake a backup of the init6ora file6

Q Comment out obsoleted parameters7list in appendi! A96 Q Change all deprecated parameters7list in appendi! ;96 Q Set the C& PA%I;$@ initialiEation parameter to an appropriate 0alue6 If you are upgrading from =616.6+ then set the C& PA%I;$@ parameter to D6260 until after the upgrade has been completed successfully6 If you are upgrading from D6260 or 106160 then lea0e the C& PA%I;$@ parameter set to it8s current 0alue until the upgrade has been completed successfully6 %his /ill a0oid any unnecessary &RAQ D+2 errors from being reported in S &F trace files during the upgrade 7because the upgrade is looking for 1062 ob>ects that ha0e not yet been created9

Q If you ha0e set the parameter F$S5$@FK%A5S@ AF%ICS to CAAR2 change the 0alue to ;(%@ during the upgrade 7to a0oid the issue described in Fote +-*=,,06=9 Q Jerify that the parameter #;5#& AIF is set properly6 Q ake sure the PKA5AKKR@KA%@5%ARK@% initialiEation parameter is set to at least 2+ ;6 Q @nsure that the SAAR@#5P&&$5SIR@ and the $ARK@5P&&$5SIR@ are at least 1,0 b6 Please also the check the LNF&'F ISS"@SL section Q ake sure the SAJA5P&&$5SIR@ initialiEation parameter is set to at least 1,0 ;6 Q @nsure there is a 0alue for #;5;$&CN5SIR@ Q &n 'indo/s operating systems2 change the ;ACNKR&"F#5#" P5#@S% and "S@R5#" P5#@S% initialiEation parameters that point to R#; S=0 or any other en0ironment 0ariable to point to the follo/ing directories instead: ;ACNKR&"F#5#" P5#@S% to &RAC$@5;AS@ToradataT#;5FA @ and "S@R5#" P5#@S% to &RAC$@5;AS@ToradataT#;5FA @Tarchi0e Q Comment out any e!isting A45% 5PR&C@SS@S parameter setting2 and enter a ne/ one that e!plicitly sets A45% 5PR&C@SS@SH0 for the duration of the upgrade Q Set the parameter "F#&5 AFAK@ @F%HA"%& Q ake sure all path names in the parameter file are fully specified6 (ou should not ha0e relati0e path names in the parameter file6 Q If you are using a cluster database2 set the parameter C$"S%@R5#A%A;AS@H1A$S@ during the upgrade6 Q If you are upgrading a cluster database2 then modify the initdb5name6ora file in the same /ay that you modified the parameter file6

Step 22 : Check for adequate freespace on archi0e log destination file systems6 Step 2* : @nsure the F$S5$AFK 0ariable is set correctly: ? en0 U grep ?F$S5$AFK Step 2+: If needed copy the S4$<Fet files like 7listener6ora2tnsnames6ora etc9 to the ne/ location 7/hen no %FS5A# IF en06 Parameter is used9 ? cp ?&$#5&RAC$@5A& @3net/ork3admin3<6ora 3net/ork3admin Step 2,: If your &perating system is 'indo/s 7F%2 20002 )P or 200*9 delete your ser0ices 'ith the &RA#I of your old oracle 0ersion6 Stop the &racleSer0iceSI# &racle ser0ice of the database you are upgrading2 /here SI# is the instance name6 1or e!ample2 if your SI# is &RC$2 then enter the follo/ing at a command prompt: C:TB F@% S%&P &racleSer0ice&RC$ 1or &racle =60 this is: C:T&RA#I =0 Q#@$@%@ QSI# 1or &racle =i or higher this is: C:T&RA#I Q#@$@%@ QSI# Also create the ne/ &racle #atabase 10gR2 ser0ice at a command prompt using the &RA#I command of the ne/ &racle #atabase release: C:TB &RA#I QF@' QSI# SI# QIF%P'# PASS'&R# Q A)"S@RS "S@RS QS%AR% &#@ A"%& QP1I$@ &RAC$@5A& @T#A%A;AS@TIFI%SI#6&RA Step 2-: Copy configuration files from the &RAC$@5A& @ of the database being upgraded to the ne/ &racle #atabase 10g &RAC$@5A& @:

If your parameter file resides /ithin the old en0ironment8s &RAC$@5A& @2 then copy it to the ne/ &RAC$@5A& @6 ;y default2 &racle looks for the parameter file in &RAC$@5A& @3dbs on "FI) platforms and in &RAC$@5A& @Tdatabase on 'indo/s operating systems6 %he parameter file can reside any/here you /ish2 but it should not reside in the old en0ironment8s &RAC$@5A& @ after you upgrade to &racle #atabase 10g6 If your parameter file is a te!tQbased initialiEation parameter file /ith either an I1I$@ 7include file9 or a SP1I$@ 7ser0er parameter file9 entry2 and the file specified in the I1I$@ or SP1I$@ entry resides /ithin the old en0ironment8s &RAC$@5A& @2 then copy the file specified by the I1I$@ or SP1I$@ entry to the ne/ &RAC$@5A& @6 %he file specified in the I1I$@ or SP1I$@ entry contains additional initialiEation parameters6 If you ha0e a pass/ord file that resides /ithin the old en0ironments &RAC$@5A& @2 then mo0e or copy the pass/ord file to the ne/ &racle #atabase 10g &RAC$@5A& @6 %he name and location of the pass/ord file are operating systemQspecific6 &n "FI) platforms2 the default pass/ord file is &RAC$@5A& @3dbs3orap/sid6 &n 'indo/s operating systems2 the default pass/ord file is &RAC$@5A& @TdatabaseTp/dsid6ora6 In both cases2 sid is your &racle instance I#6 If you are upgrading a cluster database and your initdb5name6ora file resides /ithin the old en0ironment8s &RAC$@5A& @2 then mo0e or copy the initdb5name6ora file to the ne/ &RAC$@5A& @6 Fote: If you are upgrading a cluster database2 then perform this step on all nodes in /hich this cluster database has instances configured6 Step 2.: "pdate the oratab entry2 to set the ne/ &RAC$@5A& @ and disable automatic startup: ::F Step 2=: "pdate the en0ironment 0ariables like &RAC$@5A& @ and PA%A

?6 oraen0 Step 2D: ake sure the follo/ing en0ironment 0ariables point to the ne/ Release directories: Q &RAC$@5A& @ Q PA%A Q &RA5F$S10 Q &RAC$@5;AS@ Q $#5$I;RAR(5PA%A Q $#5$I;RAR(5PA%A5-+ 7Solaris only9 Q $I;PA%A 7AI) only9 Q SA$I;5PA%A 7AP") only9 Q &RAC$@5PA%A ? en0 U grep &RAC$@5A& @ ? en0 U grep PA%A ? en0 U grep &RA5F$S10 ? en0 U grep &RAC$@5;AS@ ? en0 U grep $#5$I;RAR(5PA%A ? en0 U grep &RAC$@5PA%A AI): ? en0 U grep $I;PA%A APQ"): ? en0 U grep SA$I;5PA%A Fote that the &RA5F$S10 en0ironment 0ariable replaces the &RA5F$S** en0ironment 0ariable2 so you may need to unset &RA5F$S** and set &RA5F$S106 Step *0: Startup upgrade the database: ? cd ?&RAC$@5A& @3rdbms3admin ? sqlplus 3 as sysdba "se Startup /ith the "PKRA#@ option: S4$B startup upgrade Step *1: Create a S(SA") tablespace6 In &racle #atabase 10g2 the S(SA") tablespace is used to consolidate data from a number of tablespaces that

/ere separate in pre0ious releases6 %he S(SA") tablespace must be created /ith the follo/ing mandatory attributes: Q &F$IF@ Q P@R AF@F% Q R@A# 'RI%@ Q @)%@F% AFAK@ @F% $&CA$ Q S@K @F% SPAC@ AFAK@ @F% A"%& %he "pgrade Information %ool7utlu102i6sql in step +9 pro0ides an estimate of the minimum required siEe for the S(SA") tablespace in the S(SA") %ablespace section6 %he follo/ing S4$ statement /ould create a ,00 for the database: ; S(SA") tablespace

S4$B CR@A%@ %A;$@SPAC@ sysau! #A%A1I$@ 8sysau!016dbf8 SIR@ ,00 R@"S@ @)%@F% AFAK@ @F% $&CA$ S@K @F% SPAC@ AFAK@ @F% A"%& &F$IF@: Step *2: Spool the output so you can take a look at possible errors after the upgrade: S4$B spool upgrade6log S4$B Ccatupgrd6sql %he catupgrd6sql script determines /hich upgrade scripts need to be run and then runs each necessary script6 (ou must run the script in the ne/ release 1062 en0ironment6 %he upgrade script creates and alters certain data dictionary tables6 It also upgrades and configures the follo/ing database components in the ne/ release 1062 database 7if the components /ere installed in the database before the upgrade96 &racle #atabase Catalog Jie/s &racle #atabase Packages and %ypes SSer0er SAJA Jirtual achine &racle #atabase Sa0a Packages &racle )#N

&racle Real Application Clusters &racle 'orkspace anager &racle inter edia &racle ) $ #atabase &$AP Analytic 'orkspace &racle &$AP API &$AP Catalog &racle %e!t Spatial &racle #ata ining &racle $abel Security essaging Kate/ay @!pression 1ilter &racle @nterprise anager Repository %urn off the spooling of script results to the log file: S4$B SP&&$ &11 %hen2 check the spool file and 0erify that the packages and procedures compiled successfully6 (ou named the spool file earlier in this step: the suggested name /as upgrade6log6 Correct any problems you find in this file and rerun the appropriate upgrade script if necessary6 (ou can rerun any of the scripts described in this note as many times as necessary6 Step **: Run utlu102s6sql2 specifying the %@)% option: S4$B Cutlu102s6sql %@)% %his is the PostQupgrade Status %ool displays the status of the database components in the upgraded database6 %he "pgrade Status %ool displays output similar to the follo/ing: &racle #atabase 1062 "pgrade Status "tility 0+Q20Q200, 0,:1=:+0 Component Status Jersion AA: :SS &racle #atabase Ser0er JA$I# 1062606160 00:11:*. SSer0er SAJA Jirtual achine JA$I# 1062606160 00:02:+. &racle )#N JA$I# 1062606160 00:02:1, &racle #atabase Sa0a Packages JA$I# 1062606160 00:00:+= &racle %e!t JA$I# 1062606160 00:00:2= &racle ) $ #atabase JA$I# 1062606160 00:01:2. &racle 'orkspace anager JA$I# 1062606160 00:00:*,

&racle #ata ining JA$I# 1062606160 00:1,:,essaging Kate/ay JA$I# 1062606160 00:00:11 &$AP Analytic 'orkspace JA$I# 1062606160 00:00:2= &$AP Catalog JA$I# 1062606160 00:00:,D &racle &$AP API JA$I# 1062606160 00:00:,* &racle inter edia JA$I# 1062606160 00:0=:0* Spatial JA$I# 1062606160 00:0,:*. &racle "ltra Search JA$I# 1062606160 00:00:+&racle $abel Security JA$I# 1062606160 00:00:1+ &racle @!pression 1ilter JA$I# 1062606160 00:00:1&racle @nterprise anager JA$I# 1062606160 00:00:,= Fote Q in RAC en0ironments2 this script may suggest that the status of the RAC component is IFJA$I# /hen in actual fact it is JA$I# 7as sho/n in the output from #;A5R@KIS%R(9 Step *+: Restart the database: S4$B shutdo/n immediate 7#& F&% "S@ SA"%#&'F A;&R%GGGGGGGGG9 S4$B startup restrict @!ecuting this clean shutdo/n flushes all caches2 clears buffers and performs other database housekeeping tasks6 'hich is needed if you /ant to upgrade specific components6 Step *,: Run olstrig6sql to reQcreate # $ triggers on tables /ith &racle $abel Security policies6 %his step is only necessary if &racle $abel Security is in your database6 7Check from Step **96 S4$B Colstrig6sql Step *-: Run utlrp6sql to recompile any remaining stored P$3S4$ and Sa0a code6 S4$B Cutlrp6sql Jerify that all e!pected packages and classes are 0alid: If there are still ob>ects /hich are not 0alid after running the script run the follo/ing: spool in0alid5post6lst

Select substr7o/ner212129 o/ner2 substr7ob>ect5name212*09 ob>ect2 substr7ob>ect5type212*09 type2 status from dba5ob>ects /here status VB8JA$I#8: spool off Fo/ compare the in0alid ob>ects in the file 8in0alid5post6lst8 /ith the in0alid ob>ects in the file 8in0alid5pre6lst8 you create in step D6 F&%@: If you ha0e upgraded from 0ersion D62 to 0ersion 1062 and find that the follo/ing 0ie/s are in0alid2 the 0ie/s can be safely ignored 7or dropped9: S(S6J5?N4RP# S(S6J5?N4RS# S(S6KJ5?N4RP# S(S6KJ5?N4RS#

After "pgrading a #atabase


Step *.: Shutdo/n the database and startup the database6 O sqlplus 83as sysdba8 S4$B shutdo/n S4$B startup restrict Step *=: Complete the Step *= only if you upgraded your database from release =616. &ther/ise skip to Step +06 A9 If you are not using FQtype columns for user data2 ie6 the query select distinct &'F@R2 %A;$@5FA @ from #;A5%A;5C&$" FS /here #A%A5%(P@ in 78FCAAR828FJARCAAR282 8FC$&;89 and &'F@R not in 78S(S828S(S%@ 828)#;89: did not return ro/s in Step - of this note then:

O sqlplus 83as sysdba8 S4$B shutdo/n immediate and go to step +06 ;9 I1 your 0ersion = F$S5FCAAR5CAARAC%@RS@% /as "%1=: (ou can look up your pre0ious F$S5FCAAR5CAARAC%@RS@% using this select: select < from nls5database5parameters /here parameter H8F$S5SAJ@#5FCAAR5CS8: then: O sqlplus 83as sysdba8 S4$B shutdo/n immediate and go to step +06 C9 I1 you are using FQtype columns for <user< data <AF#< your pre0ious F$S5FCAAR5CAARAC%@RS@% /as in the follo/ing list: SA1-SSIS1I)@# 2 SA1-@"C1I)@# 2 SA1-#;CS1I)@# 2 RA%*2%RIS1I)@# N&1-NSC,-011I)@# 2 N&1-#;CS1I)@# 2 "S1-%S%1I)@# 2 RAS1-CK;2*12=01I)@# RAS1-K;N1I)@# 2 RAS1-#;CS1I)@# 2 RA%1-#;CS1I)@# 2 RA%1-;IK,1I)@# RA%*2@"C1I)@# then the FQtype columns <data< need to be con0erted to A$1-"%11-: %o upgrade user tables /ith FQtype columns to A$1-"%11- run the script utlnchar6sql: O sqlplus 83as sysdba8 S4$B Cutlnchar6sql S4$B shutdo/n immediate: go to step +06 #9 I1 you are using FQtype columns for <user< data <AF# < your pre0ious F$S5FCAAR5CAARAC%@RS@% /as <F&%< in the follo/ing list: SA1-SSIS1I)@# 2 SA1-@"C1I)@# 2 SA1-#;CS1I)@# 2 RA%*2%RIS1I)@# N&1-NSC,-011I)@# 2 N&1-#;CS1I)@# 2 "S1-%S%1I)@# 2 RAS1-CK;2*12=01I)@# RAS1-K;N1I)@# 2 RAS1-#;CS1I)@# 2 RA%1-#;CS1I)@# 2

RA%1-;IK,1I)@# RA%*2@"C1I)@# then import the data e!ported in point = of this note6 %he recommended F$S5$AFK during import is simply the F$S5CAARAC%@RS@%2 not the F$S5FCAAR5CAARAC%@RS@% After the import: O sqlplus 83as sysdba8 S4$B shutdo/n immediate: go to step +06 Step *D: If your database has %I @S%A P 'I%A %I @R&F@ data2 you must update the data so that it is con0erted and stored based on the ne/ time Eone rules that come /ith the upgrade6 7Step -96 If you used the e!port utility to e!port a copy of the affected tables2 you should no/ use the import utility to import your data from these tables back into your database6 %he import utility /ill update the timestamp data as it imports6 If you used the manual script method2 you /ill need to update the affected timestamp data based on your backed up table6 1or e!ample2 if you pre0iously backed up your table2 you need to run an update statement similar to the one belo/ to update your timestamp data6 "P#A%@ tEtab t S@% t6y H 7S@$@C% to5timestamp5tE7t16y28((((Q 1R& tEtab5back t1 'A@R@ t6!Ht16!9: Step +0: Fo/ edit the init6ora: Q If you change the 0alue for F$S5$@FK%A5S@ AF%ICS prior to the upgrade put the 0alue back to CAAR6 Q If you changed the C$"S%@R5#A%A;AS@ parameter prior the upgrade set it back to %R"@ Step +1: Startup the database: Q## AA2+6 I6SS)11 %RR89

S4$B startup Create a ser0er parameter file /ith a initialiEation parameter file S4$B create spfile from pfile: %his /ill create a spfile as a copy of the init6ora file located in the ?&RAC$@5A& @3dbs directory6 Step +2: odify the listener6ora file: 1or the upgraded intstance7s9 modify the &RAC$@5A& @ parameter to point to the ne/ &RAC$@5A& @6 Step +*: Start the listener ? lsnrctl $SFRC%$B start Step ++: @nable cron and batch >obs Step +,: Change oratab entry to use automatic startup SI#:&RAC$@5A& @:( Step +-: "pgrade the &racle Cluster Registry 7&CR9 Configuration6 If you are using &racle Cluster Ser0ices2 then you must upgrade the &racle Cluster Registry 7&CR9keys for the database6 < "se sr0config from the 10g &RAC$@5A& @6 1or e!ample: O sr0config Qupgrade Qdbname db5name Qorahome preQ10g5&racle5home

"seful Aints
<< "pgrading 'ith ReadQ&nly and &ffline %ablespaces %he &racle database can read file headers created prior to &racle 10g2 so you do not need to do anything to them during the upgrade6 %he only e!ception to this is if you /ant to transport tablespaces created prior to &racle 10g2 to another platform6 In this case2 the file headers must be

made readQ/rite at some point before the transport6 Ao/e0er2 there are no special actions required on them during the upgrade6 %he file headers of offline datafiles are updated later /hen they are brought online2 and the file headers of readQonly tablespaces are updated if and /hen they are made readQ/rite sometime after the upgrade6 In any other circumstance2 readQonly tablespaces ne0er ha0e to be made readQ/rite6 It is a good idea to &11$IF@ F&R A$ all tablespaces e!cept for S(S%@ and those containing rollback3"F#& tablespace prior to migration6 %his /ay if migration fails only the S(S%@ and rollback datafiles need to be restored rather than the entire database6 Fote: (ou must &11$IF@ the %A;$@SPAC@ as migrate does not allo/ &11$IF@ files in an &F$IF@ tablespace6 << Con0erting #atabases to -+Qbit &racle #atabase Soft/are If you are installing -+Qbit &racle #atabase 10g soft/are but /ere pre0iously using a *2Qbit &racle #atabase installation2 then the databases /ill automatically be con0erted to -+Qbit during the upgrade to &racle #atabase 10g e!cept /hen upgrading from Release 1 710619 to Release 2 7106296 %he process is not automatic for the release 1 to release 2 upgrade2 but is automatic for all other upgrades6 %his is because the utlip6sql script is not run during the release 1 to release 2 upgrade to in0alid all P$3S4$ ob>ects6 (ou must run the utlip6sql script as the last step in the release 1061 en0ironment2 before upgrading to release 10626 << If error occurs /hile e!ecuting the catupgrd6sql If an error occurs during the running of the catupgrd6sql script2 once the problem is fi!ed you can simply rerun the catupgrd6sql script to finish the upgrade process and complete the the upgrade process6

Appendi! A: InitialiEation Parameters &bsolete in 10g


@F4"@"@5R@S&"RC@S #;$IFN5@FCR(P%5$&KIF AASA5S&IF5@FA;$@# $&K5PARA$$@$IS A)5R&$$;ACN5S@K @F%S %S5CIRC"I%S %S5#ISPA%CA@RS %S5$IS%@F@R5A##R@SS %S5 A)5#ISPA%CA@RS

%S5 A)5S@RJ@RS %S5 "$%IP$@5$IS%@F@RS %S5S@RJ@RS %S5S@RJIC@ %S5S@SSI&FS &P%I IR@R5 A)5P@R "%A%I&FS &RAC$@5%RAC@5C&$$@C%I&F5FA @ &RAC$@5%RAC@5C&$$@C%I&F5PA%A &RAC$@5%RAC@5C&$$@C%I&F5SIR@ &RAC$@5%RAC@5@FA;$@ &RAC$@5%RAC@51ACI$I%(5FA @ &RAC$@5%RAC@51ACI$I%(5PA%A PAR%I%I&F5JI@'5@FA;$@# P$S4$5FA%IJ@5C5C& PI$@R P$S4$5FA%IJ@5$IFN@R P$S4$5FA%IJ@5 AN@51I$@5FA @ P$S4$5FA%IJ@5 AN@5"%I$I%( R&'5$&CNIFK S@RIA$IRA;$@ %RAFSAC%I&F5A"#I%IFK "F#&5S"PPR@SS5@RR&RS

Appendi! ;: InitialiEation Parameters #eprecated in 10g


$&K FR5 A)5P@RSIS%@F%5S@SSI&FS A)5C& I%5PR&PAKA%I&F5#@$A( R@ &%@5ARCAIJ@5@FA;$@ S@RIA$5R@"S@ S4$5%RAC@ ;"11@R5P&&$5N@@P 7replaced by #;5N@@P5CACA@5SIR@9 ;"11@R5P&&$5R@C(C$@ 7replaced by #;5R@C(C$@5CACA@5SIR@9 K$&;A$5C&F%@)%5P&&$5SIR@ $&CN5FA @5SPAC@ $&K5ARCAIJ@5S%AR% A)5@FA;$@#5R&$@S PARA$$@$5A"%& A%IC5%"FIFK P$S4$5C& PI$@R51$AKS 7replaced by P$S4$5C&#@5%(P@ and P$S4$5#@;"K9

Nno/n issues
CSR:+-D.-+D6DD2 19 'hile doing a upgrade from DiR2 to 1062606)6)2 on running the utlu102i6sql script as directed in step 2 Its output informs to add streams5pool5siEeH,0**1-+= to the init6ora file6 'hile adding the parameter &racle gi0es streams5pool5siEe as in0alid parameter6 S%R@A S5P&&$5SIR@2 /as introduced in release 10gR16 %his message

may be ignored for database 0ersion DiR2 or less 29 &ne of the customer has reported on keeping the shared5pool5siEe at 1,0 ;2 catmeta6sql fails /ith insuffient shared memory during the processing of 0ie/ N"?5PA1%A;$@5JI6 Please set the shared5pool5siEe at 200 6 *9 'hile upgrade follo/ing error /as encountered6 create or replace < @RR&R at line 1: &RAQ0-,,*: P$SQ21*: package S%AF#AR# not accessible6 &RAQ00D,,: name is already used by an e!isting ob>ect Please make sure to set the follo/ing init parameters as belo/ in the spfile3init file or comment them out to their default 0alues2 at the time of upgrading the database6 P$S4$5J25C& PA%I;I$I%( H 1A$S@ P$S4$5C&#@5%(P@ H IF%@RPR@%@# W &nly applicable to 10gR1 P$S4$5FA%IJ@5$I;RAR(5#IR H LL P$S4$5FA%IJ@5$I;RAR(5S";#IR5C&"F% H 0 Refer to Fote 1.02=261 P$S4$5J25C& PA%I;$I%(H%R"@ causes S%AF#AR# and #; S5S%AF#AR# to @rror at Compile C Al/ays disconnect from the session /hich issues the S%AR%"P and connect as a fresh session before doing any further S4$6 eg: &n upgrade to 1062 startup the instance /ith the upgrade option2 e!it sqlplus 2 reconnect a fresh S4$P$"S session as S(S#;A and then run the upgrade scripts6

References
Fote 1,D-,.61 Q Complete "pgrade Checklist for anual "pgrades from =6) 3 D6061 to &racleDiR2 7D62609 Fote 1.02=261 Q P$S4$5J25C& PA%I;$I%(H%R"@ causes S%AF#AR# and #; S5S%AF#AR# to @rror at Compile Fote 2-*=0D61 Q Complete checklist for manual upgrades to 10gR1 71061606!9 Fote *,-0=261 Q &RAQ.++, Xqme$oad etadata79Y+,2Z #uring 1061 to 1062 "pgrade Fote +0-+.261 Q andatory Patch ,.,2*DD for 1062606* on Solaris -+Qbit and 1ilesystems anaged ;y Jeritas or Solstice #isk Suite soft/are Fote +122.161 Q &RAQ-00 X22-*,Z and &RAQ-00 XN&N@II)1Z Reported 'hile

"pgrading &r Patching #atabases %o 1062606* &racle #atabase "pgrade Kuide 10g Release 2 710629 Part Fumber ;1+2*=Q 01 http:33do/nload6oracle6com3docs3cd3;1D*0-5013ser0er61023b1+2*=3toc6htm Fote +.1+.D61 Q I&% Corruptions After "pgrade from C& PA%I;$@ VH D62 to C& PA%I;$@ BH 1061

@rrors
P$SQ21* package S%AF#AR# not accessible &RAQ-,,* LP$SQOs: OsL &RAQD+2 Ltable or 0ie/ does not e!istL &RAQD,, VnameB is already used by an e!isting ob>ect &RAQ1+0* no data found &RAQ-00 X22-*,Z &RAQ-00XN&N@II)1Z &CIQ21,00

Ney/ords
8"PKRA#@[%&[10KR28

You might also like