0% found this document useful (0 votes)
607 views76 pages

1 Upgrade R1213 R122 12c 7.x

The document provides steps to upgrade Oracle E-Business Suite from release R12.1.3 to R12.2.10, including preparing the environment, installing R12.2 in upgrade mode, running various utilities to prepare the system for upgrade, enabling online patching, and applying upgrade patches and drivers.

Uploaded by

t.ramamohan8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
607 views76 pages

1 Upgrade R1213 R122 12c 7.x

The document provides steps to upgrade Oracle E-Business Suite from release R12.1.3 to R12.2.10, including preparing the environment, installing R12.2 in upgrade mode, running various utilities to prepare the system for upgrade, enabling online patching, and applying upgrade patches and drivers.

Uploaded by

t.ramamohan8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 76

Author – A.

Kishore
http://www.appsdba.info

Upgrade Oracle EBS from R12.1.3 to R12.2.10

Contents

Upgrade Oracle EBS from R12.1.3 to R12.2.10 ................................................................................... 1


Environment used for the Upgrade ........................................................................................................ 3
Source – Oracle EBS R12.1.3 with 12c .................................................................................................... 6
Database and System Administration Tasks ....................................................................................... 9
Take invalid count before Upgrade ............................................................................................... 10
Oracle EBS R12.2 upgrade preparation steps on OEL 7.x ................................................................. 11
Install Oracle EBS R12.2 in upgrade mode .................................................................................... 11
Upgrade R12.1.3 to Oracle E-Business R12.2................................................................................ 27
Preparing the System for Upgrade ................................................................................................... 27
Run EBS Technology Codelevel Checker (ETCC) utility on Database node .................................. 27
Upgrade DST Version .................................................................................................................... 31
Ensure that Maintenance Mode is enabled.................................................................................. 34
Update the profiles ....................................................................................................................... 34
Apply AD 12.2 upgrade driver ....................................................................................................... 34
Apply 12.2 American English upgrade patch driver ...................................................................... 38
Check Free space in tablespaces ................................................................................................... 39
Disable Maintenance Mode .......................................................................................................... 41
Compile Invalid Objects ................................................................................................................ 41
Run Rapid Install to configure ....................................................................................................... 42
Run autoconfig on apps Tier and db tier ...................................................................................... 49
Enable online patching...................................................................................................................... 54
Apply the latest Oracle E-Business Suite Online Patching Readiness and GSCC Report Patch .... 63
Fix data dictionary or time stamp mismatch ................................................................................ 64
Run the Online Patching Enablement - Readiness Reports .......................................................... 66
Verify database tablespace free space ......................................................................................... 67
Run the Online Patching Enablement - Status Report .................................................................. 68
Author – A.Kishore
http://www.appsdba.info

Apply the Online Patching Enablement patch .............................................................................. 70


Database Initialization Parameter ................................................................................................ 74
References ........................................................................................................................................ 75
Author – A.Kishore
http://www.appsdba.info

Environment used for the Upgrade


Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info

Source – Oracle EBS R12.1.3 with 12c

We are having Oracle EBS instance which is running on R12.1.3 with 12.1.0.2 database

Verify below patches and post patch steps are applied

Patch no Status
9239089 Applied
9239090 Applied
9817770 Applied
9966055 Applied
9239095 Applied
8796558 Applied
12923944 Applied
13473483 Applied
16289505 Applied
19558309 Applied
19671435 Applied
19863797 Applied
27135427 Applied
29522970 Applied
28685719 Applied
23645824 Applied

Notes:

Oracle E-Business Suite Release 12.1.3 Readme (Doc ID 1080973.1)


Oracle E-Business Suite Installation and Upgrade Notes Release 12 (12.1.1) for Linux x86-64 (Doc ID
761566.1)
Applying the Latest TXK Release Update Pack to Oracle E-Business Suite Release 12.1 (Doc ID
2421143.1)
Author – A.Kishore
http://www.appsdba.info

Start the application file and verify database version.

Custom top Information

echo $XXERP_TOP
/d02/oracle/TEST/apps/apps_st/appl/XXERP/12.0.0
Author – A.Kishore
http://www.appsdba.info

select APPLICATION_ID,APPLICATION_SHORT_NAME from fnd_application where


APPLICATION_SHORT_NAME like '%XXERP%';
Author – A.Kishore
http://www.appsdba.info

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)

Gather SYS, Fixed Object and Dictionary Statistics (required)

Gather SYS schema statistics:

begin
dbms_stats.gather_schema_stats(
'SYS',
options=>'GATHER STALE',
estimate_percent =>
DBMS_STATS.AUTO_SAMPLE_SIZE,
method_opt => 'FOR ALL COLUMNS SIZE AUTO',
cascade => TRUE);
end;
/

Fixed Object and Dictionary Statistics


These should have been previously gathered, correct and up-to-date on the preupgrade
environment.

exec dbms_stats.gather_fixed_objects_stats;
exec dbms_stats.gather_dictionary_stats;

Gather schema statistics (required)

FND_STATS.GATHER_SCHEMA_STATISTICS('ALL', 10, :parallel_degree,


'NOBACKUP', NULL, 'LASTRUN', 'GATHER AUTO', 10, 'N');
Author – A.Kishore
http://www.appsdba.info

Take invalid count before Upgrade

sqlplus / as sysdba

Spool invalid_before_upgrade.log
col object_name for a30
col owner for a20
col status for a10
col cnt for 999999
break on report on owner
compute sum of cnt on report owner
set lines 120
set pages 5000
select owner,object_name,status, 1 cnt
from dba_objects
where status!='VALID'
order by 1,2,3;
Spool off
Author – A.Kishore
http://www.appsdba.info

Oracle EBS R12.2 upgrade preparation steps on OEL 7.x


Install Oracle EBS R12.2 in upgrade mode

Installation was done using startCD 51, the installation will provide us Oracle EBS R12.2. file system
and Oracle 12c database home which we not be using.

Apply patch 32947483 on top of stage area


https://docs.oracle.com/cd/E26401_01/doc.122/e73540/T660854T660862.htm

cd /d01/oracle/software/R12/32947483

Patch the stage area using the following commands:

sh patchRIStage.sh

Re-run the buildStage.sh or buildStage.cmd script with the option Copy patches to
existing stage area.

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

$ buildStage.sh

cd /d01/oracle/software/R12/startCD/Disk1/rapidwiz
cp -R unzip /d01/oracle/software/R12/32947483/Disk1/rapidwiz
cd /d01/oracle/software/R12/32947483/Disk1/rapidwiz/bin

sh buildStage.sh
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info

Note: Stop Oracle R12.1.3 application if it is running.

su – root
cd /d01/oracle/software/R12/startCD/Disk1/rapidwiz
./rapidwiz

Note: Inventory issue refer Issue 1 at the end of the page

Click Next
Author – A.Kishore
http://www.appsdba.info

Click Next
Author – A.Kishore
http://www.appsdba.info

Click Yes
Author – A.Kishore
http://www.appsdba.info

Click Next
Author – A.Kishore
http://www.appsdba.info

Click Next
Author – A.Kishore
http://www.appsdba.info

