1 Upgrade R1213 R122 12c 7.x
1 Upgrade R1213 R122 12c 7.x
Kishore
http://www.appsdba.info
Contents
We are having Oracle EBS instance which is running on R12.1.3 with 12.1.0.2 database
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:
echo $XXERP_TOP
/d02/oracle/TEST/apps/apps_st/appl/XXERP/12.0.0
Author – A.Kishore
http://www.appsdba.info
Parameters for Oracle E-Business Suite Release 12.2 (Doc ID: 396009.1)
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;
/
exec dbms_stats.gather_fixed_objects_stats;
exec dbms_stats.gather_dictionary_stats;
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
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.
cd /d01/oracle/software/R12/32947483
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
su – root
cd /d01/oracle/software/R12/startCD/Disk1/rapidwiz
./rapidwiz
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
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
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
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
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
cd $ORACLE_HOME/OPatch/
./datapatch
Author – A.Kishore
http://www.appsdba.info
Ref: Scripts to automatically update the RDBMS DST (timezone) version in an 12c or 12cR1
database . (Doc ID 1585343.1)
Instructions:
TZ_VERSION
----------
10
cd DBMS_DST_scriptsV1.9
Conn / as sysdba
exec dbms_scheduler.purge_log;
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
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
RELEASE_NAME
--------------------------------------------------
12.1.3
Take a backup
• 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.
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/
cd ..
mkdir -p 10117518_CUP11
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
$ sqlplus /nolog
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql APPS
cd 10117518_CUP11
• 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
Selection Recommendation
Author – A.Kishore
http://www.appsdba.info
cd $AU_TOP/patch/115/driver
admrgpch -d . -preinstall -master u10124646.drv
Ensure that all critical tablespaces including APPS_TS_TX_DATA have enough space (below
the threshold) and resize the data file as necessary
(iii) Apply the newly merged 12.2 upgrade driver using adpatch
cd /d02/oracle/TEST/fs1/EBSapps/appl
. ./APPSTEST_erpr12.env
cd $AU_TOP/patch/115/driver
Enter Yes
Set the below parameter to false, otherwise u cannot connect to apps schema
SQL> select count(1), owner from dba_objects where status='INVALID' group by owner;
COUNT(1) OWNER
---------- ------------------------------
15 PUBLIC
8 APPS
Compile invalids:
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
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
ETA – 1 hour
On Apps Tier
perl $AD_TOP/bin/admkappsutil.pl
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
cd <RDBMS ORACLE_HOME>
Unzip the file with the following command:
unzip -o appsutil.zip
cd <RDBMS ORACLE_HOME>/appsutil/bin
perl adbldxml.pl
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
cd $ADMIN_SCRIPTS_HOME
sh adautocfg.sh
Enter the APPS user password:
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
cd /d02/oracle/TEST/fs1/EBSapps/appl
. ./APPSTEST_erp.env
cd $ADMIN_SCRIPTS_HOME
sh adstrtal.sh apps/apps
Author – A.Kishore
http://www.appsdba.info
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
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
+-----------------------------------------------------------------------------+
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
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
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
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
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
cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/etcc-bundle/LINUX_X86-
64/oracle_common/11.1.1.9.0/24606362
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
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".
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
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
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)
cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10
cd 31026891
cp admin/adgrants.sql /tmp
On dbTier
Solution:
The above warnings messages can be ignored as per Doc ID 2507343.1.
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
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.
Step 2
------
Fix Logical data dictionary corruption (missing-parent)
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
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);
◼ Re-verify
Author – A.Kishore
http://www.appsdba.info
Create the online patching log file location and set it as the current directory
mkdir $LOG_HOME/appl/op
cd $LOG_HOME/appl/op
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.
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.
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.
Run the following report to retrieve the current tablespace free space:
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.
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:
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)
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
3. Restart the failed worker and confirm the patch completes successfully.
Solution:
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
mv adzdexrpt.txt adzdexrpt_pre_dbprep.txt
If adpatch not started try with below statement then restart(Doc ID 1908956.1):
export ENABLE_ADPATCH=YES
Note : I had issue with permissions, it was resolved after running adgrants from the patch 31026891
cd /d01/oracle/R12.2_patches/R12.1.3toR12.2.10/13543062
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
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
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
cd $LOG_HOME/appl/op
(ii). Run the Readiness Report after the enablement patch completes:
service_names=TEST,ebs_patch
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)
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/