Vous êtes sur la page 1sur 30

Application Installation Instruction

for
Oracle 10g (10.2.0.4) Database Upgrade
Version 1.32
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 1
Client: Jobcentre Plus
ut!ors: "an#ar $atara%an san#ar.natara%an&eds.co'
(ic!ard lderson ric!ard.alderson&eds.co'
)opinat! *urali gopinat!.'urali&eds.co' 0114 2+1 12,,
C!ange -istor.:
Date Version Initials !ange
1/00,0200+ 1.0 "$ Initial 1ersion
020020200+ 1.1 ( Updated post initial tests on De1elop'ent databases
0+0030200+ 1.2 "$ 4urt!er c!anges 5ollo6ing Peer (e1ie6.
2,00+0200+ 1., )* 4urt!er c!anges 5ollo6ing Peer (e1ie6
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 2
ontents
1. "peci5ication............................................................................................................................ 2
Co'ponents to be installed..................................................................................................... 2
2. Co'patibilit. *atri7................................................................................................................. 2
,. Pre Upgrade "teps............................................................................................................. 3
4.Upgrading t!e Database..................................................................................................... 21
2. Post Upgrade "teps.......................................................................................................... 2,
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page ,
"#$%I&O'O()
Abbre*iation+
"er,inolog-
Description
8"*"9:( 9!e ppoint'ent 8oo#ing ".ste' "c!e'a 6it!in t!e Database.
II pplication Installation Instruction.
I; d1anced Interacti1e e;ecuti1e< Proprietar. Operating ".ste' de1eloped b. I8* based on U$I; s.ste' =.
D8 Data 8ase d'inistrator
D>> D.na'ic >in# >ibrar. (In case o5 >*" it 6ould be >*"9U;.dll and 1arious ot!er D>>s t!at sit on t!e PC 6!ere
t!e >*" 5ront?end application is installed.
:D" :lectronic Data ".ste's
:I9 :arl. Integration 9esting (:D" ".ste' 9esting)
"49P "ecure 4ile 9rans5er Protocol
I8* International 8usiness *ac!ines
IJ8*"9:( 9!e Internet Job 8an# "c!e'a 6it! t!e Database.
>*" >abour *ar#et ".ste'
O9 Operational cceptance 9esting
*"9:( 9!e *aster >*" "c!e'a 6it!in t!e database.
*(I4 *id (ange -osting "er1ices
Open(OD 9!e proprietar. de1elop'ent en1iron'ent@ 5ro' Co'puter ssociates@ 6it!in 6!ic! t!e 'a%or part o5 t!e >*"
user inter5ace is constructed.
Pu99A 5ree ""- client
""- "ecure "!ell. net6or# protocol used to establis! a secure c!annel bet6een t6o co'puters.
"CP "ecure Cop.. 9!e "CP progra' is used to cop. 5iles securel. bet6een t6o co'puters using t!e "CP
protocol.
U9 User cceptance 9esting
UC9 User Con5idence 9est
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 4
1. .pecification
Components to be installed
Oracle 10g :nterprise edition release 2
1. Please install Oracle so5t6are 10.2.0 in t!e ne6 Oracle -o'e (0apps0oracle0ad'in010.2.0 5ollo6ing t!e docu'ent BOracle 10g ((elease 2) 5or I; (9o 10.2.0.4) C
"o5t6are08inaries Installation IID (8elo6 Ite' $o: ,42 in t!e Con5iguration *anage'ent Eeb"ite) or instructions on !o6 to install Oracle 10.2.0.1 base release
and t!en to upgrade to Oracle 10.2.0.4.
I5 in an. doubt about 6!at is reFuired t!en contact t!e D8 tea'. *a#e sure Oracle supports t!e 1ersion and an. outstanding issues and an. patc!es t!at s!ould
be applied
2. (e'e'ber t!at t!e onl. 6a. o5 bac#ing out is re?creating t!e database in ot!er 6ords reco1ering 5ro' a bac#up@. (*$ Cold0-ot bac#up 6ould be pre5erable.
,. 9a#e a cold bac#up o5 t!e database be5ore starting t!e upgrade or as# t!e Pro%ect D8 to ta#e one.
4. C!ec# 5or t!e necessar. 5ile per'ission on t!e ne6 O(C>:G-O*: director. be5ore proceeding.
2. Compatibility Matrix
+ Minimum Version of the database that can be directly upgraded to Oracle 10g Release 2
8.1.7. !" 10.2.#.#.#
$.0.1. or $.0.1.% !" 10.2.#.#.#
$.2.0. or higher !" 10.2.#.#.#
10.1.0.2 or higher !" 10.2.#.#.#
$ote. *ost o5 t!e :D" 4ront O55ice and 8ac# O55ice s.ste's are at Oracle +.2.0.2@ +.2.0.3 and +.2.0.H
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 2
3. Pre Upgrade Steps
reate appropriate directories to proceed /it! t!e Oracle upgrade.
.tep Action o,,and(s) &otes
1 >og in as oracle and s6itc!
to t!e database to be
upgraded. C!ec# t!at t!e
Oracle database is up and
running 5or t!e
O(C>:G"ID
sudo su 0 oracle
s/itc! 1O$A'#2.ID
ps 0fuoracle 3 grep p,on
"6itc! to t!e IO(C>:G"ID 6!ic!
needs to be upgraded.
.
2 Create a bac#up director.. ,4dir 0p +apps+oracle+edsad,in
, Cop. t!e pre check
files from Change
Management to backup
directory. If not
already on the NIM
server.
"ee Ite' $o. ,20 in t!e
Con5iguration *anage'ent
*edia >ibrar. 5or tar 5ile
containing database upgrade
scripts.
e5port U6(DI$7+apps+oracle+edsad,in
ec!o 1O$A'#2.ID
cd 1U6(DI$
copy from the NIM the file oracle&10g&db&scripts.tar to
the '()*+,R
tar 05*f oracle&10g&db&scripts.tar
Cop.ing t!e necessar. Oracle Upgrade
pre c!ec# 5iles. The .sql files
will be copied to the $!"#I$.
4 C!ec# t!e Oracle -o'e
director. !as necessar.
per'issions and update
if necessary.
cd +apps+oracle+product
ls -l
"!ould return something like below % i.e. that both the
&'.(.)* and the *+).(.)* directories e,ist-
dr67r?7r?7 2/ oracle dba 40+3 1/ 4eb 1/:2H $.2.0
dr./r!/r!/ ./ oracle dba 0)'. +( Mar ++-0+
9!is step should have been
performed in the 1I2 3racle
4inary software upgrade if not
the step needs to be performed.
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 3
10.2.0
I5 the permissions on the +).(.) directory are not as
above5 please update as follows-
chmod R 750
/apps/oracle/product/10.2.0/apps/oracle/product/10.2.0/d
b_1
&ote. If you do the chmod
command any 6arning messages
re73racle not being the owner
can be ignored % as there are a
few &root*owned files.
2 )at!er in5or'ation about t!e
database to be upgraded
cd 1U6(DI$
s8lplus 01 as sysdba2
spool database&ORACLE_SID&info.log
9utlu102i.s3l
spool off
e5it
sa'ple o5 t!e output 5ile is attac!ed.
Pac#age
9!e script 6rites all t!e in5or'ation to an
output file-
f)(8)+8database8info8$3$1C9:8;I
#.lst % details about the
parameters required to be
modified in order to proceed
with the upgrade.
Please c!ec# t!e log 5ile to see i5 it !as
!ig!lig!ted an. c!anges to be 'ade and
liaise 6it! t!e Pro%ect D8 i5 necessar..
I5 t!ere are no c!anges reFuired please
proceed 6it! t!e upgrade.
4or an. !elp please contact the
!ro<ect #41 to discuss the
errors and take the corrective
actions.
3 (esolving issue
around redo si=e if
reported in the log
file generated by
;tep / 7 !re pgrade
(esol1ing redo log siJe issue
Please 5ind attac!e'ent on resolving redo log space issue
9!is step need to be done onl. i5 t!e
script utlu102i.sFl in "tep no 2 gi1es
in5or'ation on increasing t!e siJe o5 t!e
redo log 5ile.
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page /
;teps.
*icroso5 t O5 5 ice
Eord +/ ? 200, Docu'ent
Please contact Pro%ect D8 to assist05i7 i5
reFuired. 9!is issue is onl. li#el. to be
encountered on t!e s'aller databases
used 5or D:=@ "test and U9.
.tep Action o,,and(s) &otes
/ (esol1ing issue related to
'e'or. siJe if reported
in the log file
generated by ;tep 0
above.
>ocate t!e
init3$1C9:8;I#.ora
file.
'og in as oracle user
9!e 5ile initIO(C>:G"ID.ora s!ould be located under :
0apps0oracle0ad'in0IO(C>:G"ID0p5ile (i5 not see t!e $ote.)
cd +apps+oracle+ad,in+1O$A'#2.ID+pfile
*a#e a bac#up o5 t!e initIO(C>:G"ID.ora 5ile be5ore proceeding b. t!e
co''and belo6.
cp +apps+oracle+ad,in+OR4567&8,+1pfile1initOR4567&8,+.ora
'()*+,R1initOR4567&8,+.ora.ba9
:dit t!e 5ile5 change the following parameters as shown.
*i initORACLE_SID.ora
c!ange t!e 1alue assoicated 6it! t!e 5ollo6ing para'eters:
shared_pool_size = 2142!"
large_pool_size = #$%
session_max_open_&iles = #%
streams_pool_s!e " 50##1$%&
C!anges to t!e 1alues 5or
s!aredGpoolGsiJe@ largeGpoolGsiJe@
sessionG'a7GopenG5iles@
strea'GpoolGsiJe as reported in
databaseG'()C*+_S,-Gin5o.log o5
"tep 3 Pre Upgrade steps.
.ote. In few cases the
init$ORACLE_SID.ora is
located under
$ORACLE_HOME/ds
Note. If this is the case please contact
the Project DBA to copy it to the pfile
area and to create a link from the /dbs
area so that there is only one version
and in the
/apps/oracle/admin/OA!"#$%ID/
&pfile area'
I5 no c!ange is reported 5or t!e 'e'or.
para'eter t!en please proceed 6it!
t!e ne7t step.
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page H

&ote. If the parameter is not present please add an entry
to the initORACLE_SID.ora file. >This is likely to be the
case with the last three on #6! ;ystems?.
Please $ote: I5 t!ese 1alues are !ig!er
please do not 'a#e t!ese c!anges.
9!e >*" production database !as
!ig!er 1alue 5or t!e 'e'or.
para'eters.
H (esol1ing space issue related
to "A"9:*@ U$DO
tablespaces.
I5 reported in "tep . above.
gain onl. li#el. to be
encountered on t!e s'aller
Databases used for #:@5
;T:;T and 1T.
8e5ore proceeding 6it! t!e resiJe please c!ec# 5or su55icient space on t!e 5ile
s.ste'. :.).
df 04 +u02+oradata+'ORACLE_SID
(:"O>=I$) U$DO 98>:"PC: I""U: -
C!ec# t!e data5ile na'e and siJe o5 t!e U$DO tablespace b. issuing t!e
belo6 co''and
s8lplus :+ as s-sdba;
.<'" select tablespace&name: file&name: sum;bytes1;102<102==
fro, dba2data2files
/!ere tablespace2na,e li9e 2>(?+O>2
group b- tablespace2na,e= file2na,e>
(esiJe t!e data5ile to the required si=e mentioned in the
database&ORACLE_SID&info.log. !lease follow the below
e,ample.
sFlK@df -9 1u021oradata1'ORACLE_SID
to see if eno()h room in the filesystem to e*tend.
s+l, alter database data'le (/u02/oradata/)ORACLE_SID1db'/
)ORACLE_SID_u*do01.db'+ res!e %50,-
Please e ensure that the correct datafile na!e and
9!is step need only be done if
an error for 9M;8N#3 space
issue is reported in system
tablespace by ;tep / of !re
pgrade ;teps
&ote. This change will not be
required on 9ife ;i=e
databases where the 9M;8N#3
is already ."45
Please note t!e co''and to resiJe t!e
undo data5ile is onl. an e7'pale t!e
data5ile na'e o5 t!e U$DO tablespace
can be di55erent.
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page +
location are used for the ao"e co!!and# .$i.e. the
file_na!e returned % the select state!ent ao"e
(:"O>=I$) "A"9:* 98>:"PC: I""U: -
"L>K select tablespace&name: file&name: sum;bytes1;102<102==
fro, dba2data2files
/!ere tablespace2na,e li9e 2>8A8B7M>2
group b- tablespace2na,e= file2na,e>
(esiJe t!e data5ile to t!e reFuired siJe 'entioned in t!e
database&ORACLE_SID&info.log - or to 00M as .e recommend.
Please 5ollo6 t!e belo6 e7a'ple.
sFlK@df -9 1u021oradata1'ORACLE_SID
to see if eno()h room in the filesystem to e*tend.
s+l, alter database data'le (/u02/oradata/)ORACLE_SID1db'/
)ORACLE_SID_s.ste/01.db'+ res!e %00,-
Please e ensure that the correct datafile na!e and
location are used for the ao"e co!!and .$i.e. the
file_na!e returned % the select state!ent ao"e
(:"O>=I$) 9:*PO((A 98>:"PC: I""U:" -
9!is steps needs to be per5or'ed onl.
i5 an error is reported 5or not enoug!
space on t!e "A"9:* tablespace in
"tep / of !re pgrade ;tep.
&ote. On t!e s'aller Databases 6ill
probbal. be set tp 220* C so 6ill need
updating.
9!is step needs to be per5or'ed onl. i5
an error 6as reported 5or not enoug!
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 10
C!ec# 5or 5ile na'e and siJe o5 t!e te'porar. tablespace
s8lplus :+ as s-sbdba2
"L>K select file&name5 sum;bytes1;102<102==
fro, dba2te,p2files
group b- file2na,eC
Increase t!e siJe o5 t!e te'porar. tablespace 9:*P to the si=e
mentioned in the database8$3$1C9:8;I#8info.log. In the
below e,ample the temporary tablespace si=e is incrased by
adding a temp file.
sFlK@df -9 1u021oradata1'ORACLE_SID
to see if eno()h room in the filesystem to e*tend.
sFlA alter tablespace temp add tempfile D1u021oradata/
)ORACLE_SID1dbf1temp01.dbfD siEe 100MC
Please e ensure that the correct datafile na!e and
location are used for the ao"e co!!and.
te'porar. tablespace in
datebaseG-OA!"#$%IDGin5o.log o5
"tep 2 7 !re pgrade
9!e te'porar. tablespace siJe needs
to be increased b. t!e a'ount
'entioned in t!e
databaseGIO(C>:G"IDGin5o.log
>minimum si=e is /BM4?.
?!ere it is s,aller on "est .i@e
s-ste,s e5te,d b- 100%A by
adding another tempfile.
+ C!ec# which users have
the deprecated connect
role.
cd 1U6(DI$
s8lplus :+ as s-sdba; 9032012c!ec42connect2role.s8l
Please note the output for this
command will vary depending
on the type of system being
built-
log 5ile na'e
..$/0$check$connect$role.lo) 6ill be
produced.
DAA$#'nn will show-
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 11
*"9:(@ 8*"9:( and
IC4M1;T:$
Bor t!e ,ain $#'nn De1elop'ent
database t!e output s!ould be:
8"*"9:(@ #CM;:$
#:@8;:$5 IC4M1;T:$5
C4" and M1;T:$
And for ."#."= UA" F
8"*"9:(@ (DC*U":( CU9
onl.) IJ8*"9:(@ *"9:( and
9I=O>I).
Bor t!e 'i*e :#.2'IV#; database t!e
follo/ing /ill be returnedC
8"*"9:(
$>AM:GU":(
89C-
DC*U":(
IJ8*"9:(
*"9:(
9I=O>I
>*""99"
*"9:(
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 12
.tep Action o,,and(s) &otes
10 8ac#up )rant in5or'ation s8lplus :+ as s-sdba; 90320D2gen2rest2of2connect2grants.s8l 9!e script produces a file
)D8)/8gen8rest8of8connect8grants_0ORACLE_S
ID1.
sFl.
6lease do not run t!is script.
11 8ac#up db lin#
in5or'aton
s8lplus :+ as s-sdba; 9042012gen2cre2db2lin4s.s8l 9!is scipt produces a bac#up script
04G01GgenGcreGdbGlin#s_0ORACLE_SID1.sql.
6lease do not run t!is script.
12 C!ec# t!e $ational
C!aracterset Datat.pe
s3lplus 01 as sysdba2 G0H&01&chec9&nchar&datatype.s3l 9!e Fuer. produces a log file
).8)+8check8nchar8datatype80ORACLE_SID1.ls
t
9!is Fuerr. s!ould return no ro6s.
If the query returns any rows please refer
to the !ro<ect #41 to see Metalink Note
number D+.BB'.+ ;tep . or contact 3racle
support.
1, :7port sc!e'a statistics s8lplus E+ as s-sdbaF 90G2012e5port2sc!e,a2stats.s8l 9!e script creates a log 5ile
0/G01Ge7portGsc!e'aGstatsG/'()C*+_S,-0.lst.
&ote. :rror messages 3$17()))) and
associated 3$17./+(*s 7 &;chema does not
e,ist or insufficent previleges can be
ignored.
14 Co'pute sc!e'a
statistics
s8lplus E+ as s-sdbaF 90G20D2co,pute2sc!e,a2stats.s8l 9!e script produces a log 5ile
/G02Gco'puteGsc!e'aGstats80ORACLE_SID1.lst.
&ote. 1ny warning messages about
&insufficient privileges* can be ignored.
12 C!ec# in1alid ob%ects in s8lplus :+ as s-sdba; 90H2012c!ec42in*alid2obIects.s8l 9!e scipts lists all t!e in1alid ob%ects into t!e log 5ile
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 1,
t!e database HG01Gc!ec#Gin1alidGpre80ORACLE_SID1.lst
and also atte'pts to co'pile t!e in1alid ob%ects.
If any invalid ob<ects please contact the
!ro<ect #41 to check.
13 "pool output o5 =Ioption s8lplus :+ as s-sdba; G0$&01&inst&features&hist.s3l 9!is script list all t!e features that are installed
in the e,isting 'i version. The report
can be compared after upgrading to +)g to
see any discrepancy
C!ec# spool 5iles 5or errors@ i5 an..
1/ "pool D8G(:)I"9(A s3lplus 01 as sysdba2 G0$&02&dba&registry.s3l 9o list upgrade in5or'ation of the database. The
report can be compared after upgrading to
+)g
C!ec# spool 5iles 5or errors@ i5 an..
1H3 C!ec# snaps!ot
re5res!es are co'pleted
success5ull. and
replication is stopped.
s8lplus :+ as s-sdba; 9102012c!ec42snaps!ot2refres!es.s8l 9!e script c!ec#s 5or an. replication t!at is pending.
log 5ile is generated
10G01Gc!ec#Gsnaps!otGre5res!esGINO(C>:G"IDO.lst
Eill displa. so'e dates on screen 6!en snaps!ots 6ere
last re5res!ed C i5 an..
I5 no O(? errors please continue.
1+/ (esol1e an. outstanding
unresol1ed distributed
transaction.
s8lplus :+ as s-sdba; 9112012c!ec42pending2reco*er-.s8l 9!e scipt c!ec#s 5or an. unreso1ed transaction and i5
reco1er. is pending. ;hould return responses
&no rows selected*.
9!e script produces a log 5ile
++8)+8check8pending8recovery8$3$1C9:8;I#.l
st
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 14
201H *a#e s.ste' as t!e
detault tablespace 5or
B"A"D and B"A"9:*D
s8lplus E+ as s-sdbaF 91D2012c!ec42s-s2default2tbsp.s8l
9!e script produces an output sctipt 12G01Gs.ste'GIO(C>:G"ID.sFl
t!is script needs to be run onl. i5 t!e "A"9:* tablespace is di55erent
5or B"A"D $D B"A"9:*D user.
9o 1eri5. t!e de5ault tablespace 5or B"A"D and B"A"9:*D please run
the below query to find out if is different.
s8lplus :+ as s-sdba; G1%&02&chec9&sys&default&tbsp.s3l
C!ec# t!e output 5ile 12G02Gs.ste'GIO(C>:G"ID.log % it
should showE
USERNAME DEFAULT_TABLESPACE
---------------------------- ------------------------------
SYS SYSTEM
SYSTEM SYSTEM
Only if the above output returns a different
tablespace other than &;F;T:M* run the below sql
statement to alter the default tablespace for ;F;
and ;F;T:M schemas.
sFlplus B0 as s.sdbaP &12G01Gs.ste'GIO(C>:G"ID.sFl
9!is scipt 'a#e ;F;T:M as the default
tablespace for sys and system users.
9!is script generates a sFl script
+/8)+8system8$3$1C9:8;I#.sql.
9!is script needs to be run onl. i5 t!e s.ste' tablespace
is di55erent 5or s.s and s.ste' users.
9!e script +/8)(8check8sys8default8tbsp.sql
produces an output 5ile
+/8)(8system8$3$1C9:8;I#.log
1+21 *a#ing s.ste' as t!e
de5ault tablespace 5or
UDI table.
s8lplus E+ as s-sdbaF 9
1J2012c!ec42audit2tbs.s8l1H&01&chec9&for&auditing_)ORACL
E_SID.s3l
9!is scipt 'a#e ;F;T:M as the default
tablespace for 1#$ table.
9!is scipt 'a#e de5ault tablespace as "A"9:* 5or s.s
and s.ste' users. 4(+,B,?*IIIIII
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 12
2022 >ist out the physical
structure of the
database Make a
backup of al>l
datafiles5control
and redo log files?
s8lplus E+ as s-sdbaF 91G2012database2files.s8l 9!is scripts produces a list o5 data 5iles@ control 5iles and
redo log 5iles present in t!e database.
2,1 "!utdo6n database and
listener
s8lplus E+ as s-sdbaF 91H2012s!utdo/n.s8l 9!is script s!uts down the database. ;hould
see the following on screen-
Database closed.
Database dis'ounted.
O(C>: instance s!ut do6n.
242 "!utdo6n listener lsnrctl status
lsnrctl stop
9!ese command checks the status of the
listener and lsnrctl stop stops the
listener.
22, C!ec# 5or t!e 5ollo6ing
para'eters to be
'odi5ied
>oo# 5or initIO(C>:G"ID.ora it can be eit!er
cd +apps+oracle+ad,in/
)ORACLE_SID1pfile1init)ORACLE_SID.ora
or
cd 1O$A'#2KO%#+dbs check for init$ORACLE_SID.ora
grep Li A<2"%26$O#..#. init1'()C*+_S,-.ora
If found then change the value as shown in the step
below if not found then add the value as shown
below.
9!is co''and s!ould be done onl. i5
aFGt'GprocessesQ0.
&ote. If the parameter does not e,ists
please add the parameter.
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 13
*i init'OR4567&8,+.ora
a82t,2processes70
234 C!ange t!e
strea'sGpoolGsiJe i5 not
alread. done in "tep 2
cd 1apps1oracle1admin1'OR4567&8,+1pfile
grep Li ."$#A%.26OO'2.IM# init)ORACLE_SID.ora
i5 5ound c!ange t!e 1alue to t!e 1alue s!o6n belo6 else add t!e 1alue
to t!e initIO(C>:G"ID.ora
*i init)ORACLE_SID.ora
strea,s2pool2si@e7D0331J4H
9!is step s!ould be onl. done i5 not done in "tep 2.
&ote. It is likely that the value will not
be set. Not currently set on live 9M;5
2/2 C!ec# 5or
":""IO$G*;GOP:$G
4I>:"
I5 not already done in
;tep /
grep Li .#..IO&2%AN2O6#&2BI'#. init)ORACLE_SID.ora
i5 t!e 1alue is 5ound t!en c!ange if the value is not found
add the value.
*i init'ORACLE_SID.ora
session2,a52open2files730
9!is step s!ould be done onl. i5 not alread. done in "tep
2.
&ote. It is likely that the value will
not be set. Not currently set on live
9M;5
2H3 C!ec# 5or obslete and
deprecated
parameters.
9!ese are para'eters
t!at are no longer
reFuired and so can be
!as!ed (R) out in t!e
initO(C>:G"ID.ora 5ile.
cd +apps+oracle+ad,in+1O$A'#2.ID0pfile
at t!e uni7 pro'pt e7ecute t!e 5ollo6ing co''and
for i in Ocat 1U6(DI$+obsolete.parO
do
grep Li 1i init1'()C*+_S,-.ora
done
Co''ent out an. para'eter returned b. t!e co''and 5ro' t!e
initIO(C>:G"ID.ora 5ile
Unless t!e. !a1e a BRD in 5ront o5 t!e' on screen (i.e. alread.
co''ented out).
&ote. The J is the key Top79eft on
keyboard above Tab.
I5 t!e co''and does not return an. ro6s t!en no need to
update t!e IinitIORACLE_SID.ora
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 1/
*i init1'()C*+_S,-.ora
P log2arc!i*e2start
"i'ilarl. do 5or t!e deprecated para'eters as belo6
for i in Ocat 1U6(DI$+deprecate.parO
do
grep Li 1i init1'()C*+_S,-.ora
done
Co''ent out an. para'eter returned b. t!e co''and 5ro' t!e
initIO(C>:G"ID.ora 5ile.
Unless t!e. !a1e a BRD in 5ront o5 t!e' on screen (i.e. alread.
co''ented out).
1i t!e 5ile and co''ent out t!ese 5ro' t!e
initIO(C>:G"ID.ora 5ile.
2+/ *odi5. t!e oratab 5ile *i +etc+oratab
co''ent out t!e old O(C>:G-O*: and set t!e ne6
O(C>:G-O*:
5or e7a'ple i5 .our 9M;D) is your 3$1C9:8;I# then comment
out the e,isting entry and add new entry as shown
below.
P6M8K0F 1apps1oracle1product1$.2.0F?
'%.30F
1apps1oracle1product110.2.01apps1oracle1product110.2
.01db&1F?
Co''ent out t!e old O(C>:G-O*: entr. in
0etc0oratab and entrying the new 3$1C:8G3M:
which is
'()C*+_S,-&
/a''s/oracle/'roduct/().*.)/a''s/oracle/'r
oduct/().*.)/d_(
Please note the "alue at the end of the
Oracle Ho!e entr% is either +,- or +.-
this entr% needs to e the sa!e as efore
for the new Oracle ho!e.
,02H "et t!e $e6 10)
en1iron'ent
I5 t!e s6itc!en1 5ile e7ists on t!e ser1er c!ange t!e 1alue o5 t!e
en1iron'ent 1ariables pointing +i to 10g as s!o6n in t!e e7a'ple
belo6.
C!anging t!e s6itc!con5 5iles to re5lect t!e ne6
O(C>:G-O*:.
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 1H
cd 1etc1s.itchconf
*i )ORACLE_SID.s.itchenL
c!ange O(C>:G-O*: 5ro' 0apps0oracle0product0+.2.0 to
/apps/oracle/product/10.2.0/apps/oracle/product/10.2
.0/db_1
c!ange
>I8P9-Q0l's0tu7edo0lib:0lib:0apps0oracle0product0+.2.00lib:0apps0tu7ed
oH.10lib
to
'IA6A"K71lms1tu/edo1libF1libF1apps1oracle1product110
.2.01apps1oracle1product110.2.01db&11libF1apps1tu/ed
o8.11lib
lso if e,ists change the 3$18N9;DD path from
HappsHoracleHproductH'.(.)HocmmonHnlsHadminHdata to
+
apps+oracle+product+10.2.01apps1oracle1product110.2.01db&
11ocmmon1nls1admin1data.
6lease &ote. after changing the $3$1C9:8;I#.switchenv
file logout of the uni, session and log in back as
oracle only then the new +)g environment variables
will be set >see ;tep (' below?5
"i'ilarl. 5or a 5e6 1aribles point to t!e old +i
O(C>:G-O*: please edit t!e 5iles and point t!ose
1ariable to t!e ne6 OracleG-O*:.
Please $ote 5or e7'aple i5 >*" is t!e database .ou are
currentl. upgrading please c!ange all t!e corresponding
IO(C>:G"ID.s6itc!en1 5iles
e7a'ple in >*" database 5ollo6ing are t!e s6itc!con5
5iles
>*".s6itc!en1
>*"01.s6itc!en1
>"*02.s6itc!en1
I$901.s6itc!en1
I5 an. O(G$>",, P9- does not e7ists on t!e .en1 5ile
please ignore.
&ote. In order to change other switchenv i!es
"o# $#st %e the i&entit" o the owner o that
switch i!e eg' S#&o to t#(e&o to change
LMS)*'switchenv i t#(e&o owns it'
,12+ :7it t!e "!ell and (e
login as Oracle
e/it
sudo su - oracle
s.itch 'OR4567&8,+
@erify the new environment is properly set
echo 'OR4567&MOM7
9!is step needs to be done to re5lect t!e ne6
en1iron'ent..
=eri5. all t!e 1ariables are set to t!e ne6 10g
en1iron'ent.(i.e. have 10.2.0 listed rather than 9.2.0)
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 1+
echo '6,N)4BM
echo ')4BM
,2,0 Create t!e lin# 5or t!e
initO(C>:G"ID.ora in
t!e ne6
IO(C>:G-O*:0dbs
cd 'OR4567&MOM71dbs
ln !sf 1apps1oracle1admin1
$ORACLE_SID1pfile1init)ORACLE_SID.ora .
lin# is created 5or init ORACLE_SID.ora to point to
the new ORACLE_HOME.
In t!e 5ollo6ing steps@ t!e 1ariables in t!e table belo6 s!ould be substituted 6!ere indicated depending on t!e en1iron'ent being built.
&O"# E!en creating 'ultiple instances o5 a database (i.e. 5or :I90I"9)@ t!e 5ollo6ing 5iles 6ill contain re5erences to B>*"9:"9D as t!e O(C>:G"ID 6!ic!
6ill need to be edited to 6!ate1er O(C>:G"ID as been decided on. 4iles to be edited as 5ollo6s: init;T:;T.ora5 cr8;T:;T8db.sql5
create8;T:;T8directories.ksh
Variable
Value to use in
:I9 0 I"9 User cceptance 9est (U9) O9 Per5or'ance 9est >i1e
ORA_!"#$
9M;D) 9M;81T >,(? and
#M1;81T
Note. Irom 9M;(' there are
two 9M;81T databases5 one
for <ust 9M; testing >Non7
:;1? and one against which
:;1 testing was carried out.
:;89I@: :;89I@: :;89I@:
%&"LE$
init;T:;T.ora
1mend 9M;(' to reference
relevant &3$18;I#* value
if different5 e.g. 9M;D)
init9M;81T.ora
init#M1;81T.ora
>no need to edit?
init:;89I@:.ora init:;89I@:.ora init:;89I@:.ora
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 20
4.Upgrading the -atabase
.tep Action o,,and(s) &otes
1 >og on to sFlplus as Oracle
user@ e7port t!e UP)DI(
1ariable and run t!e
upgrade script.
e/port ()*+,RO1apps1oracle1edsadmin
cd '()*+,R
s3lplus 01 as sysdba2 G2$&01&startup&upgrade.s3l2
9!is step generates t!e log5ile 5ile
2+G01GstartupGupgradeG/'()C*+_S,-0.lst
C!ec# t!e 5ile 5or an. O(? errors i5 an.
error please contact t!e Pro%ect D8.
2 reate .).AUN
tablespace L 'IV#
I,ple,entation O&')C
Create t!e s.sau7
tablespace.
reate .).AUN
tablespace 0 ot!ers(D#V=
OA"= UA"= 6#$B)
I,ple,entation O&')C
Por 6,V7 ,mplementation
e,ecute the script to create ;F;12 T149:;!1C:
s3lplus 01 as sysdba2 GK0&01&create&sysau/.s3l
cd $!"#I$
create8sysau,8!$3#.sh
Por Others; +7V: O4B: (4B: )7RP= ,mplementation
cd $!"#I$
create8sysau,8others.sh
"elect t!e create s.sau7 scripts depend on
t!e en1iron'ent .
Use create2s-sau526$OD.s! s!ould be
used onl. during >I=: upgrade
4or ot!er en1iron'ents use
create2s-sau52ot!ers.s!
9!e idea is to !a1e "A"U; data5iles in t!e
sa'e 5iles.ste' 6!ere "A"9:* data5iles
resides. (un createGs.sau7Gtbs.s! to create
it.
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 21
&ote: 9!e script 5ails i5 t!e identi5ied
5iles.ste' 5ree space is less t!an 2 )8.
Contact Pro%ect D8
C!ec# t!e script ,0G01GcreateGs.sau7.sFl ?
t!e script s!ould !a1e t!e correct
IO(C>:G"ID 5or t!e database being
updated and !a1e t!e correct pat!
I5 t!e script is not pointing to t!e correct
O(C:G"ID a'end t!e correct
IO(C>:G"ID and t!e pat!.
9!is script produces a output 5ile
B,0G01GcreateGs.sau7G/%()C*+_S,-0.lstD
c!ec# t!is log 5ile 5or an. errors.
Please contact t!e Pro%ect D8 i5 an. error.
, (un t!e actual O(C>:
10g upgrade script@
The script performs the actual upgrade
nohup s3lplus 01 as sysdba2 GK2&01&catupgrd.s3l Q
9!is step generates t!e log 5ile
,2G01Gcatupgrd_/'()C*+_S,-0.lst
&oteC V#$) I%6O$"A&"
!ec4 t!e output file for an- errors (grep
O(? ,2S.lst) and if an- reported please
contact t!e 6roIect DAA.
"!ere /ill al/a-s be so,e generated as
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 22
t!e .lst file displa- co,,ent lines as /ell
0 so it ,a- be necessar- to eit!er eL,ail
t!e errors and+or allo/ access to t!e
.er*er to t!e 6roIect DAA.
6lease &ote. :sti'ated run ti'e 5or t!is part
o5 t!e (elease is 20 'inutes on s'aller
databases and up to 20 'inutes on >i1e
>*".
5. Post Upgrade Steps
.te
p
Action o,,and(s) &otes
1 C!ec# 5or in1alid
database ob%ects
s8lplus :+ as s-sdba;
s3l" GI1rdbms1admin1utlrp.s3l
and t!en rec!ec# 5or in1alid ob%ects:
s8lQ select obIect2na,e=obIect2t-pe=o/ner fro, dba2obIects /!ere status 7
0,?V46,+2C
s8lQ e5it
(ec!ec# 5or I$=>ID ob%ects@ i5 an. ob%ect is
listed ot!er t!an t!e ones in "tep 4. Please
contact D8.
:1en a5ter running t!e utlrp.sFl@ i5 t!ere are
still in1alid ob%ects once again rerun t!e
utlrp.sFl as s.sdba. 9!en i5 still an. contact
t!e Pro%ect D8.
2 "!utdo6n and
"tartup t!e
s3lplus 01 as sysdba2 GK7&01&shutdo.n&startup.s3l $ output 5ile
B,/G01Gs!utdo6nGstartupGNO$A'#2.IDO.l
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 2,
database in
restricted 'ode.
stD is created@ but .ou s!ould be able to see
on screen i5 an. errors reported@ s!ould see:
Database closed.
Database dis'ounted.
O(C>: instance s!ut do6n.
O(C>: instance started.
Database 'ounted.
Database opened.
, C!ec# t!e database
to 1eri5. all t!e
database
co'ponents are
upgraded
success5ull.
s3lplus 01 as sysdba2
select < from L'LersionC
which should return the followin/&
41NN:$
7777777777777777777777777777777777777777777777777777777777777777
3racle #atabase +)g :nterprise :dition $elease +).(.).0.) 7 .0bi
!9H;J9 $elease +).(.).0.) 7 !roduction
C3$: +).(.).0.) !roduction
TN; for I4MH1I2 $I;C ;ystemH.)))- @ersion +).(.).0.) 7 !roductio
N9;$T9 @ersion +).(.).0.) 7 !roductiony
select comp&name:Lersion:status from dba&registryC
which should return the followin/&
I5 eit!er o5 t!e Fueries does not return t!e
ro6s 'entioned in blue or t!e. re5er to +.2.0
oracle re5erences please contact D8
support.
=Ioption is Fueried to c!ec# an. e7isting
5eature is disabled during t!e upgrade. 9!is
output can be co'pared 6it! t!e output 6e
!ad in step 13.
C!ec# D8G(:)I"9(A to double c!ec# t!e
1ersion and co'ponents installed
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 24
C3M!8N1M: @:$;I3N ;T1T;
7777777777777777777777777777777777777777 777777777777777777777777
3racle #atabase Catalog @iews +).(.).0.) @19I#
3racle #atabase !ackages and Types +).(.).0.) @19I#
4 (eset
initO(C>:G"ID.or
a para'eters 6!ic!
6ere c!anged in
t!e Pre upgrade
"tep 2.
9!e original initIO(C>:G"ID.ora>.bak at end of name? saved in the
+UP,D-R now nee&s t. %e co$.are& with #.&ate& i!e in
0apps0oracle0ad'in0O$A'#2.ID0p5ile. 8est to do t!is on t6o sessions.
Aou 'a. need to 'a#e the following changes to the
HappsHoracleHadminHOR4567&8,+HpfileH initOR4567&8,+.ora
cd 0apps0oracle0ad'in0O$A'#2.IDHpfile
*i initOR4567&8,+.ora
s!ared2pool2si@e ? Teep it set to t!e ne6er 1alue
$ote C 5or t!e 5ollo6ing ones it is !ig!l. li#el. t!e. didnDt e7ist be5ore C so co''ent
9!e 1alues bac#ed up in Pre Upgrade "tep
3.
(eset t!ese 1alues as s!o6n in t!e ne7t
step.
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 22
out i5 necessar..
Ia*a2pool2si@e ? (eset to old 1alue (Co''ent out i5
pre1iousl. co''ented out or did not e7ist@))
a82t,2processes ? (eset to old 1alue (Co''ent out i5
pre1iousl. co''ented or did not e7ist@))
nls2lengt!2se,antics ? (eset to old 1alue (Co''ent out i5
pre1iousl. co''ented or did not e7ist@))
cluster2database ? (eset to old 1alue (Co''ent out i5
pre1iousl. co''ented or did not e7ist@))
session2,a52open2files ? (eset to old 1alue (Co''ent out i5
pre1iousl. co''ented or did not e7ist@)
save the init$3$1C9:8;I#.ora with the changes.
2 C!ange Co'patible
to 10.2.0
*i initOR4567&8,+.ora
K C3M!1TI49:L'.(.).).)
C3M!1TI49:L+).(.).).)
Modify the e,isting C3M!1TI49:
parameter to +).(.) in
init3$1C9:8;I#.ora
$ote: 9!e purpose o5 c!anging co'patible
in post?upgrade steps is t!at once t!e
para'eter is c!ange it cannot be re1erted.
-ence t!is is per5or'ed in post?upgrade
steps.
3 Create sp5ile sqlplus &H as sysdba* Createing sp5ile in t!e ne6 Oracle -o'e to
ensure t!e a'ended para'eters are in
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 23
;J9A create spfile from pfileE e55ect in sp5ile
/ Disable De5ault
sc!eduler %ob 5or
collecting sc!e'a
statistics
sqlplus &H as sysdba*
e,ec dbms8;cheduler.disable>M"1TG:$8;T1T;8C34M?E
e,itE
9!e de5ault 10g 'et!od o5 collecting
statisitics is disabled to #eep t!e traditional
'et!od o5 collecting statistics ali1e.
H *odi5. E( report
4reFuenc.
sqlplus &H as sysdba*
e,ec
dbms8workload8repository.modify8snapshot8settings>retentionLA+('
.)) 5 intervalLAD)?E
e,itE
9!is 'odi5ies t!e de5ault snaps!ot setting o5
collecting snaps!ot at a inter1al o5 1!our to
,0 'inutes and t!e de5ault retention 5ro' ,0
to +0 da.s
+ )rant Create
s.non.' pri1ilege
to 8"*"9:(@
IJ8*"9:(
sqlplus &H as sysdba*
;J9A grant create synonym to 14;M1;T:$5 IC4M1;T:$E
9!is step is a pre?reFuisite 5or >*",0 8uild
to 6or#.
102 C!ange t!e de5ault
tablespace 5or "A"
and "A"9:*
users@ O$>A i5
di55erent 5ro' "tep
1H.
@erify the tablespace name
s3lplus 01 as sysdba2
s3l" select username:default&tablespace&name from dba&users
.here
username in ;08A82:28A8B7M2=C
Change the tablespace name of &;F;* and &;F;T:M* to the
9!is step needs to be done onl. i5 di55erent
5ro' "tep 1H.
Please 1eri5. t!e sFl state'ent
1'_01_s(ste)_*ORACLE_SID.s+l.
Please c!ec# t!e log 5ile produced in step 20
12G02Gs.ste'G$3$1C9:8;I#.log.
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 2/
tablespace name in 12G02Gs.ste'G$3$1C9:8;I#.log as shown in the
e,ample
sqlA alter user sys default tablespace 0A1LES2ACE_,AMEE
sqlA alter user system default tablespace 0A1ELS2ACE_,AME E
&ote. On #,% !(ste)- this is .nli/el( to
need to 0e done- as !1! and !1!2EM are
alwa(s in the !1!2EM ta0lespa3e.
/11 "!utdo6n and
(estart t!e Oracle
Database.
s3lplus 01as sysdba2
shutdo.n immediate
startup
e/it
I5 5or an. reason t!e co''and does not
6or# please contact D8 support. "!ould
see on screen:
Database closed.
Database dismo(nted.
OA!"# instance sh(t do1n.
OA!"# instance started.
Database mo(nted.
Database opened.
H12 (estart t!e listener. cd 1"&.2AD%I&
lsnrctl start
+1, C!ec# t!e
per'issions on a
couple o5 ne6l.
installed >ibrar.
4iles used b. so'e
8atc! processes.
t t!e end o5 t!e release ensure t!at t!e per'issions on t!e ne6l. installed 5iles belo6
+apps+oracle+product+10.2.0+apps+oracle+product+10.2.0+db21+lib are as 5ollo6s (and
update i5 necessar.):
Lr/Lr/LrLL 1 oracle dba for libclnts!.a and libclntst10.a
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 2H
101
4
9o pre1ent users
ot!er t!an Oracle
(i.e. 9u7edo@ 8atc!
etc.) !a1ing
proble's accessing
t!e database a5ter
t!e upgrade run:
cd 1O$A'#2KO%#+install
c!ange6er,.s!
enter B)D 6!en pro'pted@
9!is s!ould c!ange t!e per'issions@
pre1enting users li#e tu7edo accessing t!e
database.
111
2
On 'IV# .IM#
s-ste,s
(6#$B.OA" and
'IV#) ? Update t!e
(*$ !ot and cold
bac#up scripts re?
P9- and
O(C>:G-O*:
1ariables.
$ot applicable to
D:=@ "9:"9 or
U9 en1iron'ents.
lso ensure t!at t!e (*$ !ot and cold bac#up scripts belo6 09"*0scripts director.
!a1e t!e P9- and O(C>:G-O*: updated to re5erence t!e ne6 oracle e.g.
cd 23SM2scripts
and t!en 1i t!e 5ile and update as 5ollo6s:
6A"K7+apps+oracle+product+10.2.0+apps+oracle+product+10.2.0+db21+binC
O$A'#2KO%#71RO$A'#2AA.#S+product+10.2.0+db21
i.e. t!e D+.2.0D a5ter +.2.0 re'o1ed 5ro' all re5erences.
On 'IV# O&') 7 1 link will also need to be created as follows so
that the $M1N backup can pick up the correct file for the
9anfree backups-
ln -s /usr/tivoli/tsm/client/oracle/bin64/libobk64.a /s.ace0
$ORACLE_HOME/lib/libobk.a 1A!! on one !ine2'
132 Update t!e ne6
glogin.sFl script 5or
ease o5 use o5 1i
co''ands in
sFlplus.
lso 6ort! c!ec#ing t!at t!e ne6l. installed glogin.sFl script used b. sFlplus belo6
2apps2oracle2prod4ct21%.2.%2apps2oracle2prod4ct21%.2.%2db_12s5lpl4s2admin loo#s
si'ilar to t!e one used pre1iousl. in t!e +.2.0 area@ i.e. .ou 'a. need to insert t!e line
BD#BI&#2#DI"O$7*iD as t!e last line o5 t!e 5ile
Aou !a1e no6 co'pleted t!e upgrade.
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page 2+
Oracle 10g (10.2.0.4) Database Upgrade Instruction: page ,0

Vous aimerez peut-être aussi