Uncheck Use Existing Oracle Home

Click Next
Author – A.Kishore
http://www.appsdba.info

Click Next
Author – A.Kishore
http://www.appsdba.info

Click Next
Author – A.Kishore
http://www.appsdba.info

Click Next
Author – A.Kishore
http://www.appsdba.info

Click Next
Author – A.Kishore
http://www.appsdba.info

Click Next
Author – A.Kishore
http://www.appsdba.info

Click Next
Author – A.Kishore
http://www.appsdba.info

Click Next
Author – A.Kishore
http://www.appsdba.info

Click Next

Note: The above installation will create R12.1.0.2 home, File system (fs1,fs2,fs_ne)
Author – A.Kishore
http://www.appsdba.info

Upgrade R12.1.3 to Oracle E-Business R12.2

Preparing the System for Upgrade

References:

Database Preparation Guidelines for an E-Business Suite Release 12.2 Upgrade (Doc ID
1349240.1)
Oracle E-Business Suite Release 12.2: Consolidated List of Patches and Technology Bug Fixes
(Doc ID 1594274.1)

https://docs.oracle.com/cd/E26401_01/doc.122/e73540/T660854T660862.htm

Run EBS Technology Codelevel Checker (ETCC) utility on Database node

Patch – 17537119

Inventory Issue

cd $ORACLE_HOME/oui/bin
./runInstaller -silent -attachHome ORACLE_HOME="/d02/oracle/TEST/db/tech_st/12.1.0"
ORACLE_HOME_NAME="OraDb12c_home1"

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10
sh checkDBpatch.sh /d02/oracle/TEST/db/tech_st/12.1.0/appsutil/TEST_erpr12.xml

Patch 8975044
- Filename: p8975044_121020_Linux-x86-64.zip

Patch 18793246
- Filename: p18793246_121020_Generic.zip

Patch 28500816
- Filename: p28500816_121020_Linux-x86-64.zip

Patch 21321429
- Filename: p21321429_121020_Generic.zip
Author – A.Kishore
http://www.appsdba.info

Patch 29748518
- Filename: p29748518_121020_Linux-x86-64.zip

Patch 21864513
- Filename: p21864513_121020_Linux-x86-64.zip

Patch 21967332
- Filename: p21967332_121020_Linux-x86-64.zip

Patch 27264965
- Filename: p27264965_121020_Linux-x86-64.zip

Patch 25599890
- Filename: p25599890_121020_Generic.zip

Patch 28653113
- Filename: p28653113_121020_Generic.zip

Patch 29842421
- Filename: p29842421_121020_Linux-x86-64.zip

Note: Shutdown the listener and the database


Author – A.Kishore
http://www.appsdba.info

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10

cd 8975044
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
$ORACLE_HOME/OPatch/opatch apply -silent

cd ..
cd 18793246
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
$ORACLE_HOME/OPatch/opatch apply -silent

cd ..
cd 28500816
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
$ORACLE_HOME/OPatch/opatch apply -silent

cd ..
cd 21321429
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
$ORACLE_HOME/OPatch/opatch apply -silent

cd ..
cd 29748518
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
$ORACLE_HOME/OPatch/opatch apply -silent

cd ..
cd 21864513
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
$ORACLE_HOME/OPatch/opatch apply -silent

cd ..
cd 21967332
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
$ORACLE_HOME/OPatch/opatch apply -silent

cd ..
cd 27264965
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
$ORACLE_HOME/OPatch/opatch apply -silent
Author – A.Kishore
http://www.appsdba.info

cd ..
cd 25599890
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
$ORACLE_HOME/OPatch/opatch apply -silent

cd ..
cd 28653113
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
$ORACLE_HOME/OPatch/opatch apply -silent

cd ..
cd 29842421
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
$ORACLE_HOME/OPatch/opatch apply -silent

cd ..
cd 19472320
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
$ORACLE_HOME/OPatch/opatch apply -silent

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10
sh checkDBpatch.sh

./checkDBpatch.sh

Missing Bugfix: 29496791 -> Patch

Note: Unable to download above patch, so ignored it

Start the database run datapatch

cd $ORACLE_HOME/OPatch/
./datapatch
Author – A.Kishore
http://www.appsdba.info

Upgrade DST Version

Ref: Scripts to automatically update the RDBMS DST (timezone) version in an 12c or 12cR1
database . (Doc ID 1585343.1)

Instructions:

select TZ_VERSION from registry$database;

TZ_VERSION
----------
10

1) run countstatsTSTZ.sql or countstarTSTZ.sql and removed uneeded TSTZ data to reduce


the time needed to run upg_tzv_check.sql and upg_tzv_apply.sql
Author – A.Kishore
http://www.appsdba.info

cd DBMS_DST_scriptsV1.9

sqlplus "/as sysdba"


spool countstatsTSTZ.log
@countstatsTSTZ.sql
spool off

Conn / as sysdba
exec dbms_scheduler.purge_log;

2) Download the DBMS_DST_scriptsV1.9.zip file from doc id 1585343.1 and unzip.


Zip file contains 4 files: upg_tzv_check.sql and upg_tzv_apply.sql , countstatsTSTZ.sql and
countstarTSTZ.sql .
Copy the 4 files to your database server, the location of the scripts can be any directory on
the server.

3) run upg_tzv_check.sql using SQL*PLUS from the database home

Conn / as sysdba
spool upg_tzv_check.log
@upg_tzv_check.sql
spool off

4) if upg_tzv_check.sql has run sucessfully , run upg_tzv_apply.sql using SQL*PLUS from the
database home

Conn / as sysdba
spool upg_tzv_apply.log
@upg_tzv_apply.sql
spool off

select TZ_VERSION from registry$database;

TZ_VERSION
----------
18
Author – A.Kishore
http://www.appsdba.info

From R12.2 filesystem, just verify you are able to login to 12.1.0.2 database

cd /d02/oracle/TEST/fs1/EBSapps/appl

. ./APPSTEST_erpr12.env

sqlplus apps/apps

SQL> select release_name from fnd_product_groups;

RELEASE_NAME
--------------------------------------------------
12.1.3

Note: We are connected to 12c database with R12.2 binaries.

Take a backup

nohup tar -cvzf /d01/oracle/TEST.R12.2.12c.tar.gz TEST &


Author – A.Kishore
http://www.appsdba.info

Ensure that Maintenance Mode is enabled

Login into Middle Tier node

sqlplus apps/apps @$AD_TOP/patch/115/sql/adsetmmd.sql ENABLE

Update the profiles

GRANT DROP ANY PROCEDURE TO APPS;


ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED;
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
ALTER PROFILE DEFAULT LIMIT PASSWORD_LOCK_TIME UNLIMITED;
ALTER PROFILE DEFAULT LIMIT PASSWORD_GRACE_TIME UNLIMITED;

Apply AD 12.2 upgrade driver

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 Adpatch 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.

(i) As per Readme file of Patch 10117518, it requires patch#30370733:R12.AD.C


to be merged with it and apply in Entirety

So merging two patches using admergch


Author – A.Kishore
http://www.appsdba.info

