Professional Documents
Culture Documents
1159 115102 Upgradation
1159 115102 Upgradation
1159 115102 Upgradation
2MaintenancePackUpgradation
Maindocument:OracleApplicationsRelease11.5.10.2MaintenancePackInstallation
Instructions[ID316365.1]
Referabovedocumentforupgradation
ApplytheADMinipack:
[root@of27 ~]# su - oraprod
[oraprod@of27 ~]$ lsnrctl start PROD
[oraprod@of27 ~]$ sqlplus '/as sysdba'
SQL> startup
SQL>conn apps/apps
SQL> select PATCH_LEVEL from fnd_product_installations where PATCH_LEVEL like
'11i.AD%';
PATCH_LEVEL
-----------------------------11i.AD.H
Takethecurrentviewsnapshotusingadadmin
options:3,4,1,2,yes
NOTE:BeforeapplyingpatchescheckpermissionsandenvironmentandREADMEfileunder
patchdirectory
[root@of27~]#chmodR777/d01/patches/
4337683patchforADminipackI.2:
[applprod@of27 patches]$ cd 4337683/
[applprod@of27 4337683]$ adpatch
Your default directory is '/d01/applprod/prodappl'.
Is this the correct APPL_TOP [Yes] ? Enter
Filename [adpatch.log] : u4337683.log
You can be notified by email if a failure occurs.
Do you wish to activate this feature [No] ? Enter
Please enter the batchsize [1000] : enter
You are about to apply a patch to the installation of Oracle Applications
in your ORACLE database 'PROD'
using ORACLE executables in '/d01/applprod/prodora/8.0.6'.
Is this the correct database [Yes] ? Enter
Enter the password for your 'SYSTEM' ORACLE schema: manager
Enter the ORACLE password of Application Object Library [APPS] :apps
The default directory is [/d01/patches/4337683] : enter
Please enter the name of your AutoPatch driver file : u4337683.drv
Enterthenumberofparallelworkers[3]:4
SQL> conn apps/apps
Connected.
SQL> select PATCH_LEVEL from fnd_product_installations where PATCH_LEVEL like
'11i.AD%';
PATCH_LEVEL
-----------------------------11i.AD.I.2
7429271patchforADminipackI.7:
NOTE:IfuwanttoapplythispatchnoneedtoabovestepsI.enoneedtotakesnapshotandno
needtoapplyAD.I.2minipackdirectapply7429271patchifdoabovestepsalsonotaproblem
[applprod@of27 patches]$ cd 7429271/
[applprod@of27 7429271]$ vi README.txt
[applprod@of27 7429271]$ cd admin/
[applprod@of27 admin]$ cp adgrants.sql /tmp
[oraprod@of27 tmp]$ cd $ORACLE_HOME
[oraprod@of27 9.2.0]$ cd appsutil/
[oraprod@of27 appsutil]$ mkdir admin
[oraprod@of27 appsutil]$ cd admin
[oraprod@of27 admin]$ cp /tmp/adgrants.sql .
[oraprod@of27 admin]$ sqlplus '/as sysdba'
SQL> @adgrants.sql apps
[applprod@of27 7429271]$ adpatch options=hotpatch
The default directory is [/d01/patches/7429271] : enter
Please enter the name of your AutoPatch driver file : u7429271.drv
Enter the number of parallel workers [2] : 4
SQL> conn apps/apps
Connected.
SQL> select PATCH_LEVEL from fnd_product_installations where PATCH_LEVEL like
'11i.AD%';
PATCH_LEVEL
-----------------------------11i.AD.I.7
4238286patchforTUMSMP:
SQL> conn /as sysdba
Connected.
SQL> show parameter utl_file_dir
NAME
TYPE
VALUE
------------------------------------ ----------- -----------------------------utl_file_dir
string
/usr/tmp, /d01/applprod/proddb
/9.2.0/appsutil/outbound/PROD_
of27
[applprod@of27 patches]$ cd 4238286/
[applprod@of27 4238286]$ adpatch options=hotpatch
The default directory is [/d01/patches/4238286] : enter
Please enter the name of your AutoPatch driver file : u4238286.drv
Enter the number of parallel workers [2] : 4
[applprod@of27 4238286]$ cd $AD_TOP/patch/115/sql
[applprod@of27 sql]$ sqlplus apps/apps @adtums.sql
/d01/applprod/proddb/9.2.0/appsutil/outbound/PROD_of27
A report file called tumsmp.html will be created in the directory. This
directory path must have been listed in the UTL_FILE_DIR parameter of your
database.
[oraprod@of27 admin]$ cd /d01/applprod/proddb/9.2.0/appsutil/outbound/PROD_of27
[oraprod@of27 PROD_of27]$ ls
tumsmp.html
Checkperlversion(5.005),JRE(1.1.8),JDK(1.3.1),zip(2.3(orhigher)),unzip(5.52(orhigher))
8217898 patch:
[applprod@of27 8217898]$ unzip p8217898_11i_LINUX.zip
[applprod@of27 patches]$ cd 8217898/
[applprod@of27 8217898]$ adpatch options=hotpatch
Please enter the name of your AutoPatch driver file : u8217898.drv
SQL> select BUG_ID,BUG_NUMBER from ad_bugs where BUG_NUMBER='8217898';
BUG_ID BUG_NUMBER
---------- -----------------------------107966 8217898
[applprod@of27 8217898]$ $ADPERLPRG $AD_TOP/bin/admkappsutil.pl
Starting the generation of appsutil.zip
Log file located at /d01/applprod/prodappl/admin/log/MakeAppsUtil_09060919.log
output located at /d01/applprod/prodappl/admin/out/appsutil.zip
MakeAppsUtil completed successfully.
[applprod@of27 8217898]$ cd $APPL_TOP/admin/out
[applprod@of27 out]$ ls -ltr appsutil.zip
-rw-r--r-- 1 applprod dba 2884003 Sep 6 09:19 appsutil.zip
[applprod@of27 out]$ cp appsutil.zip /tmp
[oraprod@of27 ~]$ cp /tmp/appsutil.zip $ORACLE_HOME
[oraprod@of27 9.2.0]$ cp -r appsutil appsutil.bkp
[oraprod@of27 9.2.0]$ unzip -o appsutil.zip
[oraprod@of27 9.2.0]$ cd appsutil/scripts/*
[oraprod@of27 PROD_of27]$ ./adautocfg.sh
Enter the APPS user password:apps
[applprod@of27 out]$ cd $IAS_ORACLE_HOME
[applprod@of27 out]$ cd /d01/applprod/prodora/iAS/Apache/Apache/
[applprod@of27 Apache]$ cd logs
[applprod@of27 logs]$ ls
access_log access_log_pls error_log error_log_pls
3996414 patch:
[applprod@of27 3996414]$ adadmin options=hotpatch
u3996414.drv
SQL> select BUG_ID,BUG_NUMBER from ad_bugs where BUG_NUMBER='3996414';
BUG_ID BUG_NUMBER
---------- -----------------------------108605 3996414
[applprod@of27 3996414]$ $ADPERLPRG $AD_TOP/bin/admkappsutil.pl
Starting the generation of appsutil.zip
Log file located at /d01/applprod/prodappl/admin/log/MakeAppsUtil_09061223.log
output located at /d01/applprod/prodappl/admin/out/appsutil.zip
MakeAppsUtil completed successfully.
[applprod@of27 out]$ cp -r appsutil.zip /tmp
[oraprod@of27 9.2.0]$ cp -r /tmp/appsutil.zip $ORACLE_HOME
[oraprod@of27 9.2.0]$ unzip -o appsutil.zip
[oraprod@of27 9.2.0]$ cd appsutil/scripts/*
under source
path:/d01/patches/2376472/stage/product.jar -----browse the location
under destination
name:apps9i_prod ----select under dropdown box - > click next
Click install
Click exit
Click yes
Click install
SQL> startup
[oraprod@of27 dbs]$ cd /d01/patches/3835781/
[oraprod@of27 3835781]$ ./patch.csh -m sysobjects -o $ORACLE_HOME -c PROD -p welcome
[oraprod@of27 3835781]$ lsnrctl start PROD
[oraprod@of27 3835781]$ ./patch.csh -m sysobjects -o $ORACLE_HOME -c PROD -p welcome
Welcome to mod_plsql/OWA Patch
==============================
Patch Started at Tue Sep 7 15:56:57 IST 2010
...Installing OWA packages using script patload.sql
Patch Ended at Tue Sep 7 15:57:06 IST 2010
**Patch Completed Successfully **.
Scan log /d01/patches/3835781/patch.log for any errors.
[applprod@of27 dbs]$ cd /d01/patches/3835781/
[applprod@of27 3835781]$ ./patch.csh -m midtier -o $IAS_ORACLE_HOME
/d01/patches/3835781/patch.log: Permission denied.
[root@of27 ~]# chmod -R 777 /d01/patches/3835781/patch.log
[applprod@of27 3835781]$ ./patch.csh -m midtier -o $IAS_ORACLE_HOME
Script Failed
------------Error : Backup directory /d01/applprod/prodora/iAS/Apache/modplsql/prepatch already exists
Cause : The patch detected a previous backup directory
Action : Remove or archive the existing backup directory
[applprod@of27 3835781]$ cd $IAS_ORACLE_HOME
[applprod@of27 iAS]$ cd Apache/modplsql/
[applprod@of27 modplsql]$ ls
META-INF bin cache cfg log owa prepatch
[applprod@of27 modplsql]$ mv prepatch/ prepatch.bkp
[applprod@of27 modplsql]$ cd /d01/patches/3835781/
[applprod@of27 3835781]$ ./patch.csh -m midtier -o $IAS_ORACLE_HOME
Welcome to mod_plsql/OWA Patch
==============================
Patch Started at Tue Sep 7 16:02:10 IST 2010
Backup done for files to /d01/applprod/prodora/iAS/Apache/modplsql/prepatch
...Installing mod_plsql patch
Successful copy to /d01/applprod/prodora/iAS/Apache/modplsql/*
Patch Ended at Tue Sep 7 16:02:12 IST 2010
**Patch Completed Successfully **.
Scan log /d01/patches/3835781/patch.log for any errors.
7410076 patch for jinitiator upgrade:
[applprod@of27 7410076]$ unzip p7410076_131_GENERIC.zip
[applprod@of27 7410076]$ ls -ltr
total 8028
optional_step_end
change same lines in apps context file:
add below two lines to af_classpath
$AF_JRE_TOP/jre/lib/rt.jar
$AF_JRE_TOP/jre/lib/charsets.jar
[applprod@of27 admin]$ vi PROD_of27.xml
<AF_CLASSPATH oa_var="s_adovar_afclasspath" osd="unix">$AF_JRE_TOP/lib/tools.jar:
$AF_JRE_TOP/lib/dt.jar:$JAVA_TOP/appsborg2.zip:$ORACLE_HOME/forms60/java:$JAVA_TOP:
$AF_JRE_TOP/jre/lib/rt.jar:$AF_JRE_TOP/jre/lib/charsets.jar</AF_CLASSPATH>
:wq!
run autoconfig:
[applprod@of27 admin]$ cd $COMMON_TOP/admin/scripts/*
[applprod@of27 PROD_of27]$ ./adautocfg.sh
Enter the APPS user password:apps
error accuered: in autoconfig apply below patch this will be resolve
4201222 patch:
[applprod@of27 ias_patches]$ unzip p4201222_11i_GENERIC.zip
[applprod@of27 ias_patches]$ cd 4201222/
[applprod@of27 4201222]$ adpatch options=hotpatch
u4201222.drv
[applprod@of27 ias_patches]$ cd $COMMON_TOP/admin/scripts/*
[applprod@of27 PROD_of27]$ ./adautocfg.sh
Enter the APPS user password: apps
[applprod@of27 ~]$ perl /d01/applprod/prodappl/ad/11.5.0/bin/adjavamig.pl
java=$AF_JRE_TOP contextfile=/d01/applprod/prodappl/admin/PROD_of27.xml
Post Migration Steps
1. Run Autoconfig
2. Source the environment before running AD utilities
The logfile for this session is located at:
/d01/applprod/prodappl/admin/PROD_of27/09081137/adjavamig.log
[applprod@of27 3996414]$ cd $COMMON_TOP/admin/scripts/*
[applprod@of27 PROD_of27]$ ./adautocfg.sh
[applprod@of27 PROD_of27]$ $ADPERLPRG $FND_TOP/patch/115/bin/TXKScript.pl
-script=$FND_TOP/patch/115/bin/txkVal11510MP.pl -txktop=$APPLTMP -appspass=apps
-outfile=$APPLTMP/txkVal11510MP.html
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** STDOUT =
/d01/applprod/prodcomn/rgf/PROD_of27/TXK/txkVal11510MP_Wed_Sep_8_11_44_20_2010_stdout.l
og
Reportfile /d01/applprod/prodcomn/temp/txkVal11510MP.html generated successfully.
DB patches for database upgradation (9.2.0.3 to 9.2.0.8):
[root@of27 db_patches]# chmod -R 777 .
4547809 patch:
[root@of27 db_patches]# unzip p4547809_92080_LINUX.zip
[oraprod@of27 9.2.0]$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:
$ORACLE_HOME/lib:$LD_LIBRARY_PATH
[oraprod@of27 9.2.0]$ cd /d01/patches/db_patches/Disk1/
[oraprod@of27 Disk1]$ ./runInstaller
Welcome screen - > click next
Click install
Clcik exit
Clcik yes
Apply 3180164 patch. To configure database for new products and new requirements
[oraprod@of27 patches]$ unzip p3180164_11i_LINUX.zip
[oraprod@of27 patches]$ cd /d01/applprod/patches/3180164
[oraprod@of27 3180164]$ cd ad/patch/115/sql/
[oraprod@of27 sql]$ sqlplus '/ as sysdba'
SQL> conn apps/apps
SQL>@adgnofa.sql ALL
--- it will generate 2 files adcrtbsp.sql,adruncts.sql
[oraprod@of27 sql]$ vi adcrtbsp.sql ---- replace ?dbf with /d01/oraprod/proddata for every
occurrence of create tablespace we need to modify
[applprod@of27 sql]$ pwd
/d01/applprod/patches/3180164/ad/patch/115/sql
[applprod@of27 sql]$ sqlplus system/manager @adruncts.sql
[applprod@of27 ~]$ cd patches/
[applprod@of27 patches]$ cd 3180164/
[applprod@of27 3180164]$ adpatch options=hotpatch
Filename [adpatch.log] : u3180164.log
Enter the directory where your Oracle Applications patch has been unloaded
The default directory is [/d01/applprod/patches/3180164] : enter
Please enter the name of your AutoPatch driver file : u3180164.drv
3215116 patch for Oracle Services:
[applprod@of27 patches]$ unzip p3215116_11i_GENERIC.zip
[applprod@of27 patches]$ cd 3215116/
[applprod@of27 3215116]$ vi README.txt
[applprod@of27 3215116]$ ls
README.html b3215116.ldt f3215116.ldt u3215116.drv
README.txt cs
marker1.txt
[applprod@of27 3215116]$ adpatch options=hotpatch
Filename [adpatch.log] : u3215116.log
Enter the directory where your Oracle Applications patch has been unloaded
The default directory is [/d01/applprod/patches/3215116] :enter
Please enter the name of your AutoPatch driver file : u3215116.drv
Enter the number of parallel workers [2] : 4
3872242 patch for audit trail pack:
[applprod@of27 patches]$ unzip p3872242_11i_GENERIC.zip
[applprod@of27 patches]$ cd 3872242/
[applprod@of27 3872242]$ adpatch options=hotpatch
u3872242.drv
Maintainence Pack:
stop all apps services
database and db listener should be up and running
3480000 patch:
APPLICATIONS_SYSTEM_NAME
--------------------------------------------PROD
***************************************END***************************************