Efficient Oracle EBS Upgrade Guide: Transitioning from R12.1.3 to R12.2.10

Oracle Database,Oracle E-Business Suite - August 15, 2023

by Mahendra Naik - Sr. Oracle Apps DBA

Step by Step instructions on Oracle EBS R12.1.3 upgrade to R12.2.0



This document explains in detail all the steps required to migrate and upgrade from 12.1.3 to R12.2.10 Oracle E-Business Suite with Oracle Database Enterprise version 19c (CDB) database.

This is a Single Node Upgradation and Installation.


Environment Details:

Operating System Oracle Linux Enterprise Edition Server Release 5.8 Server
Memory 34GB
Number of CPUs 32
Database Release
Oracle E-business Suite 12.1.3

Note: The database and application tiers are on the same machine.


Database Configuration:

Shared Pool Size 1 GB
Log Buffer   30 MB
job_queue_processes 32


Application Tier Size:

Oracle E-Business Suite Release 12.2 introduces Online Patching. This requires three application-tier file systems:

 fs1 (Production file system) – Used by the current users of the system.

 fs2 (Copy of production file system) – Used by the patching tools.

 fs_ne (Non-editioned file system) – Stores files containing data that is needed across all file systems (for example, data import and export files, report output files, and log files).

 Inst (INST_TOP) - Oracle E-Business Suite Release 12 Instance Home, contains all the config files, log files, SSL certificates, etc.


All three file systems serve a single database. The file system that is currently being used by the running application is never patched: all patches are applied to the file system that is not currently in use.

 Component  Before Upgrade Size  After Upgrade Size
 ORACLE_HOME  3.6 GB  3.6 GB
 APPL_TOP  28 GB  Not Applicable
 INST_TOP  20 MB  Not Applicable
 fsi1 (APPL_TOP + INST_TOP)  Not Applicable  30 GB
 fsi2 (APPL_TOP + INST_TOP)  Not Applicable  29 GB
 fs_ne  Not Applicable  660 KB

Recommended initialization (init.ora) parameter settings for the upgrade:

  • It is recommended to follow AWR pool advisories for optimizing the SGA and PGA size in the Release 12.2 upgrade.
  • An upgrade involves tens of concurrent sessions. Suitable starting values are:
  1. log buffer = 30 to 100 Mb
  2. shared pool = 1 to 4 GB
  3. pga target = 3 to 20 GB
  4. buffer cache = 5-50 GB (multi-GB)
  • You should ensure that SGA and PGA are allocated appropriately within the system's available memory. If set higher it may cause excessive paging, or even swapping.
  • Set “job_queue_processes = No. of CPUs” – adobjcmp.sql (Phases: plb+90 and last+63)
  • This parameter is set at the beginning of the upgrade; it will be most useful in the phases mentioned above.
  • Setting parallel_max_servers to 2 x no. of CPUs will help with large index creation, statistics gathering, and some large upg+ phase jobs.
  • In order to maximize multiblock I/O sizes, you should remove "db_file_multiblock_read_count" (if specified).
  • Ensure you reset the following init.ora parameters after completion of the Release 12.2 upgrade.
  1. recyclebin
  2. parallel_max_servers
  3. job_queue_processes


Run the RDA report on the server and fix an error:

Oracle E-Business Suite 12.2.10 is certified on Linux x86-64 Red Hat Enterprise Linux 8


Download Oracle EBS R12.2 Software:

Document: R12.2: How to Create the Stage in Preparation for Installation (Doc ID 1596433.1)

Steps to download Oracle E-Business Suite Release 12.2.0 installation files from Oracle E-Delivery Portal.
  • Unzip the latest startCD patch 22066363:
  • Run script:

$ cd /u01/StageR122/startCD/Disk1/rapidwiz/bin



Create new stage area  ⇒  Linux x86-64  ⇒ (Please enter the directory containing the zipped installation media)  ⇒ Copy new patches to current stage area  ⇒  Linux x86-64  ⇒ Display existing files in stage TechPatches  ⇒   Exit menu.

  • Patching the Stage Area

Unzip the patch



PreUpgrade Task:

  • Run preclone on the database and application sides.
  • Run autoconfig on the database and application sides.
  • Validate the passwords for the guest user and pub user.
  • Capture the count of invalid objects before commencing the process.


  • Start the RapidWiz – TECHSTACK Installation

If you have VNC access, open the VNC session. Otherwise, use the Xming method to launch the GUI.

  • Start VNC Session as Root owner

[root@datapatroltech ~] # xhost +

