upgrading 10gr2 to 11gr2
TRANSCRIPT
-
7/21/2019 Upgrading 10gR2 to 11gR2
1/9
Upgrading 10gR2 to 11gR2
i) Pre-requisitesa) Complete Checklist for Manual Upgrades to 11gR2 [ID 83!"#1$%) &nsure that all data%ase components ' o%(ectsprovided by Oracle are
*+ID in the source data%ase prior to starting the upgrade,-+. set pagesi/e!"",-+. set linesi/e 1"",-+. select su%str0compname1") compname status
su%str04ersion11") 4ersion from d%aregistr5 order %5 compname6
,-+. select su%str0o%(ectname1") o%(ectnamesu%str0o7ner11!)
o7nero%(ectt5pe from d%ao%(ects 7here status9I:*+ID9 order %5
o7nero%(ectt5pe6
,-+. select o7nero%(ectt5pecount0;) from d%ao%(ects 7here
status9I:*+ID9 group %5 o7nero%(ectt5pe order %5
o7nero%(ectt5pe 6
-
7/21/2019 Upgrading 10gR2 to 11gR2
2/9
, and
,>,?&M
schema
,-+. selecto%(ectname
o%(ectt5pe
from
d%ao%(ects
7here
o%(ectname@@
o%(ectt5pe in
0select
o%(ectname@@
o%(ectt5pe from
d%ao%(ects
7here o7ner
9,>,9)and o7ner
9,>,?&M96
CAMB:*M& ,?*?U
,
&R,IA:
,er4er ** irtual Machine *+ID 1"#2#"##
"
A+*B *nal5tic orkspace *+ID 1"#2#"##
"
Aracle Data Mining *+ID 1"#2#"##
"
Aracle Data%ase Catalog
ie7s
*+ID 1"#2#"##
"
Aracle Data%ase a4a
Backages
*+ID 1"#2#"##
"
Aracle Data%ase Backages
and ?5pes
*+ID 1"#2#"##
"
Aracle &nterprise Manager *+ID 1"#2#"##
"
Aracle &Epression
-
7/21/2019 Upgrading 10gR2 to 11gR2
3/9
ii) Install 11g software11!2!0) in a new OR"#$%&'O(%a) Install data%ase soft7are onl5%) ,ingle instance data%asec) &nterprise &ditiond) Check for kernel parameters
kernel#sem 2!" 32""" 1"" 128kernel#shmmaE 2183L8kernel#msgmn% L!!3!kernel#msgmni 288kernel#sem 2!L 32""" 1"" 12net#ip4#iplocalportrange """ L!!""net#core#rmemdefault 2L21net#core#rmemmaE 13"net#core#7memdefault 2L21net#core#7memmaE 1"8!Lfs#NleOmaE L1!fs#aioOmaEOnr 1"8!L
e) Check for Backages 0 elfutils and uniEADHCOde4el 7ere missing in m5
instance# I ignored and mo4ed further)f) Broceed 7ith installationg) &Eecute root#sh and complete the installationh) Cop5 utlu112i#s=l from 11i AR*C+&JAM& to an5 temporar5 director5i) &Eecute utlu112i#s=l from 1"g AR*C+&JAM&
,ource AR*C+&JAM&B*?J,IDeEport AR*C+&JAM& 'oraBrodHin'1"g'oracle'product'1"#2#"'d%1'eEport B*?JB*?JPAR*C+&JAM&'%ineEport AR*C+&,IDtests=lplus Q'as s5sd%a,-+.S utlu112i#s=l
Check the spool Nle for an5 &rrors and clear them %efore proceeding7ith the upgrade#iii) #ec* for te integrity of te source database prior to
starting te upgrade by downloading and running
dbupgdiag!sql script fro+ below (etalin* article
:ote !!LL1"#1 ,cript to Collect DH Upgrade'Migrate Diagnostic Information
0d%upgdiag#s=l)Check the logNle for an5 erros#
iv) #ec* for ,I(%,"(P .I,' ,I(%/O% atatype,-+. select ; from 4time/oneNle6
-
7/21/2019 Upgrading 10gR2 to 11gR2
4/9
vii) ,o cec* if a standby database e3ists4 issue te followingquery5
,&+&C? ,UH,?R04alueI:,?R04alue99I:,?R0UBB&R04alue)9,&RIC&9))1)ou must ha4e suWcient space in the ta%lespace or %e set to eEtents unlimited#
,-+. ,&+&C? username defaultta%lespace ,99,>,?&M9)6
U,&R:*M& D&,?&M ,>,?&M,>, ,>,?&M
i3) ote down te location of datales4 redo logs4 control les!
"lso ta*e a bac*up of all conguration les li*elistener!ora4tnsna+es!ora4etc!4 fro+ 7OR"#$%&'O(%
,-+. ,&+&C? name
-
7/21/2019 Upgrading 10gR2 to 11gR2
5/9
'oraBrodHin'1"g'oracle'product'1"#2#"'oradata'test'redo"2#log
1'oraBrodHin'1"g'oracle'product'1"#2#"'oradata'test'redo"1#log
,-+.3) top te listener
+snrctl stop3i) top oter e3ecutable suc as dbconsole4 isqlplus
emctl stop d%consoleis=lplusctl stop
3ii) #opy te para+eter le fro+ 10g OR"#$%&'O(% to 11g
OR"#$%&'O(%cp Or init?&,?#ora 'oraBrodHin'app'orade4'product'11#2#"'d%home1'd%s'
3iii) Open and edit te ple as followsCommend the %elo7 lines
X Diagnostics and ,tatistics
X%ackgrounddumpdest'oraBrodHin'1"g'oracle'product'1"#2#"'d%1'ad
min'test'%dumpXcoredumpdest'oraBrodHin'1"g'oracle'product'1"#2#"'d%1'admin'test
'cdumpXuserdumpdest'oraBrodHin'1"g'oracle'product'1"#2#"'d%1'admin'test
'udump
*dddisa%lefast4alidate true
Replace old AR*C+&JAM& 7ith ne7 AR*C+&JAM
3iv) et te environ+ent variables to point to te new 11g
OR"#$%&'O(%eEport AR*C+&JAM&'oraBrodHin'app'orade4'product'11#2#"'d%home1'eEport B*?JB*?JPAR*C+&JAM&'%ineEport AR*C+&,IDtest
3v) Update te oratab entry4 to set te new OR"#$%&'O(%
pointing towards 8,%,9 databaseXtestP'oraBrodHin'1"g'oracle'product'1"#2#"'d%1P:testP'oraBrodHin'app'orade4'product'11#2#"'d%home1P:
3vi) tart te database in upgrade +ode[orade4Serpde4asi"1 Y$ s=lplus Z'as s5sd%aZ
,-+;BlusP Release 11#2#"#1#" Broduction on ,un an 1 1P3P" 2"1"
Cop5right 0c) 182 2"" Aracle# *ll rights reser4ed#
Connected to an idle instance#
-
7/21/2019 Upgrading 10gR2 to 11gR2
6/9
,-+. startup upgradeAR*C+& instance started#
?otal ,5stem Klo%al *rea 1!3!2!!2 %5tes
-
7/21/2019 Upgrading 10gR2 to 11gR2
7/9
DAC.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXDAC.X,-+.,-+. Rem ,et errorlogging o,-+. ,&? &RRAR+AKKI:K A
-
7/21/2019 Upgrading 10gR2 to 11gR2
8/9
OOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOAracle &nterprise Manager*+ID 11#2#"#1#"
A+*B Catalog*+ID 11#2#"#1#"
,patial*+ID 11#2#"#1#"
Aracle Multimedia*+ID 11#2#"#1#"
Aracle FM+ Data%ase*+ID 11#2#"#1#"
Aracle ?eEt*+ID 11#2#"#1#"
Aracle Data Mining*+ID 11#2#"#1#"
Aracle &Epression
-
7/21/2019 Upgrading 10gR2 to 11gR2
9/9
*+ID 11#2#"#1#"
1 ro7s selected#%) Run catuppst#s=l located in the AR*C+&JAM&'rd%ms'admin
director5 to perform upgrade actions that do not re=uire the data%ase
to %e in UBKR*D& modeP
c) Run d%diag#s=l
d) ,tart listerner OOO lsnrctl start
;;;;;;;;;;;;;;;;;;;UBKR*D& CAMB+&?&;;;;;;;;;;;;;;;;;;;;;;;