White Paper - IBM
Transcript of White Paper - IBM
. . . . . . . .
© Copyright IBM Corporation, 2014. All Rights Reserved. All trademarks or registered trademarks mentioned herein are the property of their respective holders
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1
Vishal Agarwal Shashi Ranjan
IBM Oracle International Competency Center
June 2014
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
Table of contents Abstract........................................................................................................................................1 Prerequisites ...............................................................................................................................1 Introduction .................................................................................................................................1 Oracle E-Business Suite 12.1.3 upgrade ..................................................................................2
Oracle E-Business Suite 12.1.1 installation............................................................................................. 2 Upgrade Oracle EBS database from 11.1.0.7 to 11.2.0.3 ....................................................................... 3
4
10
13
19
2323
23
23
23
23
24
24
24
24
25
26
27
Upgrade the EBS database from 11.1.0.7 to 11.2.0.3 ...................................................... Upgrade EBS application server to 10.1.3.5 ......................................................................................... Upgrade Java......................................................................................................................................... Apply EBS 12.1.3 RUP ..........................................................................................................................
Appendix 1................................................................................................................................. Starting applications tier services .......................................................................................................... Shutting down application tier services.................................................................................................. Running adautocfg.sh on applications tier............................................................................................. Running adautocfg.sh on database tier ................................................................................................. Applying patches using adpatch ............................................................................................................ Applying DB patches.............................................................................................................................. Shutdown database tier ......................................................................................................................... Startup database tier.............................................................................................................................. Running Autoconfig on applications tier ................................................................................................ Applications tier maintenance mode......................................................................................................
About the authors ..................................................................................................................... Trademarks and special notices..............................................................................................
1
Abstract This white paper introduces the process of upgrading Oracle E-Business Suite (EBS) from 12.1.1 to 12.1.3 on AIX® 7.1. The Oracle Rapidwiz installer allows installation of EBS 12.1.1 Database and Application tiers on a single or multi-node configuration. An upgrade to EBS 12.1.3 must be done by upgrading the two tiers and services on an existing EBS 12.1.1 configuration. This document outlines the upgrade process and provides tips and hints to help make the process simpler and more predictable.
Prerequisites The document assumes a working knowledge of Oracle E-Business Suite.
Introduction Oracle E-Business Suite primarily consists of three tiers:
Database Tier Application Tier Desktop Tier
The database tier holds the application metadata along with the transactional data. The database tier could be a single or multi-node Oracle RAC setup. With the default EBS 12c RapidWiz installation, Oracle Database 11g Release 1 11.1.0.7 gets installed.
The application tier consists of two Oracle Application Server instances with 2 different versions. Oracle Application Server 10.1.2 runs the Oracle Web Services and renders the HTML web pages while Oracle Application Server 10.1.3 hosts and services the Oracle Forms and Reports. These two application server
instances share the file system. The application tier can as well be single node or multi-node providing seamless scalability to Oracle EBS.
The desktop tier in Oracle EBS runs in compatible browsers like Mozilla Firefox or Internet Explorer. The
EBS end user interface is a combination of JSP/HTML pages and Applet based Oracle Forms. Depending upon the module selected, the respective pages are launched. It is mandatory to have compatible version of Sun J2SE Java™ plug-in enabled in the browser to be able to run Oracle E-
Business Suite Forms.
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
2
Figure 1. Oracle E-Business Suite 12.1 hihg-level architecture
Oracle E-Business Suite 12.1.3 upgrade In this document, we provide instructions, tips and guidelines for a 2-node configuration (i.e. database and app tiers on different nodes) on AIX 7.1 TL1.
The following configuration settings were used in this whitepaper; wherever not mentioned, use the default settings such as users, passwords, service ports etc.
Users/Groups
Database tier user/group: oracle/dba
Applications tier user/group: applmgr/dba
Installation base locations
Database tier: /d01
Applications tier: /d02
Oracle E-Business Suite 12.1.1 installation
Detailed instructions about Oracle EBS 12.1.1 installation on AIX can be obtained from the whitepaper
titled Oracle E-Business Suite Release 12 Installation and Tips for IBM AIX - Erik Salander, Erik Kane (Mar 2009).
Also, refer to the Oracle Support Note: Oracle E-Business Suite Installation and Upgrade Notes Release
12 (12.1.1) for IBM AIX on Power Systems (64-bit) (Doc ID: 761569.1)
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
3
Hint: Certain EBS 12.1.3 patches require latest filesets to be available. So, on AIX 7.1 we recommend upgrading to at least 7100-01-08-1334.
Hint: Apply the Rapid Install startCD patch 12.1.1.13 or later – patch 11072566.
After the installation, please make sure that there are at least three Oracle Home entries in the inventory. The steps to check this are as follows:
1. Login to the node where the database server is running. The inventory is typically maintained in a directory parallel to the directory where database is installed.
2. Navigate to the directory .../oraInventory/ContentsXML/ and open the file inventory.xml.
3. This file should have at least three entries corresponding to the different Oracle Homes for database and the two application server homes. E.g: <INVENTORY>
<VERSION_INFO> <SAVED_WITH>10.2.0.1.0</SAVED_WITH> <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO> <HOME_LIST> <HOME NAME="TEST_DB__oracle_db_tech_st_10_2_0" LOC="/oracle/db/tech_st/10.2.0"
TYPE="O" IDX="1" REMOVED="T"/> <HOME NAME="TEST_WEBOH__oracle_apps_tech_st_10_1_3" LOC="/oracle/apps/tech_st/10.1.3" TYPE="O" IDX="2"/>
<HOME NAME="TEST_TOOLS__oracle_apps_tech_st_10_1_2" LOC="/oracle/apps/tech_st/10.1.2" TYPE="O" IDX="3"/> <HOME NAME="TEST_DB112__oracle_db_tech_st_11_2_0" LOC="/oracle/db/tech_st/11.2.0"
TYPE="O" IDX="4"/> 4. If there are less than three entries, please follow the steps below to add the respective Oracle
homes:
Run the command below with correct parameters to make the Oracle Home entries:
<OUI_Directory>$./runInstaller -ignoreSysPrereqs -silent -attachHome –invPtrLoc <OraInst.loc_Directory> ORACLE_HOME=”<Oracle_Home_Dir>”
ORACLE_HOME_NAME=<Oracle_Home_Name>
For example:
icc-107 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.3/oui/bin$ ./runInstaller -ignoreSysPrereqs -silent -
attachHome -invPtrLoc /etc/oraInst.loc ORACLE_HOME="/d02/oracle/VIS/apps/tech_st/10.1.3" ORACLE_HOME_NAME="VIS_TOOLS__d02_oracle_VIS_apps_tech_st_10_1_3"
Upgrade Oracle EBS database from 11.1.0.7 to 11.2.0.3
Refer to the Oracle Support Note: Interoperability Notes EBS 12.0 and 12.1 with Database 11gR2 (Doc
ID 1058763.1)
Pre-upgrade
Prepare the applications tier for the database upgrade:
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
4
1. Login as the applications tier user (e.g. applmgr). 2. Shutdown applications tier but keep database tier up and running.
3. Put the applications tier in maintenance mode using adadmin. 4. Apply the following patches using adpatch:
a. 9062910
b. 8919489 c. 9583541 d. 9868229
e. 11071569 f. 10163753 (apply patch using adpatch preinstall=y)
5. Apply following AutoConfig patches:
a. 9738085 b. 9852070 c. 12686610
6. Make appsutil.zip on the applications tier and copy it on the database tier. 7. Execute adautocfg first on the database tier and then the applications tier. 8. Take the applications tier out of maintenance mode.
9. Restart applications tier and validate Oracle EBS operations.
Upgrade the EBS database from 11.1.0.7 to 11.2.0.3
1. Shutdown the application tier services and then the existing Oracle Database 11g Release 1
instance. 2. Install Oracle Database11g Release 2 database software in a new $ORACLE_HOME (in this
whitepaper, Oracle Database 11g Release 2 software is installed under $ORACLE_BASE:
/d01/ora). 3. Post-installation, set the following environment variables in your oracle profile:
ORACLE_BASE=/d01/ora
ORACLE_HOME=/d01/ora/product/11.2.0/dbhome_1 PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/perl/bin:$ORACLE_HOME/bin:$PATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
PERL5LIB=$ORACLE_HOME/perl/lib/5.10.0:$ORACLE_HOME/perl/lib/site_perl/5.10.0:$PERL5LIB
4. Install Oracle Database 11g Release 2 examples database, which can be obtained from:
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-aixsoft-092688.html.
5. Apply the NLS update:
a. $ /d01/ora/product/11.2.0/dbhome_1/perl/bin/perl /d01/ora/product/11.2.0/dbhome_1/nls/data/old/cr9idata.pl
b. Set the following environment variable in oracle user .profile and in current session:
ORA_NLS10=/d01/ora/product/11.2.0/dbhome_1/nls/data/9idata 6. Apply following database patches (in the specified order) using OPatch
a. 4247037
b. 9858539 c. 12942119 d. 12960302
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
5
e. 12985184 f. 13001379
g. 13004894 h. 13258936 i. 13366268
7. Create following /etc/oratab entry: VIS:/d01/oracle/VIS/db/tech_st/11.1.0:N:
8. Startup the Oracle Database 11g Release 1 database instance and run the pre-upgrade utility
(refer to Oracle support note: 884522.1). a. Download and run the right version of utlu112i_5.sql. Subsequently, review procedure output
and make appropriate changes. Example:
i. ALTER DATABASE DATAFILE '/d01/oracle/VIS/db/apps_st/data/sysaux01.dbf' RESIZE 1024M;
ii. Execute $ORACLE_HOME/rdbms/admin/@utlrp.sql to recompile invalid objects
iii. Execute following procedure from the 11gR2 Oracle home (/d01/ora/product/11.2.0/dbhome_1/rdbms/admin): SQL> @wkremov.sql;
iv. ALTER USER SYSTEM DEFAULT TABLESPACE SYSTEM; v. Drop DMSYS schema (if exists and noted in the utlu112i_5.sql log):
SQL> DROP USER dmsys CASCADE;
SQL> DELETE FROM sys.exppkgact$ WHERE schema = 'DMSYS'; SQL> commit; SQL> SELECT COUNT(*) FROM dba_synonyms WHERE table_owner = 'DMSYS';
If result is non-zero, execute the following: SQL> set head off SQL> spool drop_dmsys_synonyms.sql
SQL> SELECT 'Drop public synonym ' ||'"'||SYNONYM_NAME||'";' FROM DBA_SYNONYMS WHERE TABLE_OWNER = 'DMSYS'; SQL> spool off
SQL> @drop_dmsys_synonyms.sql SQL> commit; SQL> SELECT COUNT(*) FROM dba_synonyms WHERE table_owner = 'DMSYS';
SQL> EXEC dbms_stats.gather_dictionary_stats; SQL> shutdown immediate;
vi. Execute utlu112i_5.sql again, until all errors are taken care of.
9. Upgrade database using DBUA. Hint: Start the upgrade in a VNC session especially since the upgrade may take time. a. Before starting the upgrade, execute the following statements on the existing Oracle
Database 11g Release 1 database: SQL> PURGE DBA_RECYCLEBIN; SQL> shutdown immediate;
Hint: In case EMCA configuration fails during DBUA, do the following: i. Create password file under /d01/ora/product/11.2.0/dbhome_1/dbs
oracle188 EBS-DB /d01/ora/product/11.2.0/dbhome_1/dbs$ orapwd file=orapwVIS
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
6
entries=10 Enter password for SYS: oracle
ii. Execute EMCA configuration oracle188 EBS-DB /d01/ora/product/11.2.0/dbhome_1/dbs$ emca -config dbcontrol db
10. Add following parameters to 11gR2 db initVIS.ora file:
a. _system_trig_enabled = true b. _trace_files_public = TRUE c. _sort_elimination_cost_ratio =5 #MP
d. _like_with_bind_as_equality = TRUE #MP e. _fast_full_scan_enabled = FALSE #MP f. _b_tree_bitmap_plans = FALSE #MP
g. _optimizer_autostats_job=false # Turning off auto statistics 11. Carry out the patches post install activities:
a. Shutdown database and listener.
b. Export ORACLE_SID=VIS c. Startup database as sysdba d. Execute post patch install procedures.
i. Patch 4247037: None ii. Patch 9858539
cd $ORACLE_HOME/rdbms/admin
sqlplus / as sysdba @@catnomtt.sql @@catnomta.sql
@@dbmsmeta.sql @@dbmsmeti.sql @@dbmsmetu.sql
@@dbmsmetb.sql @@dbmsmetd.sql @@dbmsmet2.sql
@@catmeta.sql @@prvtmeta.plb @@prvtmeti.plb
@@prvtmetu.plb @@prvtmetb.plb @@prvtmetd.plb
@@prvtmet2.plb @@catmet2.sql -- recompile dbms_metadata_int to enable the diffing code
alter package dbms_metadata_int compile plsql_ccflags = 'ku$xml_enabled:true'; -- recompile dbms_metadata_util to enable the xmlschema load code alter package dbms_metadata_util compile plsql_ccflags = 'ku$xml_enabled:true';
iii. Patch 12942119: None iv. Patch 12960302: None v. Patch 12985184: None
vi. Patch 13001379: Don't apply
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
7
vii. Patch 13004894: None viii. Patch 13258936
cd $ORACLE_HOME/ctx/admin/ctxpatch sqlplus / as sysdba @@ctxpatch11203.sql
ix. Patch 13366268: Don't apply 12. startup db in upgrade mode
sqlplus / as sysdba
SQL> startup upgrade; 13. patch 4247037
a. Run following procedures as sysdba
cd $ORACLE_HOME @md/admin/catmgdidcode.sql; @md/support/patchset_mgdsys_validity.sql
b. Review spool & if there are any invalid objects: run $ORACLE_HOME/rdbms/admin/@utlrp.sql
14. Execute adgrants.sql and certain additional scripts
a. cp -fr /d01/oracle/VIS/db/tech_st/11.1.0/network/admin/VIS_oracle188 /d01/ora/product/11.2.0/dbhome_1/network/admin
b. Update files under 11gR2 $ORACLE_HOME/network/admin/VIS_oracle188 to contain
references to new ORACLE_HOME directory. c. export TNS_ADMIN=$ORACLE_HOME/network/admin/VIS_oracle188 d. Start DB listener service lsnrctl start VIS
e. Copy /d02/oracle/VIS/apps/apps_st/appl/admin/adgrants.sql from applications node to database node and set permissions for oracle database user.
f. Restart DB in regular mode (not upgrade).
g. Run adgrants.sql: sqlplus '/ as sysdba' @adgrants.sql APPLSYS
h. Copy adctxprv.sql from apps tier
(/d02/oracle/VIS/apps/apps_st/appl/ad/12.0.0/patch/115/sql/adctxprv.sql ) to database tier and run: sqlplus apps/apps @adctxprv.sql manager CTXSYS;
sqlplus / as sysdba SQL> exec ctxsys.ctx_adm.set_parameter('file_access_role', 'public');
i. copy wfaqupfix.sql from apps tier
(/d02/oracle/VIS/apps/apps_st/appl/ad/12.0.0/patch/115/sql/wfaqupfix.sql) to database tier and run: sqlplus apps/apps @wfaqupfix.sql applsys apps
15. Run adconfig a. Prepare environment for creation of new context file for database tier:
i. Copy 2.3 or 2.32 version of Info-Zip's zip utility into the execution path (2.32 is available
in $ORACLE_HOME/bin/ for 11gR1). ii. On the applications tier, run the admkappsutil.pl script and copy the appsutil.zip file on
the database tier
$ cd /d02/oracle/VIS/apps/apps_st/appl
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
8
$ . ./APPSVIS_oracle187.env $ cd /d02/oracle/VIS/apps/apps_st/appl/ad/12.0.0/bin
$ perl admkappsutil.pl $ scp /d02/oracle/VIS/inst/apps/VIS_oracle187/admin/out/appsutil.zip
root@oracle188:/d01/ora/product/11.2.0/dbhome_1 iii. Go to 11gR2 $ORACLE_HOME iv. Change permissions for this appsutil.zip file to oracle user.
v. unzip -o appsutil.zip vi. Install JRE 6.0 (IBM JRE-32 bit non-SMIT version) under $ORACLE_HOME/appsutil/
a. executing /tmp/jre632redist.6.0.0.425.bin will install JRE under directory say
/tmp/ibm-java-ppc-60 b. oracle188 DB /tmp/ibm-java-ppc-60# cp -fr jre
/d01/ora/product/11.2.0/dbhome_1/appsutil/
c. oracle188 DB /tmp/ibm-java-ppc-60# chown -R oracle:dba /d01/ora/product/11.2.0/dbhome_1/appsutil
d. validate installation:
oracle188 EBS-DB /d01/ora/product/11.2.0/dbhome_1/appsutil/jre/bin$ ./java –version java version "1.6.0"
Java(TM) SE Runtime Environment (build pap3260sr14-20130705_01(SR14)) IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc-32 jvmap3260sr14-
20130704_155156 (JIT enabled, AOT enabled) J9VM - 20130704_155156 JIT - r9_20130517_38390
GC - GA24_Java6_SR14_20130704_1138_B155156) JCL - 20130618_01
b. Create a new context file.
i. Start VNC server on the database node. ii. Run adbldxml.pl script
oracle188 EBS-DB /d01/ora/product/11.2.0/dbhome_1/appsutil/bin$ perl ./adbldxml.pl
Starting context file generation for db tier.. Using JVM from /d01/ora/product/11.2.0/dbhome_1/jdk/jre/bin/java to execute java programs..
APPS Password: apps ... Enter the value for Display Variable: oracle188:1.0
The context file has been created at: /d01/ora/product/11.2.0/dbhome_1/appsutil/VIS_oracle188.xml
iii. Check configuration:
oracle188 EBS-DB /d01/ora/product/11.2.0/dbhome_1/appsutil/bin$ ./adchkcfg.sh contextfile=/d01/ora/product/11.2.0/dbhome_1/appsutil/VIS_oracle188.xml Enter the APPS password: apps
AutoConfig is running in test mode and building diffs...
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
9
... Using Context file:
/d01/ora/product/11.2.0/dbhome_1/appsutil/out/VIS_oracle188/09110241/VIS_oracle188.xml
c. Run adconfig on the database tier
$cd /d01/ora/product/11.2.0/dbhome_1/appsutil/scripts/VIS_oracle188 $./adconfig.sh contextfile=/d01/ora/product/11.2.0/dbhome_1/appsutil/VIS_oracle188.xml Enter the APPS user password: apps
... AutoConfig completed successfully.
d. Run adconfig on the applications tier:
i. copy 2.3 zip into the PATH on Apps node and then run $ cd /d02/oracle/VIS/apps/apps_st/appl/ad/12.0.0/bin $ ./adchkcfg.sh
contextfile=../../../../../../inst/apps/VIS_oracle187/appl/admin/VIS_oracle187.xml Enter the APPS password: apps ...
AutoConfig completed successfully. ii. run adautoconfig
oracle187 EBS-APP /d02/oracle/VIS/inst/apps/VIS_oracle187/admin/scripts$
./adautocfg.sh Enter the APPS user password: apps
16. Apply post-upgrade ECX patch on Apps tier.
a. Put the applications tier in maintenance mode using adadmin b. Install patch 9151516. c. Take the applications tier out of maintenance mode.
17. Gather stats for SYS Schema on the database tier. a. copy adstats.sql from apps tier to DB tier and execute
oracle187 EBS-APP /d02/oracle/VIS/apps/apps_st/appl/admin$ scp adstats.sql
root@oracle188:/home/oracle/ oracle188 EBS-DB /home/oracle$ sqlplus / as sysdba ...
SQL> alter system enable restricted session; SQL> @adstats.sql; SQL> alter system disable restricted session;
SQL> quit; 18. Re-create grants and synonyms on applications tier
a. Run adadmin and select “AD Administration Main Menu”
b. Select “Maintain Applications Database Entities menu” c. Select “Re-create grants and synonyms for APPS schema”
19. Restart application tier services.
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
10
Upgrade EBS application server to 10.1.3.5
Refer to the Oracle Support Note: Upgrading to the Latest OracleAS 10g 10.1.3.x Patch Set in Oracle E-
Business Suite Release 12 (Doc ID 454811.1).
On the applications tier, carry out the following steps as the applications tier user (default: applmgr):
1. Set 10.1.3 ORACLE_HOME in current session oracle187 EBS-APP /home/applmgr$.
/d02/oracle/VIS/inst/apps/VIS_oracle187/ora/10.1.3/VIS_oracle187.env oracle187 EBS-APP /home/applmgr$ echo $ORACLE_HOME /d02/oracle/VIS/apps/tech_st/10.1.3
2. Remove file access permission for 10.1.3 ORACLE_HOME for other OS users oracle187 EBS-APP /d02/oracle/VIS/inst/apps/VIS_oracle187/ora/10.1.3$ chmod -R go-rwx $ORACLE_HOME
3. Add ant/bin to $PATH oracle187 EBS-APP /home/applmgr$ export PATH=$PATH:$ORACLE_HOME/ant/bin
4. Re-build inventory
Refer to the Oracle Support Note: R12.0 / R12.1 : How To Create, Update or Rebuild The Central Inventory For Oracle Applications E-Business Suite (Doc ID 742477.1)
Hint: ensure swap has at least 2G and /tmp has at least 1G available 5. Backup 10.1.3 $ORACLE_HOME, oraInventory, etc.
NOTE: Ensure enough disk space is available to store backup
oracle187 EBS-APP /d02/oracle$ tar cvf oraInventory.tar /d02/oracle/VIS/apps/tech_st/10.1.3/ oracle187 EBS-APP /d02/oracle$ tar cvf oraInventory.tar oraInventory/ oracle187 EBS-APP /d02/oracle$ cp /etc/oraInst.loc ./oraInst.loc.orig
6. Upgrade OPatch to at least 1.0.0.0.58 a. Check existing OPatch version
oracle187 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.3/OPatch$ opatch version
Oracle Interim Patch Installer version 1.0.0.0.57 ... OPatch Version: 1.0.0.0.57
b. Download right OPatch patch (choose 10.1.0.0.0 release) c. Apply patch by simply unziping in the right place
oracle187 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.3$ mv OPatch/ OPatch.orig
oracle187 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.3$ mv /tmp/p6880880_101000_AIX64-5L.zip . oracle187 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.3$ unzip p6880880_101000_AIX64-
5L.zip 7. Apply application patches
a. Patch p8626084
i. Unzip p8626084_101350_AIX64-5L.zip into /tmp/p8626084 and give the directory write permissions recursively.
ii. cp Disk1/stage/Patches/oracle.as.j2ee.top/10.1.3.5.0/1/DataFiles/other.jar
Disk1/stage/Patches/oracle.as.j2ee.top/10.1.3.5.0/1/DataFiles/other.jar.pre8920270
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
11
b. p8920270 i. Unzip p8920270_101350_AIX64-5L.zip /tmp/p8920270
ii. cp other.jar /tmp/p8626084/Disk1/stage/Patches/oracle.as.j2ee.top/10.1.3.5.0/1/DataFiles c. Update following scripts
i. Add following lines in /d02/oracle/VIS/apps/tech_st/10.1.3/root.sh after the "$CHMOD -R
g-w $ORACLE_HOME" line $CHMOD go+r $ORACLE_HOME/Apache/Apache/libexec/*.so $CHMOD go+r $ORACLE_HOME/Apache/modplsql
ii. Change following lines in /d02/oracle/VIS/apps/tech_st/10.1.3/root.sh: ORACLE_HOME=/data1/R12/ab/apps/XB9R1211/apps/tech_st/10.1.3 ORACLE_OWNER=porting
LBIN=/usr/local/bin /data1/R12/ab/apps/XB9R1211/apps/tech_st/10.1.3/Apache/Apache/bin/root_sh_append.sh
$CHMOD -R go-rwx $ORACLE_HOME $CHMOD -R o+rx $ORACLE_HOME/jdk $CHMOD 6750 $ORACLE_HOME/Apache/Apache/bin/ssomigrate
chmod -R go-rwx /data1/R12/ab/apps/XB9R1211/apps/tech_st/10.1.3 chmod -R o+rx /data1/R12/ab/apps/XB9R1211/apps/tech_st/10.1.3/jdk chmod go+r /data1/R12/ab/apps/XB9R1211/apps/tech_st/10.1.3/lib/libnnz10.so
chmod go+r /data1/R12/ab/apps/XB9R1211/apps/tech_st/10.1.3/lib/libons.so chmod go+r /data1/R12/ab/apps/XB9R1211/apps/tech_st/10.1.3/lib32/libnnz10.so chmod go+r /data1/R12/ab/apps/XB9R1211/apps/tech_st/10.1.3/lib32/libons.so
chmod go+r /data1/R12/ab/apps/XB9R1211/apps/tech_st/10.1.3/lib/libclntsh.* chmod go+r /data1/R12/ab/apps/XB9R1211/apps/tech_st/10.1.3/lib32/libclntsh.* ORACLE_HOME="/data1/R12/ab/apps/XB9R1211/apps/tech_st/10.1.3";export
ORACLE_HOME To:
ORACLE_HOME=/d02/oracle/VIS/apps/tech_st/10.1.3 ORACLE_OWNER=applmgr
LBIN=/usr/bin /d02/oracle/VIS/apps/tech_st/10.1.3/Apache/Apache/bin/root_sh_append.sh $CHMOD -R go-rwx /d02/oracle/VIS/apps/tech_st/10.1.3
$CHMOD -R o+rx /d02/oracle/VIS/apps/tech_st/10.1.3/jdk $CHMOD 6750 /d02/oracle/VIS/apps/tech_st/10.1.3/Apache/Apache/bin/ssomigrate chmod -R go-rwx /d02/oracle/VIS/apps/tech_st/10.1.3
chmod -R o+rx /d02/oracle/VIS/apps/tech_st/10.1.3/jdk chmod go+r /d02/oracle/VIS/apps/tech_st/10.1.3/lib/libnnz10.so chmod go+r /d02/oracle/VIS/apps/tech_st/10.1.3/lib/libons.so
chmod go+r /d02/oracle/VIS/apps/tech_st/10.1.3/lib32/libnnz10.so chmod go+r /d02/oracle/VIS/apps/tech_st/10.1.3/lib32/libons.so chmod go+r /d02/oracle/VIS/apps/tech_st/10.1.3/lib/libclntsh.*
chmod go+r /d02/oracle/VIS/apps/tech_st/10.1.3/lib32/libclntsh.*
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
12
#!/bin/sh ORACLE_HOME="/d02/oracle/VIS/apps/tech_st/10.1.3";export ORACLE_HOME
SSOMIGRATE="/d02/oracle/VIS/apps/tech_st/10.1.3/Apache/Apache/bin/ssomigrate";export SSOMIGRATE
iii. Update /d02/oracle/VIS/apps/tech_st/10.1.3/Apache/Apache/bin/root_sh_append.sh
set ORACLE_HOME to /d02/oracle/VIS/apps/tech_st/10.1.3 iv. Change following lines in /d02/oracle/VIS/apps/tech_st/10.1.3/opmn/bin/opmnctl
ORACLE_HOME=/data1/R12/ab/apps/XB9R1211/apps/tech_st/10.1.3; export
ORACLE_HOME TNS_ADMIN=${TNS_ADMIN="/data1/R12/ab/apps/XB9R1211/apps/tech_st/10.1.3/network/admin"}; export TNS_ADMIN
To:
ORACLE_HOME=/d02/oracle/VIS/apps/tech_st/10.1.3; export ORACLE_HOME TNS_ADMIN=${TNS_ADMIN="/d02/oracle/VIS/apps/tech_st/10.1.3/network/admin"}; export TNS_ADMIN
HINT: update /d02/oracle/VIS/apps/tech_st/10.1.3/inventory/ContentsXML/comps.xml Search and replace /data1/R12/ab/apps/XB9R1211/apps/tech_st/10.1.3 with /d02/oracle/VIS/apps/tech_st/10.1.3
Ensure that app tier is up and running d. Start vncserver as applmgr and follow below instructions in the VNC session:
oracle187 EBS-APP /home/applmgr$ .
/d02/oracle/VIS/inst/apps/VIS_oracle187/ora/10.1.3/VIS_oracle187.env oracle187 EBS-APP /home/applmgr$ echo $ORACLE_HOME /d02/oracle/VIS/apps/tech_st/10.1.3
oracle187 EBS-APP /home/applmgr$ export PATH=$PATH:$ORACLE_HOME/ant/bin HINT: export OPATCH_PLATFORM_ID=212
oracle187 EBS-APP /home/applmgr$ cd /tmp/p8626084/Disk1 oracle187 EBS-APP /tmp/p8626084/Disk1$ ./runInstaller –ignoreSysPrereqs
i. Since there's no rootpre.sh, ignore the requirement and continue in 10.1.3 destination name and path accordingly
ii. Ignore opmn warning (if any)
iii. oc4jadmin password: oafm HINT: if password doesn't work, restart opmn ($ORACLE_HOME/opmn/bin/opmnctl stopall/startall)
Also, once opmn processes are killed, run /usr/sbin/slibclean as root e. Run $ORACLE_HOME/root.sh as root when OUI asks
8. Run Autoconfig
9. Apply additional patches a. Patch 8999551 (OPatch)
i. export ORACLE_HOME=/d02/oracle/VIS/apps/tech_st/10.1.3
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
13
ii. export PATH=$PATH:$ORACLE_HOME/OPatch HINT: export OPATCH_PLATFORM_ID=212
iii. Do OPatch 10. Post-installation tasks
b. Regenerate appsborg.zip and appsborg2.zip files
oracle187 EBS-APP /d02/oracle/VIS/apps/apps_st/appl$ . ./APPSVIS_oracle187.env oracle187 EBS-APP /d02/oracle/VIS/apps/apps_st/appl$ adadmin ...
AD Administration Main Menu > 1. Generate Applications Files > 4. Generate product JAR files
Do you wish to force regeneration of all jar files? [No] ? ... Successfully created new appsborg2.zip.
Copied appsborg2.zip from AU_TOP to AF_JLIB. Review the messages above, then press [Return] to continue.
11. Start application tier services and validate operations
Upgrade Java
Refer to the Oracle Support Note: Using Latest Java 6.0 Update With Oracle E-Business Suite Release
12 (Doc ID 455492.1)
NOTE: The database tier would already be upgraded to latest JDK during the Oracle Databsae 11g
Release 2 upgrade.
Applications Tier Java upgrade:
1. Download Java 6
a. Download non-smit versions of Java 6 (latest SR) off http://www.ibm.com/developerworks/java/jdk/aix/service.html
b. get 32-bit (j632redist.6.0.0.425.bin) and 64-bit JDK (j664redist.6.0.0.425.bin) for Apps nodes
c. get 32-bit JRE (jre632redist.6.0.0.425.bin) for DB node 2. Upgrade 10.1.3 JDK
a. Installation
oracle187 EBS-APP /home/applmgr$ . /d02/oracle/VIS/inst/apps/VIS_icc-106/admin/scripts/adstpall.sh apps/apps oracle187 EBS-APP /home/applmgr$ mkdir /tmp/j632
oracle187 EBS-APP /home/applmgr$ cp ~/j632redist.6.0.0.425.bin /tmp/j632 oracle187 EBS-APP /home/applmgr$ cd /tmp/j632 oracle187 EBS-APP /home/applmgr$ chmod +x ./j632redist.6.0.0.425.bin
oracle187 EBS-APP /home/applmgr$ ./j632redist.6.0.0.425.bin oracle187 EBS-APP /tmp/j632$ ll total 201512
-rwxr-xr-x 1 root system 103167184 Aug 01 01:55 j632redist.6.0.0.425.bin drwxrwxr-x 2 applmgr dba 256 Aug 01 02:04 ibm-java-ppc-60
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
14
b. Copy installation oracle187 EBS-APP /home/applmgr$ chown -R applmgr:dba /tmp/j632/ibm-java-ppc-60
oracle187 EBS-APP /home/applmgr$ cd /d02/oracle/VIS/apps/tech_st/10.1.3/appsutil oracle187 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.3/appsutil$ mv jdk jdk_old oracle187 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.3/appsutil$ mv /tmp/j632/ibm-java-
ppc-60 jdk oracle187 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.3/appsutil$ cd /d02/oracle/VIS/apps/apps_st/appl/fnd/12.0.0/resource
oracle187 EBS-APP /d02/oracle/VIS/apps/apps_st/appl/fnd/12.0.0/resource$ cp ALBAN* /d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/fonts/
c. Start App tier and validate operation.
3. Apply patch 12848228 using OPatch Note: Ensure that applications tier services are running. a. set ORACLE_HOME to 10.1.2
oracle187 EBS-APP /tmp/12848228$ export ORACLE_HOME=/d02/oracle/VIS/apps/tech_st/10.1.2 oracle187 EBS-APP /tmp/12848228$ export PATH=$PATH:$ORACLE_HOME/OPatch
b. Verify that 10.1.2 OPatch is being used oracle187 EBS-APP /tmp/12848228$ which opatch /d02/oracle/VIS/apps/tech_st/10.1.2//OPatch/opatch
c. Ensure that OPatch is atleast 1.0.0.0.57 oracle187 EBS-APP /tmp/12848228$ patch version Oracle Interim Patch Installer version 1.0.0.0.57
OPatch Version: 1.0.0.0.57 d. Apply OPatch
oracle187 EBS-APP /tmp/12848228$ opatch apply
4. Upgrade JDK (32-bit) in 10.1.2 ORACLE_HOME Note: Ensure that applications tier services are running. a. Installation
oracle187 EBS-APP /home/applmgr$ mkdir /tmp/j632 oracle187 EBS-APP /home/applmgr$ cp ~/j632redist.6.0.0.425.bin /tmp/j632 oracle187 EBS-APP /home/applmgr$ cd /tmp/j632
oracle187 EBS-APP /home/applmgr$ chmod +x ./j632redist.6.0.0.425.bin oracle187 EBS-APP /home/applmgr$ ./j632redist.6.0.0.425.bin
b. Copy installation files
oracle187 EBS-APP /home/applmgr$ chown -R applmgr:dba /tmp/j632/ibm-java-ppc-60 oracle187 EBS-APP /home/applmgr$ cd /d02/oracle/VIS/apps/tech_st/10.1.2 oracle187 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.2$ mv jdk jdk_old
oracle187 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.2$ mv /tmp/j632/ibm-java-ppc-60 jdk oracle187 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.2$ mv jdk64/ jdk64_old oracle187 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.2$ mv jre/1.4.2/ jre/1.4.2_old
oracle187 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.2$ cd ../10.1.3 oracle187 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.3$ mv jre/1.4.2/ jre/1.4.2_old
5. Apply patches
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
15
a. Patch 13686664 oracle187 EBS-APP /tmp/13686664$ echo $ORACLE_HOME
/d02/oracle/VIS/apps/tech_st/10.1.2/ oracle187 EBS-APP /tmp/13686664$ opatch apply
b. Do patch post-install
oracle187 EBS-APP /tmp/13686664$ cd $ORACLE_HOME/forms/lib32 oracle187 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.2/forms/lib32$ make -f ins_forms.mk sharedlib install
c. Patch 14029977 Hint: while applying this patch, ignore error related to re-linking oracle187 EBS-APP /tmp/14029977$ echo $ORACLE_HOME
/d02/oracle/VIS/apps/tech_st/10.1.2/ oracle187 EBS-APP /tmp/14029977$ opatch apply
d. Do patch post-install
oracle187 EBS-APP /tmp/14029977$ cd $ORACLE_HOME/reports/lib32 oracle187 EBS-APP /d02/oracle/VIS/apps/tech_st/10.1.2/reports/lib32$ make -f ins_reports.mk install
e. Patch 13579837 i. Shutdown apps tier ii. Execute the applications tier environment file
oracle187 EBS-APP /d02/oracle/VIS/apps/apps_st/appl$ . ./APPSVIS_oracle187.env iii. Verify that $ORACLE_HOME is set to 10.1.2 ORACLE_HOME
oracle187 EBS-APP /tmp/13579837$ echo $ORACLE_HOME
/d02/oracle/VIS/apps/tech_st/10.1.2 iv. Put the applications tier in maintenance mode. v. Do adpatch
vi. Execute following commands oracle187 EBS-APP /tmp/13579837$ echo $ADJVAPRG /d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/jre/bin/java
oracle187 EBS-APP /tmp/13579837$ echo $CONTEXT_FILE /d02/oracle/VIS/inst/apps/VIS_oracle187/appl/admin/VIS_oracle187.xml oracle187 EBS-APP /tmp/13579837$ echo $AD_TOP
/d02/oracle/VIS/apps/apps_st/appl/ad/12.0.0 oracle187 EBS-APP /tmp/13579837$ echo $ORACLE_HOME /d02/oracle/VIS/apps/tech_st/10.1.2
oracle187 EBS-APP /tmp/13579837$ $ADJVAPRG oracle.apps.ad.autoconfig.InstantiateFile -e $CONTEXT_FILE -tmpl $AD_TOP/admin/template/adlnk806.sh -out
$ORACLE_HOME/appsutil/clone/adlnktools.sh Enter the APPS password : apps
vii. Set permissions to the instantiated file :
oracle187 EBS-APP /tmp/13579837$ chmod 700 $ORACLE_HOME/appsutil/clone/adlnktools.sh
viii. Take the applications tier out of maintenance mode
6. Update Library Path for Oracle E-Business Suite Release 12 to Use with JDK 6.0.
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
16
a. Start applications tier services. b. Modify variable "Tools OH LD_LIBRARY_PATH" in the AutoConfig Context File.
c. Edit the context file by logging in to Oracle Applications Manager and navigate to System Administration > OAM (System Configurations Overview) >
Site Map > Administration > System Configuration >
AutoConfig > Applications Context File > Edit Parameters >
Environments d. Update the value of the environment variable "Tools OH LD_LIBRARY_PATH" (context
variable s_tools_ldlib). This environment variable consists of a list of values of library paths for
the Tools Oracle Home, separated by colons on UNIX and semicolons on Windows. e. Append <10.1.2 OH>/jdk/jre/lib/ppc to the the original (existing) value, replacing <10.1.2 OH>
with the actual path to your 10.1.2 Oracle Home (for example,
/d1/oracle/PROD/apps/tech_st/10.1.2). f. Confirm that the resulting new value of "Tools OH LD_LIBRARY_PATH" looks something like
the following, with a path that reflects your own system: <Original
Value>:/d1/oracle/PROD/apps/tech_st/10.1.2/jdk/jre/lib/ppc where <Original Value> is the existing value of "Tools OH LD_LIBRARY_PATH".
g. Regenerate AutoConfig configuration files
$ su – applmgr $ /d02/oracle/VIS/inst/apps/VIS_oracle187/admin/scripts/adautocfg.sh appspass=apps
h. Restart Oracle E-Business Suite application tier services.
7. Test JDK version a. Create JDKtest.jsp file
Create file under OA_HTML directory containing following line:
Look under /d02/oracle/VIS/apps/apps_st/appl/admin/adovars.env to see which directory is OA_HTML The JDK version is: <%= System.getProperty("java.version") %>
b. Compile JDKtest.jsp script oracle187 EBS-APP /d02/oracle/VIS/apps/apps_st/comn/webapps/oacore/html$ export FND_TOP=/d02/oracle/VIS/apps/apps_st/appl/fnd/12.0.0
oracle187 EBS-APP /d02/oracle/VIS/apps/apps_st/comn/webapps/oacore/html$ perl -x $FND_TOP/patch/115/bin/ojspCompile.pl --compile -s 'JDKtest.jsp'
c. Run JDKtest.jsp script from browser
Visit http://[web server]:[port]/OA_HTML/JDKtest.jsp Results should be something like The JDK version is: 1.6.0_15
d. Check JDK version and CLASSPATH
Open the $APPL_TOP/admin/adovars.env file and ensure that the environment variables below are defined. ADJVAPRG=/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/jre/bin/java
export ADJVAPRG
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
17
AFJVAPRG=/d02/oracle/VIS/apps/tech_st/10.1.2/jdk/jre/bin/java export AFJVAPRG
The CLASSPATH and AF_CLASSPATH environment variables must contain the necessary JDK 6.0 libraries. Existing Section:
CLASSPATH="/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/
rt.jar:/d02/oracle/VIS/apps/apps_st/comn/java/lib/appsborg.zip:/d02/oracle/VIS/apps/tech_st/10.1.2/forms/java:/d02/oracle/VIS/apps/tech_st/10.1.2/forms/java/frmall.jar:/d02/oracle/VIS/apps/tech_st/10.1.2/jlib/ewt3.jar:/d02/oracle/VIS/apps/tech_st/10.1.2/j2ee/OC4J_BI_Forms/applic
ations/formsapp/formsweb/WEBINF/lib/frmsrv.jar:/d02/oracle/VIS/apps/apps_st/comn/java/classes" export CLASSPATH
AF_CLASSPATH="/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/jr
e/lib/rt.jar:/d02/oracle/VIS/apps/apps_st/comn/java/lib/appsborg2.zip:/d02/oracle/VIS/apps/apps_st/comn/java/classes" export AF_CLASSPATH
Updated Section:
CLASSPATH="/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/charsets.jar:/d02/oracle/VIS/apps/apps_st/comn/java/lib/appsborg.zip:/d02/oracle/VIS/apps/te
ch_st/10.1.2/forms/java:/d02/oracle/VIS/apps/tech_st/10.1.2/forms/java/frmall.jar:/d02/oracle/VIS/apps/tech_st/10.1.2/jlib/ewt3.jar:/d02/oracle/VIS/apps/tech_st/10.1.2/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEBINF/lib/frmsrv.jar:/d02/oracle/VIS/apps/apps_st/comn/
java/classes" export CLASSPATH
AF_CLASSPATH="/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/charsets.jar:/d02/oracle/VIS/apps/apps_st/comn/java/lib/appsborg2.zip:/d02/oracle/VIS/a
pps/apps_st/comn/java/classes" export AF_CLASSPATH
e. Run following commands to verify JDK versions:
oracle187 EBS-APP /d02/oracle/VIS/apps/apps_st/comn/webapps/oacore/html$ . $APPL_TOP/admin/adovars.env
oracle187 EBS-APP /d02/oracle/VIS/apps/apps_st/comn/webapps/oacore/html$ $ADJVAPRG –version java version "1.6.0"
Java(TM) SE Runtime Environment (build pap3260sr2-20080818_01(SR2))
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
18
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 AIX ppc-32 jvmap3260-20080816_22093 (JIT enabled, AOT enabled)
J9VM - 20080816_022093_bHdSMr JIT - r9_20080721_1330ifx2 GC - 20080724_AA)
JCL - 20080808_02 oracle187 EBS-APP /d02/oracle/VIS/apps/apps_st/comn/webapps/oacore/html$ .
APPL_TOP/admin/adovars.env oracle187 EBS-APP /d02/oracle/VIS/apps/apps_st/comn/webapps/oacore/html$
$ADJVAPRG –version java version "1.6.0" Java(TM) SE Runtime Environment (build pap3260sr2-20080818_01(SR2))
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 AIX ppc-32 jvmap3260-20080816_22093 (JIT enabled, AOT enabled) J9VM - 20080816_022093_bHdSMr
JIT - r9_20080721_1330ifx2 GC - 20080724_AA) JCL - 20080808_02
oracle187 EBS-APP /d02/oracle/VIS/apps/apps_st/comn/webapps/oacore/html$ echo $CLASSPATH
/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/charsets.jar:/d0
2/oracle/VIS/apps/apps_st/comn/java/lib/appsborg.zip:/d02/oracle/VIS/apps/tech_st/10.1.2/forms/java:/d02/oracle/VIS/apps/tech_st/10.1.2/forms/java/frmall.jar:/d02/oracle/VIS/apps/tech_st/10.1.2/jlib/ewt3.jar:/d02/oracle/VIS/apps/tech_st/10.1.2/j2ee/OC4J_BI_Forms/applications/fo
rmsapp/formsweb/WEB-INF/lib/frmsrv.jar:/d02/oracle/VIS/apps/apps_st/comn/java/classes oracle187 EBS-APP /d02/oracle/VIS/apps/apps_st/comn/webapps/oacore/html$ $AFJVAPRG
–version java version "1.6.0" Java(TM) SE Runtime Environment (build pap3260sr14-20130705_01(SR14))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc-32 jvmap3260sr14-20130704_155156 (JIT enabled, AOT enabled) J9VM - 20130704_155156
JIT - r9_20130517_38390 GC - GA24_Java6_SR14_20130704_1138_B155156) JCL - 20130618_01
oracle187 EBS-APP /d02/oracle/VIS/apps/apps_st/comn/webapps/oacore/html$ echo $AF_CLASSPATH
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
19
/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/d02/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/charsets.jar:/d0
2/oracle/VIS/apps/apps_st/comn/java/lib/appsborg2.zip:/d02/oracle/VIS/apps/apps_st/comn/java/classes
8. Verify Oracle E-Business Suite concurrent programs.
a. Log in to Oracle E-Business Suite and select the "System Administrator" 1. responsibility. b. Check the Concurrent --> Manager --> Administer form and ensure that all managers have
the appropriate numbers for their actual and target.
9. Apply patch 12965674 a. Stop both applications and database tier services. b. Set 10.1.3 ORACLE_HOME
c. oracle187 EBS-APP /home/applmgr$ export ORACLE_HOME=/d02/oracle/VIS/apps/tech_st/10.1.3
d. Set OPatch path
oracle187 EBS-APP /home/applmgr$ export PATH=$PATH:$ORACLE_HOME/OPatch HINT: export OPATCH_PLATFORM_ID=212
e. Apply OPatch
oracle187 EBS-APP /home/applmgr$ opatch apply f. Regenerate appsborg.zip and appsborg2.zip files
i. startup database
ii. oracle187 EBS-APP /home/applmgr$ . /d02/oracle/VIS/apps/apps_st/appl/APPSVIS_oracle187.env
iii. oracle187 EBS-APP /home/applmgr$ adadmin
AD Administration Main Menu > 1. Generate Applications Files menu > 4. Generate product JAR files
10. Startup application tier services.
Apply EBS 12.1.3 RUP
Refer to the Oracle Support Note: Oracle E-Business Suite Release 12.1.3 Readme (Doc ID 1080973.1).
1. Update application and database tier EBS user .profile files:
Applications Tier (~applmgr/.profile): PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:. export PATH
export APPL_TOP=/d02/oracle/VIS/apps/apps_st/appl export INST_TOP=/d02/oracle/VIS/inst/apps/VIS_oracle187 export FND_TOP=/d02/oracle/VIS/apps/apps_st/appl/fnd/12.0.0
export AIXTHREAD_SCOPE=S export OPATCH_PLATFORM_ID=212
Database Tier (~oracle/.profile): PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:. export PATH
export ORACLE_BASE=/d01/ora
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
20
export ORACLE_HOME=/d01/ora/product/11.2.0/dbhome_1 export ORACLE_SID=VIS
export PATH=$PATH:$ORACLE_HOME/OPatch:$ORACLE_HOME/perl/bin:$ORACLE_HOME/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PERL5LIB=$ORACLE_HOME/perl/lib/5.10.0:$ORACLE_HOME/perl/lib/site_perl/5.10.0:$PERL5LIB
export ORA_NLS10=/d01/ora/product/11.2.0/dbhome_1/nls/data/9idata export TNS_ADMIN=$ORACLE_HOME/network/admin/VIS_oracle188 export DBDIR=/d01/ora/product/11.2.0/dbhome_1/appsutil/scripts/VIS_oracle188
2. Restart applications tier services. a. Source .profile b. export LDR_CNTRL=MAXDATA=0x40000000
c. Confirm /dev/urandom is installed. d. Update $CONTEXT_FILE:
/d02/oracle/VIS/inst/apps/VIS_oracle187/appl/admin/VIS_oracle187.xml - prepend
s_adjreopts value: -Djava.security.egd=file:///dev/urandom e. Execute AutoConfig to populate the associated environment files
$ su – applmgr
$ /d02/oracle/VIS/inst/apps/VIS_oracle187/admin/scripts/adautocfg.sh appspass=apps f. Restart applications tier services
3. Apply 12.1.3 RUP
a. Patch 9239089 i. copy and run adgrants.sql on DB tier
oracle188 EBS-DB /home/oracle$ cd $ORACLE_HOME/appsutil
oracle188 EBS-DB /d01/ora/product/11.2.0/dbhome_1/appsutil$ mkdir admin oracle188 EBS-DB /d01/ora/product/11.2.0/dbhome_1/appsutil$ cd admin oracle188 EBS-DB /d01/ora/product/11.2.0/dbhome_1/appsutil/admin$ scp
root@oracle187:/tmp/9239089/admin/adgrants.sql . oracle188 EBS-DB /d01/ora/product/11.2.0/dbhome_1/appsutil/admin$ sqlplus /nolog SQL> @adgrants.sql apps
ii. Put applications tier in maintainence mode iii. Shutdown applications tier iv. Apply patch using adpatch
v. Recompile APPS schema oracle187 EBS-APP /tmp/9239089$ adadmin AD Administration Main Menu >
3. Compile/Reload Applications Database Entities menu > 1. Compile APPS schema HINT: keep the "number of workers" to the default value, don't increase
b. Patch 9239090 i. Source .profile ii. Run adpatch (may take between 5-6 hours)
iii. HINT: keep the "number of workers" to the default value, don't increase
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
21
iv. Run adautoconfig v. Connect to database and check that EBS is upgraded:
SQL> select release_name from apps.fnd_product_groups; RELEASE_NAME --------------------------------------------------
12.1.3 vi. Disable maintenance mode and start app node; validate operations vii. Stop applications node and enable maintenance mode
viii. Apply country specific patches as mentioned in the patch README.txt post-install section c. Patch 9239095
i. Run adpatch
4. Carry out post-upgrade steps. a. Patch 9817770
Pre-requisites:
9239089: already applied 8919491: Doc ID 1066312.1 (pre-req 12964564) i. merge and apply 8919491 and 12964564
ii. unzip both patches under a certain directory, say /patch/8919491 and /patch/12964564 iii. make sure there’s no other patch under /patch iv. mkdir /patch/merge
v. cd /patch/merge vi. . /d02/oracle/VIS/apps/apps_st/appl/APPSVIS_oracle187.env vii. admrgpch /patch /patch/merge
Hint: run /usr/sbin/slibclean as root to prevent certain linker errors during patching viii. adpatch ix. choose 'u_merged.drv' as the driver
x. do adpatch for 9817770 b. Patch 9966055
i. Run adpatch
5. Update DB tier nodes with 12.1.3 code level. Applications Tier: a. Use adadmin to disable maintenance mode
b. Run autoconfig $ . /d02/oracle/VIS/apps/apps_st/appl/APPSVIS_oracle187.env $ /d02/oracle/VIS/inst/apps/VIS_oracle187/admin/scripts/adautocfg.sh appspass=apps
c. Create appsutil.zip and copy on database node $ perl /d02/oracle/VIS/apps/apps_st/appl/ad/12.0.0/bin/admkappsutil.pl $ scp /d02/oracle/VIS/inst/apps/VIS_oracle187/admin/out/appsutil.zip
root@oracle188:/d01/ora/product/11.2.0/dbhome_1
Database Tier:
a. Unzip appsutil.zip b. Go to 11gR2 $ORACLE_HOME c. Ensure appsutil.zip file has right permissions for oracle:dba
d. Unzip -o appsutil.zip
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
22
e. Run autoconfig $cd /d01/ora/product/11.2.0/dbhome_1/appsutil/scripts/VIS_oracle188
$./adautocfg.sh Preclone:
Database Tier:
oracle188 EBS-DB /d01/ora/product/11.2.0/dbhome_1/appsutil/scripts/VIS_oracle188$ perl
adpreclone.pl dbTier
Applications Tier:
oracle187 EBS-APP /d02/oracle/VIS/inst/apps/VIS_oracle187/admin/scripts$ perl adpreclone.pl appsTier
6. Restart applications tier and validate EBS 12.1.3 operations.
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
23
Appendix 1
Starting applications tier services
As applications tier user (default: applmgr) run the adstrtal.sh script:
oracle187 EBS-APP /home/applmgr$ /d02/oracle/VIS/inst/apps/VIS_oracle187/admin/scripts/adstrtal.sh
apps/apps
Shutting down application tier services
As applications tier user (default: applmgr) run the adstpall.sh script:
oracle187 EBS-APP /home/applmgr$ /d02/oracle/VIS/inst/apps/VIS_oracle187/admin/scripts/adstpall.sh
apps/apps
Running adautocfg.sh on applications tier
As applications tier user (default: applmgr) run the adautocfg.sh script:
oracle187 EBS-APP /home/applmgr$
/d02/oracle/VIS/inst/apps/VIS_oracle187/admin/scripts/adautocfg.sh appspass=apps
Running adautocfg.sh on database tier 1. As the applications tier user on applications tier, source the apps environment file
oracle187 EBS-APP /home/applmgr$ . /d02/oracle/VIS/apps/apps_st/appl/APPSVIS_oracle187.env
2. Run the admkapputil.pl script
oracle187 EBS-APP /home/applmgr$ $AD_TOP/bin/admkappsutil.pl 3. Copy the appsutil.zip file to the database tier and set its permissions to database tier user
oracle187 EBS-APP /home/applmgr$ scp
/d02/oracle/VIS/inst/apps/VIS_oracle187/admin/out/appsutil.zip root@oracle188:/d01/oracle/VIS/db/tech_st/11.1.0 oracle188 DB /# chown oracle:dba /d01/oracle/VIS/db/tech_st/11.1.0/appsutil.zip
4. Unzip the appsutil.zip on the database tier and run adautocfg.sh: oracle188 DB /# su – oracle oracle188 EBS-DB /home/oracle$ cd /d01/oracle/VIS/db/tech_st/11.1.0/
oracle188 EBS-DB /d01/oracle/VIS/db/tech_st/11.1.0$./bin/unzip -o appsutil.zip oracle188 EBS-DB /home/oracle$ /d01/oracle/VIS/db/tech_st/11.1.0/appsutil/scripts/VIS_oracle188/adautocfg.sh appspass=apps
Applying patches using adpatch 1. As the applications tier user (default: applmgr), source the environment file
oracle187 EBS-APP /# su – applmgr oracle187 EBS-APP /home/applmgr$ .
/d02/oracle/VIS/apps/apps_st/appl/APPSVIS_oracle187.env
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
24
2. Unzip patch and run adpatch oracle187 EBS-APP /tmp/patches/9062910$ adpatch
Hints: a. If you’re not sure use default values when prompted for input. b. Following default values could be specified when prompted:
'SYSTEM' ORACLE schema: manager ORACLE password of Application Object Library [APPS]: apps
c. When prompted for AutoPatch driver file, provide the name of the .drv file in the patch
directory (e.g. u9062910.drv)
Applying DB patches
Unzip patch in a directory and run opatch:
oracle188 EBS-DB /home/oracle/patches/4247037$ opatch apply
Shutdown database tier 1. Set the environment variables for the database:
export ORACLE_HOME=/d01/oracle/VIS/db/tech_st/11.1.0 export ORACLE_SID=VIS
export PATH=$PATH:$ORACLE_HOME/bin 2. Stop listener service and then the database instance:
oracle188 EBS-DB /home/oracle$
/d01/oracle/VIS/db/tech_st/11.1.0/appsutil/scripts/VIS_oracle188/addlnctl.sh stop VIS oracle188 EBS-DB /home/oracle$ /d01/oracle/VIS/db/tech_st/11.1.0/appsutil/scripts/VIS_oracle188/addbctl.sh stop
Startup database tier 1. Set the environment variables for the database:
export ORACLE_HOME=/d01/oracle/VIS/db/tech_st/11.1.0 export ORACLE_SID=VIS
export PATH=$PATH:$ORACLE_HOME/bin 2. Startup database instance and then the listener service:
oracle188 EBS-DB /home/oracle$
/d01/oracle/VIS/db/tech_st/11.1.0/appsutil/scripts/VIS_oracle188/addbctl.sh start oracle188 EBS-DB /home/oracle$ /d01/oracle/VIS/db/tech_st/11.1.0/appsutil/scripts/VIS_oracle188/addlnctl.sh start VIS
Running Autoconfig on applications tier 1. Stop application tier services:
oracle187 EBS-APP /home/applmgr$ /d02/oracle/VIS/inst/apps/VIS_oracle187/admin/scripts/adstpall.sh apps/apps
2. Run autoconfig: oracle187 EBS-APP /home/applmgr$ /d02/oracle/VIS/inst/apps/VIS_oracle187/admin/scripts/adautocfg.sh appspass=apps
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
25
Applications tier maintenance mode
The EBS applications tier can be put in maintenance mode using the adadmin tool. First, source the environment file on the applications tier and then run the adadmin utility.
Note: Default password for ‘SYSTEM’ ORACLE schema is ‘manager’ and default password of the Application Object Library [APPS] is ‘apps’.
oracle187 EBS-APP /# su – applmgr
oracle187 EBS-APP /home/applmgr$ . /d02/oracle/VIS/apps/apps_st/appl/APPSVIS_oracle187.env
oracle187 EBS-APP /home/applmgr$ adadmin
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
26
About the authors Vishal Agarwal is a senior technical consultant at the IBM India Software Labs in Bangalore, India. As part of the IBM STG ISV enablement team, Vishal is involved in technical enablement of cloud offerings
on the IBM Power platform. Prior to joining IBM, he has worked on various UNIX® server technologies as a systems and application programmer, platform migration expert and performance consultant.
Shashi Ranjan is a senior technical consultant at the IBM India, GTS Cloud SSA in Bangalore, India. As part of the IBM Cloud SSA team, Shashi is involved in technical enablement of IBM sales and presales cloud teams for various products and technologies. Prior to joining IBM, he has worked on various Oracle
technologies as an architect, a systems and application programmer and business analyst.
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
27
Trademarks and special notices © Copyright. IBM Corporation 2014. All rights reserved.
References in this document to IBM products or services do not imply that IBM intends to make them
available in every country.
AIX, IBM, and the IBM logo are trademarks or registered trademarks of International Business Machines Corporation in the United States, other countries, or both:
Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.
UNIX is a registered trademark of The Open Group in the United States and other countries.
Other company, product, or service names may be trademarks or service marks of others.
The information provided in this document is distributed “AS IS” without any warranty, either express or implied.
The information in this document may include technical inaccuracies or typographical errors.
All customer examples described are presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual environmental costs and performance
characteristics may vary by customer.
Information concerning non-IBM products was obtained from a supplier of these products, published announcement material, or other publicly available sources and does not constitute an endorsement of
such products by IBM. Sources for non-IBM list prices and performance numbers are taken from publicly available information, including vendor announcements and vendor worldwide homepages. IBM has not tested these products and cannot confirm the accuracy of performance, capability, or any other claims
related to non-IBM products. Questions on the capability of non-IBM products should be addressed to the supplier of those products.
All statements regarding IBM future direction and intent are subject to change or withdrawal without
notice, and represent goals and objectives only. Contact your local IBM office or IBM authorized reseller for the full text of the specific Statement of Direction.
Some information addresses anticipated future capabilities. Such information is not intended as a
definitive statement of a commitment to specific levels of performance, function or delivery schedules with respect to any future products. Such commitments are only made in IBM product announcements. The information is presented here to communicate IBM's current investment and development activities as a
good faith effort to help with our customers' future planning.
Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending
upon considerations such as the amount of multiprogramming in the user's job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve throughput or performance improvements equivalent to the
ratios stated here.
Photographs shown are of engineering prototypes. Changes may be incorporated in production models.
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
Hints and Tips for Upgrading Oracle E-Business Suite 12.1.1 to 12.1.3 on AIX 7.1 http://www.ibm.com/support/techdocs © Copyright 2014, IBM Corporation
28
Any references in this information to non-IBM Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part
of the materials for this IBM product and use of those Web sites is at your own risk.