[root@datapatroltech ~]su – applmgr

[applmgr@datapatroltech ~]# export DISPLAY=localhost:11.0

[root@datapatroltech ~]# ./u01/StageR122/startCD/Disk1/rapidwiz/rapidwiz


  • After running Rapidwiz, we will be shown the "Welcome" window. In the Welcome window, expand all the components to view more details.

  • In the "Wizard Operation" window, click on "Upgrade to Oracle E-Business Suite Release 12.2.0". Then click “Next" to continue.
  • In the “Oracle Configuration Manager Details” window Click on the checkbox 'I wish to receive security updates via my Oracle Support'. Then Click “Next” to continue.       
  • In the "Select Upgrade Action" window, click on "Create Upgrade File System". Then, click "Next" to continue.
  • In the "Global System Settings" window, select the appropriate port for "File System 1" and "File System 2" based on your environment. Then click "Next" to continue

  • In the “Database Node Configuration” window provide the required database information. Then click “Next” to continue.
  • In the "Review Application User Information" window, please enter the passwords for "apps" . Then, click "Next" to continue.

  • In the “Primary Application Node Configuration” window provide the required application information. Then click “Next” to continue.
  • In the "Application User Information" window, please enter the passwords for "Weblogic" and "applmgr". Then, click "Next" to continue.
  • In the "Node Information" window, please verify the database and application nodes. Then, click "Next" to continue.

  • In the “Validate System Configuration” window, Please verify the precheck. Then click “Next” to continue.          
  • In the “Component Installation Review” window, Please verify the components. Then click Next to continue.
  • After clicking on the "Component Installation Review" window, click on "Yes". Then click "Next" to continue.

  •   Click Next to continue.

Click Finish to exit Rapid Install


Preparing the System for Upgrade:

  • Apply Required Application Tier Patches
  • Release 12.2: Consolidated List of Patches and Technology Bug Fixes (Doc ID: 1594274.1)
  • Check for missing application tier patches by executing the Oracle E-Business Suite Technology Codelevel Checker (ETCC) -

Generating Patch Recommendation Summary.




One or more products have bugfixes missing.

The default patch recommendations to install these missing bugfixes are:


Oracle Forms and Reports


Patch 32922089

- Filename:


Patch 25342269

- Filename:


Patch 27491934

- Filename:


Oracle Fusion Middleware (FMW) - Web Tier


  Patch 22288381

    - Filename:

Patch 33311587

- Filename:


Patch 32287205 [IMPORTANT: Follow Note 2555355.1 before applying.]

 - Filename:


  Patch 23716938

    - Filename:


  Patch 32928416

  - Filename:


  Patch 33144848

 - Filename:


RSF within FMW Web tier


  Patch 22290164

 - Filename:


Oracle Fusion Middleware (FMW) - oracle_common


  Patch 9905685

    - Filename:


  Patch 17428617

    - Filename:


  Patch 21366277

    - Filename:


  Patch 21628307

    - Filename:


  Patch 24606362

    - Filename:


  Patch 24843064

    - Filename:


  Patch 13544814

    - Filename:


  Patch 16089637

    - Filename:


  Patch 20141119

    - Filename:


  Patch 30368663

    - Filename:


  Patch 27212806

    - Filename:


  Patch 28708563

    - Filename:


  Patch 26933408

    - Filename:


Oracle WebLogic Server (WLS)


  Patch 32728642 [SU Patch [I37G]: WLS PSU]

  - Filename: 

  • Apply the aforementioned patches to the newly created file system.
  • Once the patches have been applied, Rerun the etcc and check if there are any pending patches remaining.
  • Drop Event Alert Triggers in Custom Schemas (conditional):

To drop all event alert database triggers in custom schemas, run the alrdtrig.sql script, located in $ALR_TOP/patch/115/sql. Re-create the triggers after the upgrade is complete.

  • Validate GUEST Account:

SQL> select fnd_web_sec.validate_login('GUEST','ORACLE') Valid from dual;





Financials and Procurement Tasks:

  • Subledger Accounting:

           Perform this task if you are using Oracle Subledger Accounting.

  • Clean up Advance Queues from prior Create Accounting processes before enabling Edition-Based Redefinition (EBR).

          Apply patch


  • Human Resource Management (HRMS):






FROM    all_arguments

WHERE   (package_name,object_name) IN





        FROM    hr_api_hook_calls


AND data_type = 'LONG';


Please run the query and check the data_type value as LONG. Afterward, change the data type from LONG to CLOB.

