3.1 Upgrading Oracle EBS Database to 19c_7
3.1 Upgrading Oracle EBS Database to 19c_7
Kishore
http://www.appsdba.info
Contents
Upgrading Oracle EBS Database to 19c ........................................................................................................ 3
About the Upgrade ................................................................................................................................... 3
Environment: ............................................................................................................................................ 3
Here are support notes that we are going to follow ................................................................................ 5
Let’s download 19.3 from below links ...................................................................................................... 5
Highlevel Steps .......................................................................................................................................... 6
Before the Database Installation .......................................................................................................... 6
After the Database Upgrade ................................................................................................................. 6
Convert Database to Multitenant Architecture .................................................................................... 6
Before the Database Installation .............................................................................................................. 7
Run hcheck.sql .......................................................................................................................................... 7
Apply required patches on R12.2.x ....................................................................................................... 8
Migrate Autoconfig to DB Tier: ........................................................................................................... 10
Create the initialization parameter setup files: ...................................................................................... 11
Install Oracle Database 19c................................................................................................................. 12
Install vncserver .................................................................................................................................. 12
Disable firewall in Linux 7 ................................................................................................................... 12
Upgrade Oracle Home from 19.3 to 19.12 ......................................................................................... 24
Apply the latest 19c Database Patches: .............................................................................................. 27
Create the nls/data/9idata directory .................................................................................................. 28
Create appsutil.zip and copy it to the database tier ........................................................................... 28
Install JRE 8 ....................................................................................................................................... 29
Create the container database - DEVCDB ........................................................................................... 29
Create the CDB MGDSYS schema........................................................................................................ 53
Create the CDB TNS Files: ................................................................................................................... 53
Shutdown the CDB now............................................................................................................. 54
Author – A.Kishore
http://www.appsdba.info
• In this article, we are going to see how to upgrade Oracle EBS Suite R12.2.10 with
Oracle Database 12c database to Oracle Database 19c (19.12). When upgrading your
Oracle E-Business Suite to Oracle Database 19c, your database will be converted to the
multitenant architecture, with a Container Database (CDB) and a single Pluggable
Database. Only multitenant architecture databases are certified for Oracle E-Business
Suite with Oracle Database 19c.
• During the upgrade, you will also perform steps to migrate directories defined for
PL/SQL File I/O to database directory objects. This requirement is due to the desupport
in Oracle Database 19c of the UTL_FILE_DIR database initialization parameter.
Environment:
Environment Details
https://www.oracle.com/database/technologies/oracle19c-linux-downloads.html
LINUX.X64_193000_db_home.zip
Author – A.Kishore
http://www.appsdba.info
Highlevel Steps
Run hcheck.sql
hcheck.sql - Script to Check for Known Problems in Oracle8i, Oracle9i, Oracle10g, Oracle 11g and Oracle
12c and Above (Doc ID 136697.1)
spool hcheck.lst
@hcheck.sql
spool off
Author – A.Kishore
http://www.appsdba.info
and
adop phase=fs_clone
adop phase=prepare
adop phase=apply patches=26521736 patchtop=/home/oradev/patches workers=8
adop phase=apply patches=31349591 patchtop=/home/oradev/patches workers=8
adop phase=apply patches=28732161 patchtop=/home/oradev/patches workers=8
adop phase=apply patches=31800803 patchtop=/home/oradev/patches workers=8
adop phase=apply patches=31088182 patchtop=/home/oradev/patches workers=8
adop phase=apply patches=33346385 patchtop=/home/oradev/patches workers=8
adop phase=finalize
adop phase=cutover
adop phase=cleanup
Author – A.Kishore
http://www.appsdba.info
On application Tier
perl $AD_TOP/bin/admkappsutil.pl
Now copy the appsutil.zip to the DB Home, extract appsutil.zip and run Autoconfig on DB Tier
cd $ORACLE_HOME
unzip -o appsutil.zip
cd $ORACLE_HOME/appsutil/scripts/DEV_erpr12
sh adautocfg.sh
cd $ADMIN_SCRIPTS_HOME
adautocfg.sh
Author – A.Kishore
http://www.appsdba.info
. ./DEV_erpr12.env
cd $ORACLE_HOME/appsutil
. ./txkSetCfgCDB.env dboraclehome=/d02/oracle/DEV/12.1.0
export ORACLE_SID=DEV
cd $ORACLE_HOME/appsutil/bin
The above script will create below new files in below location
cd $ORACLE_HOME/dbs
DEV_initparam.sql
DEV_datatop.txt
DEV_PDBDesc.xml
Install vncserver
Let’s install Oracle 19c database home alone, there is change how you install 19c as compared to earlier
versions, here we copy the database zip file (eg LINUX.X64_193000_db_home.zip) to ORACLE_HOME
and extract and then run runInstaller.
As root
xhost +
As Oracle user
export DISPLAY=:1
mkdir -p /d02/oracle/DEV/19.0.0
cd /d01/oracle/software/19c/1912
cp LINUX.X64_193000_db_home.zip /d02/oracle/DEV/19.0.0/
cd /d02/oracle/DEV/19.0.0/
unzip LINUX.X64_193000_db_home.zip
Run runInstaller
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
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
Author – A.Kishore
http://www.appsdba.info
Click ok
Author – A.Kishore
http://www.appsdba.info
cp DEV_erpr12.env DEV_erpr12_19c.env
vi DEV_erpr12_19c.env
%s,12.1.0,19.0.0
Author – A.Kishore
http://www.appsdba.info
. ./DEV_erpr12_19c.env
$ORACLE_HOME/OPatch/opatch version
OPatch succeeded.
How To Download And Install The Latest OPatch(6880880) Version (Doc ID 274526.1
p6880880_210000_Linux-x86-64
cd $ORACLE_HOME/
mv OPatch OPatch_old
cp p6880880_210000_Linux-x86-64 cd $ORACLE_HOME/
unzip p6880880_210000_Linux-x86-64
$ORACLE_HOME/OPatch/opatch version
OPatch succeeded.
cd /d01/oracle/software/19c/1912
unzip p32904851_190000_Linux-x86-64.zip
$ORACLE_HOME/OPatch/opatch lspatches
$ORACLE_HOME/OPatch/opatch apply
Author – A.Kishore
http://www.appsdba.info
$ORACLE_HOME/OPatch/opatch lspatches
OPatch succeeded.
Author – A.Kishore
http://www.appsdba.info
Oracle E-Business Suite Release 12.2: Consolidated List of Patches and Technology Bug Fixes (Doc
ID 1594274.1)
cd 32876380
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
$ORACLE_HOME/OPatch/opatch apply
cd 31424070/
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
$ORACLE_HOME/OPatch/opatch apply
Author – A.Kishore
http://www.appsdba.info
perl $ORACLE_HOME/nls/data/old/cr9idata.pl
See the "Copy AutoConfig to the RDBMS ORACLE_HOME" step of the Patching AutoConfig subsection of
the Technical Configuration section of the Oracle E-Business Suite Setup Guide Release 12.2, for
instructions on how to create appsutil.zip and copy it to the database tier.
On application tier
cd $ORACLE_HOME
unzip -o appsutil.zip
Author – A.Kishore
http://www.appsdba.info
Install JRE 8
$ cd $ORACLE_HOME/appsutil
$ cp -r $ORACLE_HOME/jdk/jre .
$ cp $ORACLE_HOME/jlib/orai18n.jar $ORACLE_HOME/appsutil/jre/lib/ext
On the database server node, run the Database Configuration Assistant (DBCA) to
create the container database (CDB). When prompted, click on the "Create Database",
"Advanced Configuration", and "General Purpose or Transaction Processing" options. In
the Specify Database Identification screen, check to create an empty container
database (CDB) without a PDB. Set the Global Database Name, the SID to the new CDB
SID, and check the "Use Local Undo tablespace for PDBs" checkbox. The CDB SID has
to be different from the current ORACLE_SID which will be the PDB SID. In the
"Network Configuration" section, do not create a listener. In the "Specify Configuration
Options" section, set the SGA and PGA size to 2G and 1G respectively. Click on the
Character Sets tab and choose the Character Set and National Character Set to be the
same as in the source database. In the "Select Database Creation Option" section, click
on the "Customize Storage Locations" button. Set the size of the redo log files to be the
same as in the source database. Other options can be configured as appropriate.
DEVCDB
The CDB SID has to be different from the current ORACLE_SID which will be the PDB
SID
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
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
NLS_NCHAR_CHARACTERSET
AL16UTF16
PARAMETER
--------------------------------------------------------------------------------
VALUE
----------------------------------------------------------------
NLS_CHARACTERSET
US7ASCII
VALUE$
--------------------------------------------------------------------------------
US7ASCII
Author – A.Kishore
http://www.appsdba.info
oracle_4U
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
In the "Select Database Creation Option" section, click on the "Customize Storage Locations"
button. Set the size of the redo log files to be the same as in the source database. Other
options can be configured as appropriate.
Change all the Redo log Groups and apply the changes
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
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
$ export ORACLE_SID=DEVCDB
$ $ORACLE_HOME/OPatch/datapatch
Author – A.Kishore
http://www.appsdba.info
Use SQL*Plus to connect to the CDB as SYSDBA and run the $ORACLE_HOME/rdbms/admin/catmgd.sql
script. This creates the new MGDSYS schema on the CDB.
On the database server node, run the following script to generate the required TNS files. Note that this
script does not create a listener.
cd $ORACLE_HOME/appsutil
. ./txkSetCfgCDB.env dboraclehome=/d02/oracle/DEV/19.0.0
cd $ORACLE_HOME/appsutil/bin
perl txkGenCDBTnsAdmin.pl -dboraclehome=/d02/oracle/DEV/19.0.0 -cdbname=DEVCDB \
-cdbsid=DEVCDB -dbport=1531 -outdir=/d02/oracle/DEV/19.0.0/appsutil/log
Author – A.Kishore
http://www.appsdba.info
cd /d02/oracle/DEV/19.0.0/network/admin
Use SQL*Plus to connect to the CDB as SYSDBA and use the following command to shut down the
database:
export ORACLE_SID=DEVCDB
Database upgrade
From Oracle 18c onwards UTL_FILE_DIR initialization parameter is desupported and is part of the
database, we can refer v$parameter views for information about UTL_FILE_DIR
Using UTL_FILE_DIR or Database Directories for PL/SQL File I/O in Oracle E-Business Suite Releases 12.1
and 12.2 (Doc ID 2525754.1)
. ./DEV_erpr12.env
cd $ORACLE_HOME/dbs
DEV_utlfiledir.txt
cat DEV_utlfiledir.txt
Author – A.Kishore
http://www.appsdba.info
On each application tier server node, shut down all server processes or services. The
applications will be unavailable to users until all remaining tasks in this section are completed.
cd $ADMIN_SCRIPTS_HOME
sh adstpall.sh apps/apps
Drop SYS.ENABLED$INDEXES
If the SYS.ENABLED$INDEXES table exists, connect to the database as SYSDBA and run
the following command to drop the table:
$ sqlplus "/ as sysdba"
SQL> drop table sys.enabled$indexes;
If you are upgrading from a database version prior to Oracle 12c, log on to the old
database server node, use SQL*Plus to connect to the database as SYSDBA, and run
the $ORACLE_HOME/md/admin/catnomgdidcode.sql script. This drops the MGDSYS schema.
$ sqlplus "/ as sysdba" @?/md/admin/catnomgdidcode.sql
Author – A.Kishore
http://www.appsdba.info
On the database tier server node, shut down the Oracle Net or Net8 database listener in the old
Oracle home.
We shall use DBUA for the upgrade, before running DBUA lets run pre-upgrade
tool
Ensure that the oratab file contains an entry for the database to be upgraded.
initDEV.ora
#local_listener = DEV_LOCAL
EVENT='10946 trace name context forever, level 8454144'
Author – A.Kishore
http://www.appsdba.info
Note:
12c database is up
12c listener is down
R12.2.10 application is down
19c DEVCDB database is down
Author – A.Kishore
http://www.appsdba.info
=======================================
Status of the database prior to upgrade
=======================================
Database Name: DEV
Container Name: DEV
Container ID: 0
Version: 12.1.0.2.0
DB Patch Level: No Patch Bundle applied
Compatible: 12.1.0
Blocksize: 8192
Platform: Linux x86 64-bit
Timezone File: 18
Database log mode: NOARCHIVELOG
Readonly: FALSE
Edition: EE
*
Author – A.Kishore
http://www.appsdba.info
==============
BEFORE UPGRADE
==============
REQUIRED ACTIONS
================
None
RECOMMENDED ACTIONS
===================
1. Update NUMERIC INITIALIZATION PARAMETERS to meet estimated minimums.
This action may be done now or when starting the database in upgrade mode
using the 19 ORACLE HOME.
Parameter
---------
O7_DICTIONARY_ACCESSIBILITY
optimizer_adaptive_features
utl_file_dir
If parameters that are obsolete or removed from the target release are
present in the pfile/spfile, the Oracle database may not start, or it may
start with an ORA- error.
Starting with Oracle Database 12c, the OLAP Catalog (OLAP AMD) is
desupported and will be automatically marked as OPTION OFF during the
database upgrade if present. Oracle recommends removing OLAP Catalog
(OLAP AMD) before database upgrade. This step can be manually performed
before the upgrade to reduce downtime.
FROM dba_objects
WHERE object_name||'_'||object_type IN
(SELECT object_name||'_'||object_type
FROM dba_objects WHERE owner = 'SYS')
AND owner = 'SYSTEM' AND object_name NOT IN ('AQ$_SCHEDULES',
'AQ$_SCHEDULES_PRIMARY','DBMS_REPCAT_AUTH','DBMS_REPCAT_AUTH');
There exists in the database duplicate object(s) that are owned by both
SYS and SYSTEM.
If an install script had been run as both SYS and SYSTEM, then it is
possible to have duplicate objects (with same object names and types)
owned by both of these Oracle users.
Your database system has at least one account with only the 10G password
version (see the PASSWORD_VERSIONS column of DBA_USERS).
Starting with Oracle Database release 12.2.0.1, Exclusive Mode is the new
default password-based authentication mode. All Exclusive Mode
login/authentication attempts will fail for preexisting user accounts
which only have the 10G password version and neither the 11G or 12C
password version (see DBA_USERS.PASSWORD_VERSIONS.) For more information,
refer to "Understanding Password Case Sensitivity and Upgrades" in the
Oracle Database Upgrade Guide.
Starting with Oracle Database release 12.2, Exclusive Mode is the default
password-based authentication mode. Case insensitive password
authentication is not supported in Exclusive Mode. If your system needs
to use case insensitive password authentication, Exclusive Mode must be
switched off prior to the upgrade. See the Network Reference Manual
chapter about the SQLNET.ORA parameter
SQLNET.ALLOWED_LOGON_VERSION_SERVER for more details on Exclusive Mode.
9. Please make sure that all the MVs are refreshed and sys.sumdelta$ becomes
empty before doing upgrade, unless you have strong business reasons not
to do so. You can use dbms_mview.refresh() to refresh the MVs except
those stale ones to be kept due to business need. If there are any stale
MVs depending on changes in sys.sumdelta$, do not truncate it, because
doing so will cause wrong results after refresh. Please refer to the
Materialized View section in MOS Note 2380601.1 for more details.
Oracle recommends that all materialized views (MV's) are refreshed before
upgrading the database because this will clear the MV logs and the
sumdelta$ table and may reduce the upgrade time. If you choose to not
refresh some MVs, the change data for those MV's will be carried through
the UPGRADE process. After UPGRADE, you can refresh the MV's and MV
incremental refresh should work in normal cases.
Author – A.Kishore
http://www.appsdba.info
_system_trig_enabled
_sort_elimination_cost_ratio
_b_tree_bitmap_plans
_fast_full_scan_enabled
_like_with_bind_as_equality
_optimizer_autostats_job
_trace_files_public
There are events set that should be removed before upgrade, unless your
application vendors and/or Oracle Support state differently. Changes
will need to be made in the pfile/spfile.
EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
INFORMATION ONLY
================
13. Here are ALL the components in this database registry:
Parameter
---------
sec_case_sensitive_logon
15. Check the Oracle Backup and Recovery User's Guide for information on how
to manage an RMAN recovery catalog schema.
If you are using a version of the recovery catalog schema that is older
than that required by the RMAN client version, then you must upgrade the
catalog schema.
It is good practice to have the catalog schema the same or higher version
than the RMAN client version you are using.
Author – A.Kishore
http://www.appsdba.info
SQL>@/d02/oracle/DEV/12.1.0/cfgtoollogs/DEV/preupgrade/preupgrade_fixups.sql
=============
AFTER UPGRADE
=============
REQUIRED ACTIONS
================
None
RECOMMENDED ACTIONS
===================
18. (AUTOFIXUP) If you use the -T option for the database upgrade, then run
$ORACLE_HOME/rdbms/admin/utluptabdata.sql after the upgrade is complete,
to VALIDATE and UPGRADE any user tables affected by changes to
Oracle-Maintained types.
If the -T option is used to set user tablespaces to READ ONLY during the
upgrade, user tables in those tablespaces, that are dependent on
Oracle-Maintained types, will not be automatically upgraded. If a type is
evolved during the upgrade, any dependent tables need to be re-validated
and upgraded to the latest type version AFTER the database upgrade
completes.
19. Upgrade the database time zone file using the DBMS_DST package.
The database is using time zone file version 18 and the target 19 release
ships with time zone file version 32.
20. Recreate directory objects to remove any symbolic links from directory
paths. To identify paths that contain symbolic links before upgrading,
use OS commands like UNIX file or WINDOWS dir. After upgrading, run
$ORACLE_HOME/rdbms/admin/utldirsymlink.sql to identify directory objects
with symbolic links in the path.
21. (AUTOFIXUP) Gather dictionary statistics after the upgrade using the
command:
EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
22. Gather statistics on fixed objects after the upgrade and when there is a
representative workload on the system using the command:
EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
INFORMATION ONLY
================
23. Check the Oracle documentation for the identified components for their
specific upgrade procedure.
The database upgrade script will not upgrade the following Oracle
components: OLAP Catalog,Oracle Machine Generated Data
The Oracle database upgrade script upgrades most, but not all Oracle
Database components that may be installed. Some components that are not
upgraded may have their own upgrade scripts, or they may be deprecated or
obsolete.
SQL>@/d02/oracle/DEV/12.1.0/cfgtoollogs/DEV/preupgrade/postupgrade_fixups.sq
l
Author – A.Kishore
http://www.appsdba.info
==================
PREUPGRADE SUMMARY
==================
/d02/oracle/DEV/12.1.0/cfgtoollogs/DEV/preupgrade/preupgrade.log
/d02/oracle/DEV/12.1.0/cfgtoollogs/DEV/preupgrade/preupgrade_fixups.sql
/d02/oracle/DEV/12.1.0/cfgtoollogs/DEV/preupgrade/postupgrade_fixups.sql
Before upgrade:
processes = 300
sessions = 600
#*.o7_dictionary_accessibility=FALSE#MP
#optimizer_adaptive_features
#utl_file_dir
#sec_case_sensitive_logon = FALSE
#olap_page_pool_size = 4194304
olap_page_pool_size = 0
#_system_trig_enabled
#_sort_elimination_cost_ratio
#_b_tree_bitmap_plans
#_fast_full_scan_enabled
#_like_with_bind_as_equality
#_optimizer_autostats_job
#_trace_files_public
Author – A.Kishore
http://www.appsdba.info
EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
shutdown immediate
startup
Author – A.Kishore
http://www.appsdba.info
Note: If you are going to run dbua for the second time, ensure below files are not available in
$ORACLE_HOME/dbs, else the upgrade will fail
initTEST.ora
hc_TEST.dat
spfileTEST.ora
cat /etc/oratab
DEVCDB:/d02/oracle/DEV/19.0.0:N
DEV:/d02/oracle/DEV/12.1.0:N
Invoke DBUA using the following command. The keepEvents parameter allows events in the
preupgraded database to be enabled during the upgrade.
dbua -keepEvents
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
$ORACLE_HOME/olap/admin/catnoamd.sql
olap_page_pool_size= 0
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
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
/d02/oracle/DEV/cfgtoollogs/dbua
Run the Post Upgrade Script generated during the Pre-Upgrade Steps. Then
perform miscellaneous post-upgrade tasks needed such as Gathering Stats,
Compiling Invalids etc.
sqlplus "/as sysdba" @/d02/oracle/DEV/12.1.0/cfgtoollogs/DEV/preupgrade/postupgrade_fixups.sql
Author – A.Kishore
http://www.appsdba.info
. ./DEV_erpr12_19c.env
@?/rdbms/admin/dbmsxdbschmig.sql
@?/rdbms/admin/prvtxdbschmig.plb
Run adgrants.sql
@adgrants.sql APPS
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
cd $AD_TOP/patch/115/sql
COUNT(*)
----------
Use SQL*Plus to connect to the database as SYSDBA and run the following command:
export ORACLE_SID=DEV
sqlplus "/ as sysdba"
grant text datastore access to public;
Author – A.Kishore
http://www.appsdba.info
In this subsection, there are two databases that are associated with the 19c Oracle home, the CDB
and the non-CDB database. Moreover, the non-CDB database will be migrated to the PDB
database. Set the appropriate environment variables to connect to the appropriate database.
After running the txkPostPDBCreationTasks.pl, additional environment files are created so that
connecting to the database is more convenient. Load the proper environment variables and
connect to the database by performing the following steps:
• For the non-CDB database, source the $ORACLE_HOME/[non-CDB SID]_[HOST].env file. Then,
run sqlplus [user]/[password]@[non-CDB SID]. (The environment file was created during the
earlier upgrade steps)
• For the CDB database, source the $ORACLE_HOME/[CDB SID]_[HOST].env file. Then, run sqlplus
[user]/[password] or connect as SYSDBA.
• For the PDB database, source the $ORACLE_HOME/[CDB SID]_[HOST].env file. Set the
ORACLE_PDB_SID environment variable to [PDB SID]. Then, run sqlplus [user]/[password]@[PDB
SID] or connect as SYSDBA.
Author – A.Kishore
http://www.appsdba.info
We have upgraded our EBS database from 12.1.0.2 to 19.x, lets convert our
Non CDB database to PDB.
Note: You should not open the database again till the entire PDB migration
process is complete.
cd $ORACLE_HOME/appsutil
pwd
/d02/oracle/DEV/19.0.0/appsutil
. ./txkSetCfgCDB.env dboraclehome=/d02/oracle/DEV/19.0.0
export ORACLE_SID=DEV
cd $ORACLE_HOME/appsutil/bin
On the database server node, copy the <source SID>_initparam.sql and <source
SID>_datatop.txt files from the source $ORACLE_HOME/dbs directory to the
new $ORACLE_HOME/dbs directory. Then use SQL*Plus to connect to the CDB as SYSDBA, and run the
following commands to update the CDB initialization parameters:
cd $ORACLE_HOME/appsutil
. ./txkSetCfgCDB.env dboraclehome=/d02/oracle/DEV/19.0.0
On the database server node, copy the [source SID]_initparam.sql and [source
SID]_datatop.txt files from the source $ORACLE_HOME/dbs directory to the new
$ORACLE_HOME/dbs directory and then use SQL*Plus to connect to the CDB as SYSDBA and
run the following commands to update the CDB initialization parameters:
cd /d02/oracle/DEV/12.1.0/dbs
cp DEV_initparam.sql DEV_datatop.txt /d02/oracle/DEV/19.0.0/dbs
export ORACLE_SID=DEVCDB
startup
Author – A.Kishore
http://www.appsdba.info
@$ORACLE_HOME/dbs/DEV_initparam.sql
Use the following commands to run the txkChkPDBCompatability.pl script. This checks the PDB
for any violations.
cd $ORACLE_HOME/appsutil
. ./txkSetCfgCDB.env dboraclehome=/d02/oracle/DEV/19.0.0
export ORACLE_SID=DEVCDB
cd $ORACLE_HOME/appsutil/bin
cat
/d02/oracle/DEV/19.0.0/appsutil/log/TXK_CHK_PDB_COMPTABILITY_Thu_Dec_23_18_48_39_2021/che
ck_pdb_plugin_violations.out
$ORACLE_HOME/OPatch/datapatch
cd $ORACLE_HOME/appsutil
. ./txkSetCfgCDB.env dboraclehome=/d02/oracle/DEV/19.0.0
export ORACLE_SID=DEVCDB
cd $ORACLE_HOME/appsutil/bin
perl txkChkPDBCompatability.pl -dboraclehome=$ORACLE_HOME -outdir=$ORACLE_HOME/appsutil/log
-cdbsid=DEVCDB -pdbsid=DEV -servicetype=onpremise
Author – A.Kishore
http://www.appsdba.info
Note: Above errors are related to PDB, lets create the PDB and then check if it
resolves the errors
Author – A.Kishore
http://www.appsdba.info
Create PDB:
. ./DEV_erpr12_19c.env
export ORACLE_SID=DEVCDB
cd $ORACLE_HOME/appsutil
. ./txkSetCfgCDB.env dboraclehome=/d02/oracle/DEV/19.0.0
cd $ORACLE_HOME/appsutil/bin
perl txkCreatePDB.pl -dboraclehome=/d02/oracle/DEV/19.0.0 \
-outdir=/d02/oracle/DEV/19.0.0/appsutil/log -cdbsid=DEVCDB -pdbsid=DEV \
-dbuniquename=DEVCDB -servicetype=onpremise
Please enter
Author – A.Kishore
http://www.appsdba.info
After conversion
Use the following commands to run the txkPostPDBCreationTasks.pl script. This updates the
PDB configuration.
export ORACLE_SID=DEVCDB
alter user system identified by manager;
cd $ORACLE_HOME/appsutil
. ./txkSetCfgCDB.env dboraclehome=/d02/oracle/DEV/19.0.0
perl $ORACLE_HOME/appsutil/bin/txkPostPDBCreationTasks.pl -
dboraclehome=/d02/oracle/DEV/19.0.0 -outdir=/d02/oracle/DEV/19.0.0/appsutil/log -cdbsid=DEVCDB -
pdbsid=DEV -appsuser=apps -dbport=1531 -servicetype=onpremise
Author – A.Kishore
http://www.appsdba.info
cd /d02/oracle/DEV/19.0.0
DEVCDB_erpr12.env
DEV_erpr12.env
cp DEVCDB_erpr12.env DEV_erpr12.env $HOME
connect to CDB
Author – A.Kishore
http://www.appsdba.info
Connect to PDB
https://mikedietrichde.com/2017/08/29/fallback-strategy-flashback-to-
guaranteed-restore-points/
export ORACLE_PDB_SID=DEV
Author – A.Kishore
http://www.appsdba.info
Using UTL_FILE_DIR or Database Directories for PL/SQL File I/O in Oracle E-Business
Suite Releases 12.1 and 12.2 (Doc ID 2525754.1)
cd /d02/oracle/DEV/19.0.0
DEVCDB_erpr12.env
DEV_erpr12.env
cd /d02/oracle/DEV/19.0.0/dbs
cp /d02/oracle/DEV/12.1.0/dbs/DEV_utlfiledir.txt .
cat /d02/oracle/DEV/19.0.0/dbs/DEV_utlfiledir.txt
mkdir -p /d02/oracle/DEV/temp/DEV
mkdir -p /usr/tmp/DEV
mkdir -p /d02/oracle/DEV/19.0.0/appsutil/outbound/DEV_erpr12
mkdir -p /d02/oracle/DEV/temp/DEV
. ./DEV_erpr12.env
perl $ORACLE_HOME/appsutil/bin/txkCfgUtlfileDir.pl -contextfile=$CONTEXT_FILE \
-oraclehome=$ORACLE_HOME -outdir=$ORACLE_HOME/appsutil/log -mode=setUtlFileDir
. $ORACLE_HOME/DEV_erpr12.env
. ./DEV_erpr12.env
sqlplus apps/apps@DEV
Running Autoconfig on the Application Tier is the final step we need to perform
in the Upgrade procees but before that we need to make couple of minor
changes in Application Tier. Add the CDB entry in tnsnames.ora of Application
as below:
Add a entry as below in the Application tnsnames.ora to ensure it connects to
the CDB and the Service Name “TEST” which is nothing but our EBS PDB.
watch
DEV=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=erpr12.appsdba.info)(PORT=1531))
(CONNECT_DATA=
(SERVICE_NAME= DEV)
(INSTANCE_NAME=DEVCDB)
)
)
sqlplus apps/apps
Author – A.Kishore
http://www.appsdba.info
Update the context value for the parameter APPLPTMP with the first value of
utl_file_dir which /d02/oracle/DEV/temp/DEV
sqlplus apps/apps
The most important step of the upgrade is to run the Autoconfig on the
Application Tier.
$INST_TOP/admin/scripts/adautocfg.sh
Author – A.Kishore
http://www.appsdba.info
cd $ADMIN_SCRIPTS_HOME
sh adstrtal.sh apps/apps
Connect to CDB
Author – A.Kishore
http://www.appsdba.info
Connect to PDB
Author – A.Kishore
http://www.appsdba.info
. ./DEVCDB_erpr12.env
export ORACLE_PDB_SID=DEV
. ./DEV_erpr12.env
cd $ORACLE_HOME/appsutil/DEV/DEV_erpr12
sh adautocfg.sh
Author – A.Kishore
http://www.appsdba.info
Issue 1
cd $ORACLE_HOME
unzip appsutil.zip
$ cd $ORACLE_HOME/appsutil
$ cp -r $ORACLE_HOME/jdk/jre .
905 cp /d01/oracle/software/OAM12c/jdk-8u221-linux-x64.tar.gz .
908 pwd
909 cd jdk
910 ls
Issue 2.
Pending
References:
Interoperability Notes: Oracle E-Business Suite Release 12.2 with Oracle Database 19c (Doc ID
2552181.1)
Author – A.Kishore
http://www.appsdba.info
Using Oracle 19c RAC Multitenant (Single PDB) with Oracle E-Business Suite Release 12.1 (Doc ID
2530680.1)
https://mikedietrichde.com/2017/08/29/fallback-strategy-flashback-to-guaranteed-restore-points/