Note: We should run R12.2 environment file

cd /d02/oracle/TEST/fs1/EBSapps/appl
. ./APPSTEST_erpr12.env

mkdir AD_source

cp p10117518_R12_LINUX.zip AD_source/
cp p30370733_R12.AD.C_R12_LINUX.zip AD_source/

unzip the files


cd AD_source/
unzip '*.zip'

cd ..
mkdir -p 10117518_CUP11

admrgpch -s AD_source -d 10117518_CUP11 -merge_name 10117518_CUP11 -admode

5) Compile Apps schema

1. Run adadmin -> Compile/Reload Applications Database Entities menu -> Compile APPS
schema.
2. Type "No" when prompt for Run
Author – A.Kishore
http://www.appsdba.info

adadmin menu_option=CMP_INVALID workers=8


defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt logfile=adadmin2.log

(ii) Create $ORACLE_HOME/appsutil/admin on the database server.

(iii) Copy adgrants.sql from this patch 30370733 directory to


$ORACLE_HOME/appsutil/admin.

(iv) Run the script:

$ sqlplus /nolog
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql APPS

Incase of CDB (19c)

Source the CDB environment


export ORACLE_PDB_SID=TEST

(v) Apply the merge AD patch (10117518_merge) using adpatch

cd 10117518_CUP11

adpatch driver=u_10117518_CUP11.drv logfile=10117518_cup11.log workers=8


Author – A.Kishore
http://www.appsdba.info

(4) Apply CUP patches

• Apply the Consolidated Upgrade Patch (CUP) for Release 12.2.0 (Patch
30399970:12.2.0) in pre-installation mode on the Run Edition File System.
• Note: Before applying Patch 30399970: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 /admin//preinstall on run file system after taking
the backup of the current directory.

cd 30399970

adpatch preinstall=y