The LONG data type was deemed obsolete by the database group in release 8i and was subsequently replaced by the CLOB data type.


  • Order Management:

Perform these tasks if you are utilizing Oracle Order Management.

  • Check for the Nullable Hold Entity ID

If you upgrade from release 12.1, you should check for the Nullable Hold Entity ID and fix it to NOT NULL. Carefully follow the instructions in the readme of Patch 14191792:R12.ONT.B.


Database and System Administration Tasks:

  • Reset init.ora parameters (required)

          Follow the instructions in Database Initialization Parameters for Oracle E-Business Suite Release 12.2 (Doc ID: 396009.1) and reset the init.ora parameters as required.

  • Take a backup of the init.ora file.
  • Add the following parameters to the init.ora file.

optimizer_adaptive_plans=TRUE #MP

optimizer_adaptive_statistics=FALSE #MP


_optimizer_gather_stats_on_conventional_dml=FALSE #MP

_optimizer_use_stats_on_conventional_dml=FALSE #MP

#optimizer_real_time_statistics=FALSE #MP
  • Comment the following parameters to the init.ora file.


  • Gather SYS, Fixed Object and Dictionary Statistics (required)
  • Gather SYS schema statistics




  options=>'GATHER STALE',

  estimate_percent =>


  method_opt => 'FOR ALL COLUMNS SIZE AUTO',

  cascade => TRUE);


  • Fixed Object and Dictionary Statistics
  • These should have been previously gathered, correct and up-to-date on the pre-upgrade environment.

exec dbms_stats.gather_fixed_objects_stats;

exec dbms_stats.gather_dictionary_stats;
  • Gather schema statistics (required)

SQL> show parameter parallel_max_servers

NAME                                                                                                                                                TYPE         VALUE

------------------------------------                                                                                                           -----------       -------------

parallel_max_servers                                                                                                            integer             8


SQL> conn apps/apps



  • Install JRE on the database tier (conditional)

cp $ORACLE_HOME/jdk/jre $ORACLE_HOME/appsutil

cp $ORACLE_HOME/jlib/orai18n.jar $ORACLE_HOME/appsutil/jre/lib/ext
  • Synchronize values of APPLPTMP with Database Directories for PL/SQL File I/O based Concurrent Requests (required)

SQL> select value from apps.v$parameter where name='utl_file_dir';






  • Perform a system backup

Make a cold backup of the Oracle E-Business Suite database. Back up the Oracle E-Business Suite database. If you encounter problems during the upgrade process, you can use this backup to restore your system to the state before you began the upgrade.


Performing the Upgrade to Release 12.2.0:

  • Shut down application tier listeners and concurrent managers (required)
  • Set FAILED_LOGIN_ATTEMPTS to UNLIMITED for Oracle E-Business Suite schema
  • Compile invalid objects

If there are any invalid objects, you must connect to SQL*Plus using the ‘apps’ account to login and execute the following commands.

$ exec sys.utl_recomp.recomp_parallel
  • Ensure that Maintenance Mode is enabled (required)
  • Apply AD 12.2 upgrade driver (required)
  • 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.

[applmgr@datapatroltech]$cd /oraapp/patches/PREPROD_upg_patches/Preupgrade_patches

