Last updated on April 14th, 2017 at 02:30 pm
R12.2 Upgrade consists of following part
- Pre Upgrade preparation steps
- Main upgrade using Main Upgrade Driver for R12.2.0 (merged with pre-installed Oracle E-Business Suite Consolidated Upgrade Patch for R12.2.0)
- Online Patching Enablement
- Applying the latest R12.AD.C.Delta.n and R12.TXK.C.Delta.n
- Applying 12.2.n Release Update Pack (RUP)
We have already taken care of part 1 in previous Post
We are publishing the step 2(Main Upgrade Driver for R12.2.0) in this part
Step by step upgrade process to R12.2 Upgrade part -2
Step by step upgrade process to R12.2 Upgrade part -3
Step by step upgrade process for R12.2 Upgrade Part -4
Main upgrade using Main Upgrade Driver for R12.2.0 (merged with pre-installed Oracle E-Business Suite Consolidated Upgrade Patch for R12.2.0)
1) Set init ora parameter and Disabling Archive log
|a) cd $ORACLE_HOME/dbs
Take backup of pfile & spfile
b)sqlplus “/ as sysdba”
create pfile from spfile;
c) Change/add Below Parameters in pfile.
*._sqlexec_progression_cost = 2147483647 #MP
*.job_queue_processes=No of CPU Core( This will help in invalid object compilation)
*.parallel_max_servers=2X No of CPU Core ( This will help in large index rebuild)
*.cluster_database=false ( If it is RAC database)
Set the below parameter to have fixed memory areas during the upgrade process
unset (remove) – sga_max_size
db_cache_size=< Maximum depending on Memory available>
shared_pool_reserved_size=10% of shared pool size
shared_pool_size =< Maximum depending on Memory available>
Shutdown and start database using modified pfile
f)create spfile from pfile
g) shutdown immediate
// Disable archive log for the upgrade period
alter database noarchivelog
// Disable force logging
alter database no force logging;
alter database open;
archive log list;
We can increase the redo file size if they are small in size. Upgrade does lot of redo logs.,Big redo logs always helps
2) Set R12.2 run filesystem environment and Enable Maintenance Mode
|a) Source the applications run file system environment file as found in the fs1file system appl_top. (Make sure you don’t source the R12.1 OR the 11i environment). We should be running all the below steps on new run file systemonly
b) Enable Maintenance mode using adadmin
sqlplus apps/<apps password> @$AD_TOP/patch/115/sql/adsetmmd.sql ENABLE
3) Apply the AD upgrade patch
|Download and unzip the AD Upgrade Patch for 12.2 (patch 10117518). Follow the instructions in the patch readme to use AutoPatch to run it from the 12.2 Run File System.
Important: AD Upgrade Patch for 12.2 (patch 10117518) patch readme contains information about the latest Consolidated Upgrade Patch (CUP) for AD. You must follow the patch 10117518 readme and apply it after merging with the latest AD Consolidated Upgrade Patch (CUP), as instructed in the readme.
1) As per Readme file of Patch 10117518, it requires patch#22742061:R12.AD.C to be merged with it and apply in Entirety
So merging two patches using admergch
admrgpch -s <PATCH_TOP>/AD_source -d <PATCH_TOP>/10117518_merge -merge_name 10117518_merge -admode
2) Create $ORACLE_HOME/appsutil/admin on the database server.
3) Copy adgrants.sql from this patch 10117518 directory to $ORACLE_HOME/appsutil/admin.
4) Run the script:
$ sqlplus /nolog
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql APPLSYS
5) Apply the merge AD patch (10117518_merge) using adpatch
4) Apply CUP patches
|1. Apply the Consolidated Upgrade Patch (CUP) for Release 12.2.0 (Patch 22742071:12.2.0) in pre-installation mode on the Run Edition File System.
Note: Before applying Patch 22742071:12.2.0 for the latest CUP in pre-installation mode:
if you have applied any other patch previously in pre-installation mode and do not intend to merge it with 12.2.0 upgrade driver u10124646.drv, clean up the directory <APPL_TOP>/admin/<TWO_TASK>/preinstall on run file system after taking the backup of the current directory.
$ adpatch preinstall=y
Apply the pre-upgrade patches that were released after the Consolidated Upgrade Patch 22742071:12.2.0.
5) Apply Other Important patches in Pre-install mode
|Refer to My Oracle Support Knowledge Document 1448102.2 for the Oracle E-Business Suite Release 12.2 Pre-install Patches Report;
Download and install the latest version of the Oracle E-Business Suite Preinstall Patches Report zip file for your target release. The reports are updated about every other month to identify any new Oracle E-Business Suite preinstall patches that have been released since the previous version of the report.
This report helps you determine what preinstall patches you should apply for a smooth Release 12.2 upgrade, in addition to the latest Release 12.2 CUP. Please review the guidelines in the Selection Recommendation section and download the resulting patches. Apply the patches in preinstall mode to the Release 12.2 file system that was installed using the Rapid Install wizard. Then merge the corresponding drivers with the Release 12.2 main upgrade driver. Then follow the instructions in the Release 12.2 upgrade guide to use the newly merged Release 12.2 upgrade driver to upgrade your instance to Release 12.2.
We strongly recommend that you apply all patches categorized under “Upgrade Script Failure” and “Performance Fix” at the Oracle E-Business Suite level. You can obtain the list of these patches by selecting “E Business Suite (EBS)” from the Product Family list of values and reviewing the sections “Upgrade Script failure – EBS” and “Performance issue – EBS”.
We recommend that functional analysts review the patches categorized under “Data Corruption Fix” and “Upgrade Integrity Fix” and apply the patches in these categories for each product or functional area you have implemented within Oracle E-Business Suite. Choose the appropriate product family name in the “Product Family” list of values and review the patches listed under the sections “Upgrade Integrity Fix” and “Data Corruption” in the right frame.
6) Apply Main Upgrade Driver for R12.2.0
|1) Merge the patch drivers in $APPL_TOP/admin/$TWO_TASK/preinstall directory with the 12.2.0 upgrade driver $AU_TOP/patch/115/driver/u10124646.drv
Attention: All of the patch driver files located under $APPL_TOP/admin/<TWO_TASK>/preinstall are merged with the 12.2.0 upgrade driver <AU_TOP>/patch/115/driver/u10124646.drv. Therefore, carefully evaluate the content of the directory – <APPL_TOP>/admin/<TWO_TASK>/preinstall and retain only those patch drivers including u16595191.drv ; it is intended to be merged with 12.2.0 upgrade driver – u10124646.drv
2) Merging patch drivers in Run File System’s <APPL_TOP>/admin/<TWO_TASK>/preinstall with <AU_TOP>/patch/115/driver/u10124646.drv:
admrgpch -d . -preinstall -master u10124646.drv
Default merged driver by name u_merged.drv would be created in the destination directory specified.
Apply the newly merged 12.2 upgrade driver using adpatch
7) Install online help patch
|Apply u6746000.drv in $AU_TOP/patch/115/driver(If it says already applied, Continue applying the patch)
Apply with options=hotpatch,nocopyportion,nogenerateportion
8) Disable Maintenance mode
|Use adadmin. To disable maintenance mode.
*** Maintaining the File System (in Classic mode) ***
*** Not Edition Enabled User ***
AD Administration Main Menu
1. Generate Applications Files menu
2. Maintain Applications Files menu
3. Compile/Reload Applications Database Entities menu
4. Maintain Applications Database Entities menu
5. Change Maintenance Mode
6. Exit AD Administration
Enter your choice  : 5
Change Maintenance Mode
Maintenance Mode is currently: [Enabled].
Maintenance mode should normally be enabled when patching the Oracle E-Business Suite and disabled when users are logged on to the system. See the Oracle E-Business Suite Maintenance
Utilities manual for more information about the maintenance mode.
Please select an option:
1. Enable Maintenance Mode
2. Disable Maintenance Mode
3. Return to the Main Menu
Enter your choice  : 2
sqlplus -s &un_apps/***** @$AD_TOP//patch/115/sql/adsetmmd.sql DISABLE
Successfully disabled Maintenance Mode
9) Update the RDBMS ORACLE_HOME file system with AutoConfig and Clone files
|a) Source the applications run file system environment file as found in the fs1 file system appl_top.
Create appsutil.zip in $INST_TOP/admin/out by running perl $AD_TOP/bin/admkappsutil.pl
Starting the generation of appsutil.zip
Log file located at output located at
MakeAppsUtil completed successfully.
b) Copy the appsutil.zip file to the <RDBMS ORACLE_HOME> and unzip the file.
unzip -o appsutil.zip
c) Copy JRE to $ORACLE_HOME/appsutil from the database tier that comes along with the R12 filesystem
10) Set and export the variable and create the new Context file for the database Tier
|In DB Tier:
Set the following variable
Make sure tnsnames.ora and listener.ora are existings and Listener is Up
2. Run adbldxml
Starting context file generation for db tier..
Using JVM from /uxyz/app/ora/TEST/db/184.108.40.206/appsutil/jre/bin/java to execute java programs..
The log file for this adbldxml session is located at:
Enter the value for Display Variable: tech:2.0
The context file has been created at:
11) Run autoconfig on the database Tier
|adconfig.sh contextfile=/uxyz/app/ora/TEST/db/220.127.116.11/appsutil /TEST_tech.xml
Enter the APPS user password:
The log file for this session is located at: /uxyz/app/ora/TEST/db/18.104.22.168/appsutil/log/TEST_tech/122869859/adconfig.log
AutoConfig is configuring the Database environment…
AutoConfig will consider the custom templates if present.
Using ORACLE_HOME location :/uxyz/app/ora/TEST/db/22.214.171.124
Using Context file : /uxyz/app/ora/TEST/db/126.96.36.199/appsutil/TEST_tech.xml
Context Value Management will now update the Context file
Updating Context file…COMPLETED
Attempting upload of Context file and templates to database…COMPLETED
Updating rdbms version in Context file to db111
Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME …
AutoConfig completed successfully.
12) Prepare the run file system for Final configuration
|Drop table ADX_PRE_AUTOCONFIG from APPS schema.
• Prior to running Rapid Install to configure Release 12.2 E-Business Suite instance, check if table – ADX_PRE_AUTOCONFIG exists in APPS schema:
select object_name, object_type, owner, status from dba_objects where
upper(object_name)=’ADX_PRE_AUTOCONFIG’ and object_type=’TABLE’
If it exists
1. cd <AD_TOP>/patch/115/sql
2. sqlplus APPS/<APPS Schema password>
13) Configure & Start Server Processes by running Rapid Install
|You must run the Rapid Install a second time to complete the configuration using the Run File System context file.
In the Rapid Install wizard, select Upgrade to Oracle E-Business Suite Release 12.2.0 and then select the option of Configure Upgraded Release 12.2.0 Instance.
14) Re-enable/Rebuild custom triggers and indexes
|1) Shutdown application services before you start rebuild the index.
2) Re-enable the triggers you disabled at the start of upgrade
3) Rebuild the indexes which you disabled at the start of the upgrade
Hope you like this post on Main Upgrade Driver for R12.2.0 . We will be submitting the other parts of the R12.2 Upgrade soon