(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.

Selection Recommendation
Author – A.Kishore
http://www.appsdba.info

• 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.

Apply 12.2 American English upgrade patch driver

(6) Apply Main Upgrade Driver for R12.2.0

(i) 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//preinstall are merged with the 12.2.0 upgrade driver
/patch/115/driver/u10124646.drv. Therefore, carefully evaluate the content of
the directory – /admin//preinstall and retain only those patch drivers including
u16595191.drv ; it is intended to be merged with 12.2.0 upgrade driver –
u10124646.drv

(ii) Merging patch drivers in Run File System’s /admin//preinstall with


/patch/115/driver/u10124646.drv:
Author – A.Kishore
http://www.appsdba.info

cd $AU_TOP/patch/115/driver
admrgpch -d . -preinstall -master u10124646.drv

Default merged driver by name u_merged.drv would be created in the


destination directory specified.

Check Free space in tablespaces

Ensure that all critical tablespaces including APPS_TS_TX_DATA have enough space (below
the threshold) and resize the data file as necessary

alter tablespace APPS_TS_TX_DATA add datafile


'/d02/oracle/TEST/db/apps_st/data/a_txn_data05.dbf' size 100m autoextend on next 100m maxsize
10000m;

(iii) Apply the newly merged 12.2 upgrade driver using adpatch

Run below command in VNC only

System has to run in noarchive log mode

cd /d02/oracle/TEST/fs1/EBSapps/appl
. ./APPSTEST_erpr12.env

cd $AU_TOP/patch/115/driver

adpatch options=nocopyportion,nogenerateportion logfile=u_r122merged.log


driver=u_merged.drv workers=16
Author – A.Kishore
http://www.appsdba.info

Enter Yes

ETA – 14 to 16 hours (For me it took 4 hours)

Select release_name from fnd_product_groups;


Author – A.Kishore
http://www.appsdba.info

Set the below parameter to false, otherwise u cannot connect to apps schema

sec_case_sensitive_logon boolean FALSE

Disable Maintenance Mode

Login into MT node as application user and run below:

sqlplus apps/apps @$AD_TOP/patch/115/sql/adsetmmd.sql DISABLE

Compile Invalid Objects

First keep a note of invalids before compiling:

SQL> select count(1), owner from dba_objects where status='INVALID' group by owner;

COUNT(1) OWNER
---------- ------------------------------
15 PUBLIC
8 APPS

Compile invalids:

sqlplus "/as sysdba"


@?/rdbms/admin/utlrp.sql

Invalid after compilation:

SQL> select count(1), owner from dba_objects where status='INVALID' group by owner;

COUNT(1) OWNER
---------- ------------------------------
8 APPS
Author – A.Kishore
http://www.appsdba.info

Run Rapid Install to configure

You must run Rapid Install a second time to complete the configuration using 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 Configure Upgraded Release 12.2.0 Instance.
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info

Pass the context file for Application File


echo $CONTEXT_FILE
/d02/oracle/TEST/fs1/inst/apps/TEST_erpr12/appl/admin/TEST_erpr12.xml
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info

ETA – 1 hour

Disable the maintenance mode

adadmin menu_option=DISABLE_MAINT_MODE workers=8


defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt
logfile=adadmin_DISABLE_MAINT_MODE.log
Author – A.Kishore
http://www.appsdba.info

Run autoconfig on apps Tier and db tier

On Apps Tier

perl $AD_TOP/bin/admkappsutil.pl

Starting the generation of appsutil.zip


Log file located at /d02/oracle/TEST/fs1/inst/apps/TEST_erp/admin/log/MakeAppsUt
il_04260611.log
output located at /d02/oracle/TEST/fs1/inst/apps/TEST_erp/admin/out/appsutil.zip

On db Tier

Note: Below steps are applicable if we upgrading on a new server, if it is on the same server we
can directly run autoconfig

Change directory to RDBMS Oracle Home as follows:

cd <RDBMS ORACLE_HOME>
Unzip the file with the following command:
unzip -o appsutil.zip

Note: Copy the jre folder from $IAS_ORACLE_HOME/jdk


cd /d02/oracle/TEST/fs1/FMW_Home/webtier/jdk
cp -R jre /d02/oracle/TEST/db/tech_st/12.1.0/appsutil

cd <RDBMS ORACLE_HOME>/appsutil/bin
perl adbldxml.pl

Enter Hostname of Database server: erp

Enter Port of Database server: 1566

Enter SID of Database server: TEST

Enter the value for Display Variable: erp:1.0

Context File /d02/oracle/TEST/db/tech_st/12.1.0.2/appsutil/TEST_erp.xml


already exists.

Overwriting Context File may cause loss of existing settings, hence


backing it up as: /d02/oracle/TEST/db/tech_st/12.1.0.2/appsutil/TEST_erp.xml.bak
Author – A.Kishore
http://www.appsdba.info

The context file has been created at:


/d02/oracle/TEST/db/tech_st/12.1.0.2/appsutil/TEST_erp.xml

sh adconfig.sh
Enter the full path to the Context file: /d02/oracle/TEST/db/tech_st/12.1.0.2/ap
psutil/TEST_erp.xml
Enter the APPS user password:
The log file for this session is located at: /d02/oracle/TEST/db/tech_st/11.2.0.
4/appsutil/log/TEST_erp/04260616/adconfig.log

AutoConfig is configuring the Database environment...

AutoConfig will consider the custom templates if present.


Using ORACLE_HOME location : /d02/oracle/TEST/db/tech_st/12.1.0.2
Classpath : :/d02/oracle/TEST/db/tech_st/12.1.0.2/jdbc
/lib/ojdbc6.jar:/d02/oracle/TEST/db/tech_st/12.1.0.2/appsutil/java/xmlparserv2.j
ar:/d02/oracle/TEST/db/tech_st/12.1.0.2/appsutil/java:/d02/oracle/TEST/db/tech_s
t/12.1.0.2/jlib/netcfg.jar:/d02/oracle/TEST/db/tech_st/12.1.0.2/jlib/ldapjclnt11 .jar

Using Context file : /d02/oracle/TEST/db/tech_st/12.1.0.2/appsu til/TEST_erp.xml

Context Value Management will now update the Context file


UnsatisfiedLinkError exception loading native library: njni11
java.lang.UnsatisfiedLinkError: /d02/oracle/TEST/db/tech_st/12.1.0.2/lib/libnjni 11.so:
/d02/oracle/TEST/db/tech_st/12.1.0.2/lib/libnjni11.so: wrong ELF class: E LFCLASS64
(Possible cause: architecture word width mismatch)
Updating Context file...COMPLETED

Attempting upload of Context file and templates to database...COMPLETED

Updating rdbms version in Context file to db112


Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ...

AutoConfig completed successfully.


Author – A.Kishore
http://www.appsdba.info

Run autoconfig on Apps Tier too

cd $ADMIN_SCRIPTS_HOME
sh adautocfg.sh
Enter the APPS user password:

The log file for this session is located at:


/d02/oracle/TEST/fs1/inst/apps/TEST_erp/admin/log/04280819/adconfig.log

AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present.


Using CONFIG_HOME location : /d02/oracle/TEST/fs1/inst/apps/TEST_erp
Classpath : /d02/oracle/TEST/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-
appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/d02/oracle/TEST/fs1/EBSapps/comn/java/classes

Using Context file : /d02/oracle/TEST/fs1/inst/apps/TEST_erp/appl/admin/TEST_erp.xml

Context Value Management will now update the Context file

Updating Context file...COMPLETED

Attempting upload of Context file and templates to database...COMPLETED

Configuring templates from all of the product tops...


Configuring AD_TOP........COMPLETED
Configuring FND_TOP.......COMPLETED
Configuring ICX_TOP.......COMPLETED
Configuring MSC_TOP.......COMPLETED
Configuring IEO_TOP.......COMPLETED
Configuring BIS_TOP.......COMPLETED
Configuring CZ_TOP........COMPLETED
Configuring AMS_TOP.......COMPLETED
Configuring CCT_TOP.......COMPLETED
Configuring WSH_TOP.......COMPLETED
Configuring CLN_TOP.......COMPLETED
Configuring OKE_TOP.......COMPLETED
Configuring OKL_TOP.......COMPLETED
Configuring OKS_TOP.......COMPLETED
Configuring CSF_TOP.......COMPLETED
Configuring IBY_TOP.......COMPLETED
Configuring JTF_TOP.......COMPLETED
Configuring MWA_TOP.......COMPLETED
Configuring CN_TOP........COMPLETED
Configuring CSI_TOP.......COMPLETED
Configuring WIP_TOP.......COMPLETED
Author – A.Kishore
http://www.appsdba.info

Configuring CSE_TOP.......COMPLETED
Configuring EAM_TOP.......COMPLETED
Configuring FTE_TOP.......COMPLETED
Configuring ONT_TOP.......COMPLETED
Configuring AR_TOP........COMPLETED
Configuring AHL_TOP.......COMPLETED
Configuring IES_TOP.......COMPLETED
Configuring OZF_TOP.......COMPLETED
Configuring CSD_TOP.......COMPLETED
Configuring IGC_TOP.......COMPLETED

AutoConfig completed successfully.

cd /d02/oracle/TEST/fs1/EBSapps/appl
. ./APPSTEST_erp.env

grep "s_apps_version" $CONTEXT_FILE


<config_option type="adx" oa_var="s_apps_version">12.2.0</config_option>

Start the application

cd $ADMIN_SCRIPTS_HOME

sh adstrtal.sh apps/apps
Author – A.Kishore
http://www.appsdba.info

Take a backup of the database and application


Author – A.Kishore
http://www.appsdba.info

Enable online patching

Verify that the latest patches have been applied to the database and application tier

The Oracle E-Business Suite Technology Codelevel Checker (ETCC) utility provides two scripts
you can run to help ensure you have the necessary database and application tier bugfixes installed
on your Oracle E-Business Suite Release 12.2 system. Oracle strongly recommends the use of this
utility to ensure that all required database and application tier bugfixes have been installed.

You can download ETCC from My Oracle Support (patch 17537119). ETCC maps missing
bugfixes to the default corresponding patches and displays them in a patch recommendation
summary. If your Oracle E-Business Suite Release 12.2 installation has additional patches
installed as well as the recommended patches, then you may need to install a merge patch from
Oracle Support. As well as installation instructions and basic commands, the README for this
patch includes a number of usage scenarios and examples so should be carefully reviewed before
running ETCC.

Create below file to avoid prompting while applying patches using OPatch

$ORACLE_HOME/OPatch/ocm/bin/emocmrsp -no_banner -output


/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

------------------------------ Middle Tier patches -----------------------------

ETCC

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10
./checkMTpatch.sh

-------------------------------------------------------------------------------
Oracle Forms and Reports 10.1.2.3.0
-------------------------------------------------------------------------------
Patch 26825525
- Filename: p26825525_101232_LINUX.zip

Patch 25342269
- Filename: p25342269_101232_Generic.zip

Patch 27491934
- Filename: p27491934_101232_LINUX.zip

-------------------------------------------------------------------------------
Oracle Fusion Middleware (FMW) - Web Tier 11.1.1.9.0
-------------------------------------------------------------------------------
Author – A.Kishore
http://www.appsdba.info

Patch 22288381
- Filename: p22288381_111190_Generic.zip

Patch 27369643
- Filename: p27369643_111190_Linux-x86-64.zip

Patch 27301611
- Filename: p27301611_111190_Linux-x86-64.zip

-------------------------------------------------------------------------------
RSF within FMW Web tier 11.1.0.7.0
-------------------------------------------------------------------------------
Patch 22290164
- Filename: p22290164_111070_Linux-x86-64.zip

-------------------------------------------------------------------------------
Oracle Fusion Middleware (FMW) - oracle_common 11.1.1.9.0
-------------------------------------------------------------------------------
Patch 9905685
- Filename: p9905685_111190_Generic.zip

Patch 17428617
- Filename: p17428617_111190_Generic.zip

Patch 21366277
- Filename: p21366277_111190_Generic.zip

Patch 21628307
- Filename: p21628307_111190_Generic.zip

Patch 24606362
- Filename: p24606362_111190_Generic.zip

Patch 24843064
- Filename: p24843064_111190_Generic.zip

Patch 13544814
- Filename: p13544814_111190_Generic.zip

Patch 16089637
- Filename: p16089637_111190_Generic.zip

Patch 20141119
Author – A.Kishore
http://www.appsdba.info

- Filename: p20141119_111190_Generic.zip

Patch 27120730
- Filename: p27120730_111190_Generic.zip

Patch 27212806
- Filename: p27212806_111190_Generic.zip

Patch 28708563
- Filename: p28708563_111190_Generic.zip

-------------------------------------------------------------------------------
Oracle WebLogic Server (WLS) 10.3.6.0.7
-------------------------------------------------------------------------------
Patch 27395085 [SU Patch [GFWX]: WLS PSU 10.3.6.0.180417]
- Filename: p27395085_1036_Generic.zip

Apply the required patches and rerun this script.

+-----------------------------------------------------------------------------+
A consolidated zip file with the required application tier patches is
available on My Oracle Support via:

Patch 29778100
- EBS RELEASE 12.2 CONSOLIDATED FMW FIXES FOR JUL 2019

*********************************** FORMS PATCH *******************************

Patch 26825525
- Filename: p26825525_101232_LINUX.zip

Patch 25342269
- Filename: p25342269_101232_Generic.zip

Patch 27491934
- Filename: p27491934_101232_LINUX.zip
Author – A.Kishore
http://www.appsdba.info

How to create response file

$ORACLE_HOME/OPatch/ocm/bin/emocmrsp -no_banner -output


/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

Apply patches using the response file

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-64/forms/10.1.2.3.0
cd 26825525
$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf
/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-64/forms/10.1.2.3.0
cd 25342269
$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf
/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-64/forms/10.1.2.3.0
cd 27491934
$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf
/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

-------------------------------------------------------------------------------
Oracle Fusion Middleware (FMW) - Web Tier 11.1.1.9.0
-------------------------------------------------------------------------------
Patch 22288381
- Filename: p22288381_111190_Generic.zip

Patch 27369643
- Filename: p27369643_111190_Linux-x86-64.zip

Patch 27301611
- Filename: p27301611_111190_Linux-x86-64.zip

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/webtier/11.1.1.9.0/22288381
export ORACLE_HOME=/d02/oracle/TEST/fs1/FMW_Home/webtier

$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf


/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp
Author – A.Kishore
http://www.appsdba.info

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/webtier/11.1.1.9.0/27369643
export ORACLE_HOME=/d02/oracle/TEST/fs1/FMW_Home/webtier
$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf
/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/webtier/11.1.1.9.0/27301611
export ORACLE_HOME=/d02/oracle/TEST/fs1/FMW_Home/webtier
$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf
/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

-------------------------------------------------------------------------------
Oracle Fusion Middleware (FMW) - oracle_common 11.1.1.9.0
-------------------------------------------------------------------------------
Patch 9905685
- Filename: p9905685_111190_Generic.zip

Patch 17428617
- Filename: p17428617_111190_Generic.zip

Patch 21366277
- Filename: p21366277_111190_Generic.zip

Patch 21628307
- Filename: p21628307_111190_Generic.zip

Patch 24606362
- Filename: p24606362_111190_Generic.zip

Patch 24843064
- Filename: p24843064_111190_Generic.zip

Patch 13544814
- Filename: p13544814_111190_Generic.zip

Patch 16089637
- Filename: p16089637_111190_Generic.zip

Patch 20141119
- Filename: p20141119_111190_Generic.zip

Patch 27120730
- Filename: p27120730_111190_Generic.zip
Author – A.Kishore
http://www.appsdba.info

Patch 27212806
- Filename: p27212806_111190_Generic.zip

Patch 28708563
- Filename: p28708563_111190_Generic.zip

export ORACLE_HOME=/d02/oracle/TEST/fs1/FMW_Home/oracle_common

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/oracle_common/11.1.1.9.0/9905685/oui

$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf


/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

export ORACLE_HOME=/d02/oracle/TEST/fs1/FMW_Home/oracle_common

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/oracle_common/11.1.1.9.0/17428617
$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf
/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

export ORACLE_HOME=/d02/oracle/TEST/fs1/FMW_Home/oracle_common
cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/oracle_common/11.1.1.9.0/21366277
$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf
/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/oracle_common/11.1.1.9.0/21628307

$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf


/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/oracle_common/11.1.1.9.0/24606362

$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf


/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp
Author – A.Kishore
http://www.appsdba.info

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/oracle_common/11.1.1.9.0/24843064/oui
$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf
/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/oracle_common/11.1.1.9.0/13544814
$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf
/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/oracle_common/11.1.1.9.0/16089637
$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf
/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/oracle_common/11.1.1.9.0/20141119
$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf
/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/oracle_common/11.1.1.9.0/27120730/oui
$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf
/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/oracle_common/11.1.1.9.0/27212806
$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf
/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/oracle_common/11.1.1.9.0/28708563
$ORACLE_HOME/OPatch/opatch apply -silent -ocmrf
/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/ocm_opatch.rsp
Author – A.Kishore
http://www.appsdba.info

-------------------------------------------------------------------------------
Oracle WebLogic Server (WLS) 10.3.6.0.7
-------------------------------------------------------------------------------
Patch 27395085 [SU Patch [GFWX]: WLS PSU 10.3.6.0.180417]
- Filename: p27395085_1036_Generic.zip

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded

Follow these steps to resolve the issue:

Go to $FMW_HOME/utils/bsu
Edit bsu.sh (for UNIX) or bsu.cmd (for Windows).
Here you will find the following: MEM_ARGS="-Xms256m -Xmx512m"
Increase these values as needed: for example, to "-Xms4096m -Xmx4096m".

Download p27395085_1036_Generic.zip and copy to $FMW_HOME/utils/bsu/cache_dir

cd /d01/oracle/R12.2_patches
cp p27395085_1036_Generic.zip $FMW_HOME/utils/bsu/cache_dir
cd $FMW_HOME/utils/bsu/cache_dir
unzip p27395085_1036_Generic.zip

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-64/wls/10.3.6.0.180417
cp * $FMW_HOME/utils/bsu/cache_dir

cd $FMW_HOME/utils/bsu/cache_dir
unzip '*.zip'

cd $FMW_HOME/utils/bsu
./bsu.sh -remove -patchlist=CW9T -prod_dir=$FMW_HOME/wlserver_10.3
./bsu.sh -remove -patchlist=1LRI -prod_dir=$FMW_HOME/wlserver_10.3
./bsu.sh -remove -patchlist=2GYW -prod_dir=$FMW_HOME/wlserver_10.3
./bsu.sh -remove -patchlist=BLTG -prod_dir=$FMW_HOME/wlserver_10.3
./bsu.sh -remove -patchlist=VKXF -prod_dir=$FMW_HOME/wlserver_10.3
./bsu.sh -remove -patchlist=YHJK -prod_dir=$FMW_HOME/wlserver_10.3
./bsu.sh -remove -patchlist=Y5AP -prod_dir=$FMW_HOME/wlserver_10.3
./bsu.sh -remove -patchlist=FCX7 -prod_dir=$FMW_HOME/wlserver_10.3
Author – A.Kishore
http://www.appsdba.info

./bsu.sh -install -patch_download_dir=$FMW_HOME/utils/bsu/cache_dir -patchlist=GFWX -


prod_dir=$FMW_HOME/wlserver_10.3

export FMW_HOME=/d02/oracle/TEST/fs1/FMW_Home
cd $FMW_HOME/utils/bsu
./bsu.sh -install -patch_download_dir=$FMW_HOME/utils/bsu/cache_dir -patchlist=YHJK -
prod_dir=$FMW_HOME/wlserver_10.3
./bsu.sh -install -patch_download_dir=$FMW_HOME/utils/bsu/cache_dir -patchlist=S5C9 -
prod_dir=$FMW_HOME/wlserver_10.3
./bsu.sh -install -patch_download_dir=$FMW_HOME/utils/bsu/cache_dir -patchlist=HMR4 -
prod_dir=$FMW_HOME/wlserver_10.3
./bsu.sh -install -patch_download_dir=$FMW_HOME/utils/bsu/cache_dir -patchlist=F5QI -
prod_dir=$FMW_HOME/wlserver_10.3
./bsu.sh -install -patch_download_dir=$FMW_HOME/utils/bsu/cache_dir -patchlist=DI8E -
prod_dir=$FMW_HOME/wlserver_10.3

./bsu.sh -install -patch_download_dir=$FMW_HOME/utils/bsu/cache_dir -patchlist=EN8U -


prod_dir=$FMW_HOME/wlserver_10.3
./bsu.sh -install -patch_download_dir=$FMW_HOME/utils/bsu/cache_dir -patchlist=XNBA -
prod_dir=$FMW_HOME/wlserver_10.3
./bsu.sh -install -patch_download_dir=$FMW_HOME/utils/bsu/cache_dir -patchlist=TK1T -
prod_dir=$FMW_HOME/wlserver_10.3
./bsu.sh -remove -patchlist=CIH8 -prod_dir=$FMW_HOME/wlserver_10.3
./bsu.sh -install -patch_download_dir=$FMW_HOME/utils/bsu/cache_dir -patchlist=DN1F -
prod_dir=$FMW_HOME/wlserver_10.3

Verify if all the patches are applied

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10
./checkMTpatch.sh
Author – A.Kishore
http://www.appsdba.info

Apply the latest Oracle E-Business Suite Online Patching Readiness and GSCC Report
Patch

Ref: Using the Online Patching Readiness Report in Oracle E-Business Suite Release 12.2 (Doc ID
1531121.1)

Enable Maintenance mode and apply the patch via adpatch


Apply patch 31026891:R12.AD.C

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10
cd 31026891
cp admin/adgrants.sql /tmp

On dbTier

sqlplus "/as sysdba" @adgrants APPS

Solution:
The above warnings messages can be ignored as per Doc ID 2507343.1.

adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt logfile=u31026891.log


patchtop=/d01/oracle/R12.2_patches/R12.1.3toR12.2.10/31026891 driver=u31026891.drv
workers=8 options=hotpatch

The patch delivers a new set of Online Patching Development standards for Oracle E-Business Suite
Release 12.2, plus a set of reports that will help you analyze the dependencies between database
objects as specified by the new rules used by the Edition Based Redefinition (EBR) feature that was
introduced in Oracle Database Release 12c.
Author – A.Kishore
http://www.appsdba.info

Fix data dictionary or time stamp mismatch

Using the Online Patching Readiness Report in Oracle E-Business Suite


Release 12.2 (Doc ID 1531121.1)
https://www.ateam-oracle.com/post/ebs-upgrade-on-oci-made-simpler

Step 1
------
1. Run the file $AD_TOP/patch/115/sql/adzddtsfix.sql (Following the usage instructions provided in
it).
2. Run the $AD_TOP/sql/ADZDDBCC.sql script to identify whether the data dictionary corruption is
still present.

a. If no corruption is found, proceed with the upgrade.


b. If corruption is still present, follow Step 2 below.

Step 2
------
Fix Logical data dictionary corruption (missing-parent)

Follow this step only when logical data-dictionary corruption is present.


1. Connect to database as "SYSDBA". 2. Run the $AD_TOP/patch/115/sql/adzddmpfix.sql 3. Run the
$AD_TOP/sql/ADZDDBCC.sql script again to identify whether the logical data dictionary corruption is
still present.
a. If no corruption is found, proceed with the upgrade or adop patching-cycle.
b. If corruption is still present, contact Oracle Support and log a bug.

Step 3
------
Follow this step only when data dictionary corruption is still present after following Step 1 above.
Author – A.Kishore
http://www.appsdba.info

Step 1

sqlplus apps/apps @$AD_TOP/patch/115/sql/adzddtsfix.sql

◼ Identify all the issues

sqlplus apps/apps @$AD_TOP/sql/ADZDDBCC.sql

If corruption is present, follow next step

◼ Identify Database data dictionary corruption tables

sqlplus apps/apps @$AD_TOP/patch/115/sql/adzddtsfix.sql

exec dbms_utility.invalidate(208637,NULL,0);
exec dbms_utility.invalidate(208637,NULL,0);
exec dbms_utility.invalidate(218527,NULL,0);
exec dbms_utility.invalidate(109900,NULL,0);

- Fix the Database data dictionary corruption related tables

sqlplus apps/apps @adzddtsfixout.sql

◼ Re-verify
Author – A.Kishore
http://www.appsdba.info

sqlplus apps/apps @$AD_TOP/sql/ADZDDBCC.sql

Run the Online Patching Enablement - Readiness Reports

Create the online patching log file location and set it as the current directory

mkdir $LOG_HOME/appl/op
cd $LOG_HOME/appl/op

Run the following Readiness reports:

ADZDPSUM.sql
Provides a summary of the schemas that will be editioned and also schemas with objects that
depend on E-Business Suite code that is recommended to be editioned. You can register these
schemas with the application by running the commands that will be listed in the last section of this
report. Oracle recommends that you run this report again after the custom schemas are registered
with the application. You should run ADZDPSUM.sql repeatedly to handle dependent schemas until
no further EBR violations are reported.

Note: Enter the system password when prompted. You can ignore APPS_NE, and ODM schemas
which may appear in section 2 of the report.

sqlplus system/manager @$AD_TOP/sql/ADZDPSUM.sql


mv adzdpsum.txt adzdpsum_pre_dbprep.txt

ADZDPMAN.sql

Lists objects with different categories of violations to EBR rules that must be fixed prior to running
the enablement process to avoid errors during this process. Oracle recommends that you run this
after all custom schemas are registered with the application according to instructions in the above
report ADZDPSUM.sql.

Note: Enter the system password when prompted.

sqlplus system/manager @$AD_TOP/sql/ADZDPMAN.sql


mv adzdpman.txt adzdpman_pre_dbprep.txt
Author – A.Kishore
http://www.appsdba.info

ADZDPAUT.sql
This report lists all the objects with violations to the EBR rules that will be fixed automatically from
the enablement process. This report is provided for information purposes and no action should be
taken from this report.
Note: Enter the system password when prompted.

sqlplus system/manager @$AD_TOP/sql/ADZDPAUT.sql


mv adzdpaut.txt adzdpaut_pre_dbprep.txt

Verify database tablespace free space

Run the following report to retrieve the current tablespace free space:

perl $AD_TOP/bin/adzdreport.pl apps

1. Select option 3 - 'Other Generic Reports'


2. Select the next option - 'Free Space in Important Tablespaces'
3.Enter the password when prompted.
4. Ensure the following:
• SYSTEM Tablespace: has a minimum of 25 GB of free space
• APPS_TS_SEED Tablespace: has a minimum of 20 GB of free space
APPS_TS_SEED is used to host all tables that have been registered as seed tables and that require
seed data storage infrastructure.
• Add necessary space to the tablespaces if they do not contain the required free Space
Author – A.Kishore
http://www.appsdba.info

ALTER TABLESPACE APPS_TS_TX_DATA ADD DATAFILE


'/d02/oracle/TEST/db/apps_st/data/a_txn_data06.dbf' SIZE 100M AUTOEXTEND ON MAXSIZE
20000M;

alter tablespace APPS_TS_SEED add datafile '/d02/oracle/TEST/db/apps_st/data/a_ref04.dbf' size


100m autoextend on next 100m maxsize 20000m;

alter tablespace system add datafile '/d02/oracle/TEST/db/apps_st/data/system13.dbf' size 100m


autoextend on next 100m maxsize 25000m;

Run the Online Patching Enablement - Status Report

This report provides an overall status of the enabling online patching process. You can run it before,
during, and after the enablement patch is applied. At this stage,you will receive report results before
you enable online patching.

select object_name,object_type from dba_objects where object_name like 'AD_ZD%' and


status='INVALID';

1. Set the current directory to $LOG_HOME/appl/op:

cd $LOG_HOME/appl/op

2. Run the report using the following command. Ensure that you verify any invalid objects at this
stage. Take special note to ensure that all online patching objects (objects that match the pattern
'AD_ZD%') are valid:

Select status from dba_objects where object_name = 'AD_ZD_PREP'

OBJECT_NAME
--------------------------------------------------------------------------------
OBJECT_TYPE
-------------------
AD_ZD_PREP
PACKAGE BODY
Author – A.Kishore
http://www.appsdba.info

Patch 13543062 Fails With Error: ORA-06508: PL/SQL: could not find
program unit being called: APPS.AD_ZD_PREP (Doc ID 2194145.1)

1. Confirm if the package 'xdb_migrateschema' exists using:

select owner, object_name from dba_objects where object_name like upper


('xdb_migrateschema');

If it does NOT exist, then use the following scripts to create it and confirm results again
using the above query:

conn / as sysdba
@?/rdbms/admin/dbmsxdbschmig.sql
@?/rdbms/admin/prvtxdbschmig.plb

2. Recompile the package AD_ZD_PREP and ensure it compiles successfully.

3. Restart the failed worker and confirm the patch completes successfully.

R12.2 How To Resolve Invalid Object APPS.AD_ZD_PREP (Doc ID 1664508.1)

Solution:

Run post install steps of every database patch

grant execute on DBMS_OBJECTS_APPS_UTILS to apps;

grant execute on sys.XDB_MIGRATESCHEMA to apps;

grant select,insert,update,delete on sys.xdb$moveSchemaTab to apps;

alter package APPS.AD_ZD_PREP compile body;

Package body altered.


Author – A.Kishore
http://www.appsdba.info

Please see (Online Patch Enabling Patch Is Failing on ADZDPREP.sql (Doc ID 1606431.1)).

This report provides an overall status of the enabling online patching process. You can run it before,
during, and after the enablement patch is applied

sqlplus apps/apps @$AD_TOP/sql/ADZDEXRPT.sql

Note: Enter the apps password when prompted.

3. Save the output as pre_dbprep for future reference, such as:

mv adzdexrpt.txt adzdexrpt_pre_dbprep.txt

Apply the Online Patching Enablement patch

Performance Fix: ADZDWRKR.sql Is Running For Long Time (Doc ID 1946877.1):

Update parameter : max_dump_file_size = unlimited

If adpatch not started try with below statement then restart(Doc ID 1908956.1):

export ENABLE_ADPATCH=YES

Download and apply the Online Patching Enablement patch: 13543062:R12.AD.C.

Use Autopatch in hotpatch mode to apply the patch (adpatch options=hotpatch,forceapply).

Note : I had issue with permissions, it was resolved after running adgrants from the patch 31026891

{Services are down}

cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/13543062

adpatch options=hotpatch,forceapply workers=12


Author – A.Kishore
http://www.appsdba.info

begin
*
ERROR at line 1:
ORA-20001: ORA-01031: insufficient privileges
ORA-06512: at "APPS.AD_ZD", line 29
ORA-06512: at "APPS.AD_ZD_PREP", line 471
ORA-06512: at line 4

Run adgrants from patch – 31026891


Author – A.Kishore
http://www.appsdba.info

Verify the Patch status using below sql:

sqlplus apps/apps @$AD_TOP/sql/ADZDSHOWDDLS.sql

This report lists a count of the DDL statements that are required to EBR enable your environment.
The report is organized by outcome of execution: ‘Successfully Executed’, ‘Not Executed’, and ‘Failed
Execution’. At the end of the patch application the report should have a zero count in the sections:
‘Not Executed’ and ‘Failed Execution’. If the report contains ‘Not Executed’ and ‘Failed Execution’
items, then report these failures to Oracle Support. You will be asked to provide the output from the
report, the patch log and all worker logs, and the online patching enablement status report output. If
there is any worker failure during the Online Enablement patch, you should not ignore or skip the
failed error. The issue should be addressed before restarting the worker. Ignoring or skipping the
error can cause database corruption.

DOC>
DOC> Count of Current DDL Jobs per Phase and Status
DOC>
DOC> Phases:
DOC> 1. DROP_UNUSED_OBJECT : Remove obsolete objects from XLA schema.
DOC> 2. COPY_TYPE : Create EBS Types in APPS_NE schema, stop Advanced Queues.
DOC> 3. COMPILE_TYPE : Recompile APPS_NE schema.
DOC> 4. COPY_EVOLVED_TYPE : Create evolved types in APPS_NE schema.
DOC> 5. FIX_COLUMN : Fix TYPE reference to APPS_NE.<type> at table and AQ level.
DOC> 6. FIX_TYPE : Additional check, Fix TYPE reference and then drop TYPE
DOC> from source schema.
DOC> 7. FIX_PUBLIC_SYNONYM : Fix public synonyms.
DOC> 8. RECREATE_AQ_OBJECT : Re-create internal AQ objects after TYPE Ref fix.
DOC> 9. DROP_OBJECT : Drop objects like CTXSYS.<package>, CTXSYS.<synonym> and others if
any.
DOC> 10. ENABLE_EDITIONING : Enable registered schemas for Online Patching.
DOC> 11. UPGRADE_TABLE : Create Editioning View cover layer over EBS data model.
DOC> 12. UPGRADE_SEED : Upgrade seed data tables to support edition based storage.
DOC> 13. COLLECT_STATS : Gather Statistics on Seed Data Tables after upgrade.
DOC> 14. UPGRADE_MVIEW : Convert Materialized Views with expand query.
DOC> 15. CUTOVER : Perform maintenance operations on columns and indexes after adop
APPLY phase
DOC> and before actually changing Patch-Edition as Default-Edition.
DOC> 16. ACTUALIZE_ALL : Actualize all editioned objects into the current edition.
DOC> 17. CLEANUP : Cleanup task after adop CUTOVER.
DOC>
DOC>
DOC> Results spooled to: ADZDSHOWDDLS.out
DOC>#
Author – A.Kishore
http://www.appsdba.info

Phase Count Status


-------------------- ------- ------------------------------
COPY_TYPE 41 S - Successfully Executed

COMPILE_TYPE 1 S - Successfully Executed

COPY_EVOLVED_TYPE 1 S - Successfully Executed

FIX_COLUMN 2 S - Successfully Executed

FIX_TYPE 22 S - Successfully Executed

FIX_PUBLIC_SYNONYM 4486 S - Successfully Executed

RECREATE_AQ_OBJECT 11 S - Successfully Executed

DROP_OBJECT 10 S - Successfully Executed

ENABLE_EDITIONING 163 S - Successfully Executed

UPGRADE_TABLE 17843 S - Successfully Executed

UPGRADE_SEED 2605 S - Successfully Executed

COLLECT_STATS 2605 S - Successfully Executed

UPGRADE_MVIEW 120 S - Successfully Executed

13 rows selected.

DOC>
DOC> Currently running phase is:
DOC>
DOC>#

no rows selected

Re-run the Online Patching Enablement Readiness Report after the Online Patching Enablement
patch has been applied
Author – A.Kishore
http://www.appsdba.info

Re-run the Online Patching Enablement Readiness Report after the Online

Patching Enablement patch has been applied

(i). Set the current directory to $LOG_HOME/appl/op:

cd $LOG_HOME/appl/op
(ii). Run the Readiness Report after the enablement patch completes:

sqlplus system @$AD_TOP/sql/ADZDPSUM.sql


mv adzdpsum.txt adzdpsum_post_dbprep.txt
sqlplus system @$AD_TOP/sql/ADZDPMAN.sql
mv adzdpman.txt adzdpman_post_dbprep.txt
sqlplus system @$AD_TOP/sql/ADZDPAUT.sql
mv adzdpaut.txt adzdpaut_post_dbprep.txt
The purpose of running this report at this stage is to ensure that all EBR violations that could have
appeared before enabling the online patching feature are fixed.

Database Initialization Parameter

Ensure the below parameters are set

service_names=TEST,ebs_patch

recyclebin is set to OFF

_SYSTEM_TRIG_ENABLED is set to true


Author – A.Kishore
http://www.appsdba.info

References

Database Preparation Guidelines for an E-Business Suite Release 12.2 Upgrade (Doc ID 1349240.1)

Database Preparation Guidelines for an Oracle E-Business Suite Release 12.2 Upgrade
https://docs.oracle.com/cd/E26401_01/doc.122/e73540.pdf
https://jhlui1.wordpress.com/2014/07/28/the-r12-2-3-e-business-suite-upgrade-process-from-12-1-
3-6/
http://kkasarla1.blogspot.in/2013/06/ocm-configuration.html
https://community.oracle.com/thread/3653264?start=0&tstart=0
http://yoonusp.blogspot.in/2013/12/online-patching-enablement.html

https://jhlui1.wordpress.com/tag/upgrade/
http://anjaniappsdba.blogspot.in/2016/09/database-upgrade-from-11g11107-to.html

R11i / R12.0 / R12.1 : Cloning Oracle Application with Rapid Clone - Database (9i/10g/11g) Using Hot
Backup on Open Database (Doc ID 760772.1)

Cloning Oracle Applications Release 12 with Rapid Clone (Doc ID 406982.1)

Oracle E-Business Suite Installation and Upgrade Notes Release 12 (12.1.1) for Linux x86-64 (Doc ID
761566.1)

Interoperability Notes: Oracle E-Business Suite Release 12.2 with Oracle Database 19c (Doc ID
2552181.1)

https://oracle-base.com/articles/19c/upgrading-to-19c

https://wadhahdaouehi.tn/2019/08/upgrade-oracle-database-from-12c-12-1-0-2-to-19c-19-3-0-0-
using-the-rman-backup/

https://techgoeasy.com/step-step-upgrade-steps-r12-2/

• Database Preparation Guidelines for an Oracle E-Business Suite Release


12.2 Upgrade (Doc ID: 1349240.1).
Author – A.Kishore
http://www.appsdba.info

• Oracle E-Business Suite Documentation Resources, Release 12.2


document (Doc ID: 1498411.1)
• Oracle® E-Business Suite Upgrade Guide Release 12.0 and 12.1 to 12.2
Part No E48839-02
• Oracle E-Business Suite Release Notes, Release 12.2 (Doc ID 1320300.1)
• Oracle E-Business Suite Release 12.2.2 Readme (Doc ID 1506669.1)
• Online Patching Readiness Report in Oracle E-Business Suite Release 12.2
(Doc ID 1531121.1)
• Applying the 12.2.2 AD and TXK Release Update Pack (Doc ID 1560906.1)
• 12.2 Information Center: Doc ID: 1581299.1
• Oracle E-Business Suite Release 12.2: Upgrade Sizing and Best Practices
Doc ID: 1597531.1
• Best Practices for Minimizing Oracle E-Business Suite Release 12 Upgrade
Downtime Doc ID: 1581549.1
• R11i / R12 : Planning Your Oracle E-Business Suite (EBS) Upgrade from
Release 11i to Release 12 Doc ID:1406960.1
• http://docs.oracle.com/cd/E26401_01/doc.122/e48839.pdf 12.0 – 12.1 to
12.2
• http://docs.oracle.com/cd/E26401_01/doc.122/e48834.pdf 11.5.10.2 to
12.2
• Oracle E-Business Suite Release 12.2 Technology Stack Documentation
Roadmap (Doc ID 1934915.1)
• Oracle E-Business Suite Release 12.2.5 Readme (Doc ID 1983050.1)
• Oracle E-Business Suite Release Notes, Release 12.2 (Doc 1320300.1)
• Oracle E-Business Suite Release 12.2.4 Readme (Doc 1617458.1)
• Oracle E-Business Suite Release 12.2.5 Readme (Doc 1983050.1)
• Oracle E-Business Suite Release 12.2: Online Patching FAQ (Doc
1583902.1)
• Related Articles on Oracle E-Business Technology Blog-
https://blogs.oracle.com/stevenChan
• Oracle E-Business Suite Release 12.2: Consolidated List of Patches and
Technology Bug Fixes (Doc ID 1594274.1)
• Cloning Oracle E-Business Suite Release 12.2 with Rapid Clone (Doc ID
1383621.1)
• Document 2666934.1, Oracle E-Business Suite Release 12.2.10 Readme

You might also like