[applmgr@datapatroltech]$ mkdir AD_source

  • Download and unzip R12.AD.C (patch#10117518), AD (Patch 31856771:R12.AD.C) under /oraapp/patches/PREPROD_upg_patches/Preupgrade_patches/AD_source

[applmgr@datapatroltech]$ unzip

[applmgr@datapatroltech]$ unzip

[applmgr@datapatroltech]$ mkdir 10117518_CUP12

[applmgr@datapatroltech]$ chmod 777 10117518_CUP12
  • Run adgrant.sql according to the instructions provided in the readme file for patch 10117518.
  • Merge R12.AD.C (patch#10117518) with AD CUP12 patch (patch#31856771:R12.AD.C)

admrgpch -s /oraapp/patches/PREPROD_upg_patches/Preupgrade_patches

/AD_source -d /oraapp/patches/PREPROD_upg_patches/Preupgrade_patches

/10117518_CUP12 -merge_name 10117518_cup12 –admode

  • Apply the merged patch using the following command.

[applmgr@datapatroltech10117518_CUP12]$adpatch patchtop=/


_CUP12 driver=u_10117518_cup12.drv logfile=u_10117518_cup12.log


Post-install Tasks:

Run adadmin Compile/Reload Applications Database Entities menu  Compile APPS schema.

Type "No" when prompt for Run Invoker Rights processing in incremental mode [No] ?


  • Apply the merged patch according to the provided instructions.

Apply the Consolidated Upgrade Patch (CUP) for Release 12.2.0 (Patch 31856773:12.2.0) in  

pre-installation mode on the run edition file system following the provided instructions.

[applmgr@datapatroltech Preupgrade_patches]$ cd /oraapp/patches/PREPROD_upg_patches/Preupgrade_patches

[applmgr@datapatroltech Preupgrade_patches]$ unzip


[applmgr@datapatroltech Preupgrade_patches]$ cd 31856773

[applmgr@datapatroltech 31856773]$ time adpatch preinstall=y


[applmgr@datapatroltech 31856773]$ cd $AU_TOP/patch/115/driver

[applmgr@datapatroltech driver]$ admrgpch -d . -preinstall -master u10124646.drv

  • Apply the newly merged 12.2.0 upgrade driver

[applmgr@datapatroltech ~]$ cd $AU_TOP/patch/115/driver

[applmgr@datapatroltech ~]$ adpatch options=nocopyportion,nogenerateportion

  • Disable maintenance mode
  • Back up Oracle E-Business Suite (recommended)

Perform a full Oracle E-Business Suite backup of the application and database.


Finishing the 12.2.0 Upgrade:

  • Configure Release 12.2 Oracle E-Business Suite instance (required)
  • Update the DB ORACLE_HOME file system with AutoConfig and Clone files (conditional)

On the application tier as the APPLMGR user, log on to the APPL_TOP environment source the environment file, and run this perl script to create in $INST_TOP/admin/out.

perl AD_TOP/bin/

On the database tier as the ORACLE user, copy or FTP the file to and unzip the file


$ unzip -o
  • Install JRE on the database tier (conditional)

           For Oracle Database 19c:

           Install JRE 8 (on the database tier) using the following instructions:

cp -r $ORACLE_HOME/jdk/jre /appsutil

cp$ORACLE_HOME/jlib/orai18n.jar ORACLE_HOME/appsutil/jre/lib/ext
  • Create the Context Name directory in the DB oracle home Note:

           This step is not applicable for multitenant architecture.

  • Set and export the following environment variables



export ORACLE_SID=

export TNS_ADMIN=$ORACLE_HOME/network/admin/




  • Generate a new database context file as follows:

          Note: This step applies only to customers using their existing DB home during the upgrade

$ cd /appsutil/bin

$ perl

  • Clean up old node information prior to configuring the Oracle E-Business Suite Release 12.2 application tier
$ exec fnd_conc_clone.setup_clean ;
  • Synchronize values of APPLPTMP with Database Directories for PL/SQL File I/O based Concurrent Requests (required)
SQL> select value from v$parameter where name='utl_file_dir';
  • Run AutoConfig on the database tier nodes.

 For Database version Oracle 12c Release 1 ( and Database version Oracle 19c:

$ /appsutil/bin/ contextfile=file created>

  • Source the Run file system environment file

On the application tier, source the environment file for the run file system. Run the following command to confirm that the environment is properly set:

    $ echo $FILE_EDITION

 Verify that the command returns 'run'.

  • Drop table ADX_PRE_AUTOCONFIG from APPS schema

Prior to running Rapid Install to configure the Oracle E-Business Suite Release 12 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'

and upper(owner)='';

Execute the following commands to drop table ADX_PRE_AUTOCONFIG from APPS schema:

$ cd /patch/115/sql

$sqlplus APPS/ @txkDropAdxPreAutoConfig.sql
  • Configuring the Oracle E-Business Suite Release 12.2 Application Tier

You will now run Rapid Install to configure the application tier services.


Configure an Existing Instance:

 1. Ensure that the database and listeners have been started.

 2. Start the Rapid Install Wizard by entering the command rapidwiz.

      [root@datapatroltech ~]# xhost +

   [applmgr@datapatroltech ~]# export DISPLAY=localhost:10.0

   [applmgr@datapatroltech ~]# cd /oraapp/patches/StageR122/startCD/Disk1/rapidwiz

   [applmgr@datapatroltech rapidwiz]# ./rapidwiz

 3. On the Welcome Screen, click Next.

 4. Select the option Upgrade to Oracle E-Business Suite Release 12.2.0

 5. Specify Oracle Configuration Manager Details


You will now perform the relevant upgrade actions.

Configure the upgraded instance

On the Select Wizard Operation screen, choose Upgrade to Oracle Applications

12.2.0 option to indicate you are performing an upgrade.


This displays the Select  Upgrade Action screen.