****Current version for PWHCLIP components****
Oracle Database 12cR2 12.2.0.1.0
Oracle Weblogic Server 12.2.1.2.0
Oracle EM Fusion Middleware 12.2.1.2.0
FMW -> 12.2.1.4.0
Oracle Forms and Reports -> 12.2.1.19.0
JDK -> 1.8.0_341 +
Oracle database -> Oracle Database 19c Patch 21 (19.21)
export ORACLE_HOME=/app/oracle/db/product/19.3.0/dbh1
export PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin
export ORACLE_SID=twhclip
export PATH=$ORACLE_HOME/OPatch
https://docs.hexagonppm.com/r/en-US/Intergraph-Smart-Materials-Installation-10.1/
Version-10.1/821790
**********PRINTER SETUP*************
1.- Verify current set up printers
[root@twhclip ~]# lpstat -p -d
lpstat: No destinations added.
no system default destinantion
This means, there are no current configured printers in the system
2.- Configure Printers
2.1- Get PPD(PostScript Printer Description) files from existing pwhclip at
/etc/cups/ppd
and copy it to new server
/etc/ppd/IM25.ppd
2.2.- Add Printers to the system
[root@twhclip ppdvert]# lpadmin -p IM25 -E -v lpd://10.21.216.249/lp -P
/etc/cups/ppd/IM25.ppd
[root@twhclip ppd]# lpadmin -p IM25_PS -E -v lpd://10.21.216.249/lp -P
/etc/cups/ppd/IM25_PS.ppd
2.3.- Review printers successfuly added
[root@twhclip ppd]# lpstat -p -d
printer IM25 is idle. enabled since Wed 22 Nov 2023 10:25:33 AM CST
printer IM25_PS is idle. enabled since Wed 22 Nov 2023 10:41:15 AM CST
no system default destination
2.4.- Configure default printer as IM25
[root@twhclip ppd]# lpstat -d
no system default destination
[root@twhclip ppd]# lpadmin -d IM25
[root@twhclip ppd]# lpstat -d
system default destination: IM25
3.- After making changes, restart the CUPS service to apply the new configurations:
[root@twhclip ppd]# systemctl restart cups
**********Installing Oracle 12cR2**********
1.- To speed up things, had to do yum install of pre-install 19c.
[root@twhclip whclip-repo]# yum install -y oracle-database-preinstall-19c
2. Oracle Home and OraInventory will be as follows, create them:
OH=/app/oracle/db/product/12.2.0/dbh1
OI=/app/oracle/oraInventory
DBFL=/app/oracle/data
FRA=/app/oracle/fra
3.- Due to issues with X11, had to use response file from current pwhclip to
install 12c software
into twhclip
[oracle@twhclip database]# cd /stage/symmetry/database/
[oracle@twhclip database]# ./runInstaller -ignorePrereq -waitforcompletion -silent
-responseFile /stage/symmetry/database/response_12c_pwhclip.rsp
4.- Took from current pwhclip the latest dmp from exp and placed it into new
twhclip
5.- Created DB to import the DMP file, using dbca wizard
***Refere to the images taken*** each step was compared with the source db configs
6.- Import the DMP into the new database
6.1 threw errors at creating tablespaces, had to create them manually
6.2 create schema TSMSYS
CREATE USER TSMSYS
IDENTIFIED BY TSMSYS
DEFAULT TABLESPACE USERS
QUOTA UNLIMITED ON USERS
PROFILE DEFAULT
ACCOUNT LOCK;
GRANT CONNECT, RESOURCE TO TSMSYS;
6.3 sys modificatin schema can be ignored
6.4 ORA-39083: Object type LIBRARY:"ORACLE"."EXTPROC_LIBRARY" failed to
create with error: can be ignored
6.5 create scheme FLOWS_FILES
CREATE USER FLOWS_FILES
IDENTIFIED BY FLOWS_FILES
DEFAULT TABLESPACE USERS
QUOTA UNLIMITED ON USERS
PROFILE DEFAULT
ACCOUNT LOCK;
GRANT CONNECT, RESOURCE TO FLOWS_FILES;
6.6 create schema APEX_PUBLIC_USER
CREATE USER APEX_PUBLIC_USER
IDENTIFIED BY APEX_PUBLIC_USER
DEFAULT TABLESPACE USERS
QUOTA UNLIMITED ON USERS
PROFILE DEFAULT
ACCOUNT LOCK;
GRANT CONNECT, RESOURCE TO APEX_PUBLIC_USER;
6.7 create schema APEX_040200
CREATE USER APEX_040200
IDENTIFIED BY APEX_040200
DEFAULT TABLESPACE USERS
QUOTA UNLIMITED ON USERS
PROFILE DEFAULT
ACCOUNT LOCK;
GRANT CONNECT, RESOURCE TO APEX_040200;
6.8 create schema APEX_050000
CREATE USER APEX_050000
IDENTIFIED BY APEX_050000
DEFAULT TABLESPACE USERS
QUOTA UNLIMITED ON USERS
PROFILE DEFAULT
ACCOUNT LOCK;
GRANT CONNECT, RESOURCE TO APEX_050000;
6.9 execute the IMP using sys impdp \"/ as sysdba\"
DIRECTORY=new_twhclip DUMPFILE=pwhclip_exp_20240123_1900.dmp
LOGFILE=import_fresh.log FULL=Y
7.- Test connection to the database via sqldeveloper and execute test query te
verify data:
select * from BKM0008T order by CLAIM_ID_NUMBER;
************************************DATABASE
PORTION************************************
8.- Upgrading from 12cR2 to 21c
https://doyensys.com/blogs/database-upgrade-using-autoupgrade-tool-from-12c-to-19c/
https://k21academy.com/oracle-e-business-suiter12-2-upgrade/oracle-19c-database-
upgrade-using-auto-upgrade/
8.1 Had to install software from 21c version.
8.2 Download latest autoupgrade.jar from MOS.
8.3 On the target OH, REPLACE the new autoupgrade.jar
8.4 Create the config file from latest OH
[oracle@twhclip admin]$ java -jar
/app/oracle/db/product/21.3.0/dbh1/rdbms/admin/autoupgrade.jar -create_sample_file
config
8.5 Review config file and adjust source and target parameters.
8.6 Enable the archive log mode in the source database
--Ran autoupgrade and it looks like 21c requires PDB for direct upgrade from 12cr2
to 21c.
--Attempting 12cr2 to 19c
9. Upgrading from 12cR2 to 19c
9.1 Had to install software from 19c version
9.2 Downloaded laters autoupgrade.jar from MOS.
9.3 Replaces autoupgrade.jar from OH 19C
9.4 Created the config file from latest OH and renamed it from create_sample_file
to config.cfg
[oracle@twhclip admin]$ java -jar
/app/oracle/db/product/19.3.0/dbh1/rdbms/admin/autoupgrade.jar -create_sample_file
config
[oracle@twhclip admin]$ mv sample_config.cfg config.cfg
9.5 Review config file and adjust source and target parameters.
9.6 Enable the archive log mode in the source database
10. Runing autoupgrade....
10.1 Autoupgrade file stated that recycle bin should be empty:
SQL> PURGE RECYCLEBIN;
Recyclebin purged.
10.2 Autoupgrade file stated that akk Data Pump Advanced Quering must be dropped as
per MOS Note 2789059.1
10.3 Downloaded file from MOS and executed into source database
Connected to:
Oracle Database 12c Standard Edition Release 12.2.0.1.0 - 64bit Production
SQL> @note2789059_1_script.sql
Session altered.
PL/SQL procedure successfully completed.
CATNODPAQ_SUMMARY
-------------------------------------------------------------------------------
dropping AQ tables: success(2), failure(0)
Session altered.
10.4 Recompile object as they must be zero before the upgrade
SQL> @utlrp.sql
Session altered.
ERRORS DURING RECOMPILATION
---------------------------
0
Function created.
PL/SQL procedure successfully completed.
Function dropped.
PL/SQL procedure successfully completed.
10.5 Autoupgrade file stated that Streams should be removed:
SQL> EXEC DBMS_STREAMS_ADM.REMOVE_STREAMS_CONFIGURATION();
PL/SQL procedure successfully completed.
SQL>
10.6 - Execute fixups mode and monitor.
[oracle@twhclip admin]$ java -jar
/app/oracle/db/product/19.3.0/dbh1/rdbms/admin/autoupgrade.jar -config config.cfg -
mode fixups
AutoUpgrade is not fully tested on OpenJDK 64-Bit Server VM, Oracle recommends to
use Java HotSpot(TM)
AutoUpgrade 23.4.230921 launched with default internal options
Processing config file ...
+--------------------------------+
| Starting AutoUpgrade execution |
+--------------------------------+
1 Non-CDB(s) will be processed
Type 'help' to list console commands
upg> lsj
+----+-------+---------+---------+-------+----------+-------+-------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS|START_TIME|UPDATED|MESSAGE|
+----+-------+---------+---------+-------+----------+-------+-------+
| 102|twhclip|PREFIXUPS|EXECUTING|RUNNING| 10:52:17| 4s ago| |
+----+-------+---------+---------+-------+----------+-------+-------+
Total jobs 1
upg> tasks
+---+-----------------+-------------+
| ID| NAME| Job#|
+---+-----------------+-------------+
| 1| main| WAITING|
| 46| event_loop|TIMED_WAITING|
| 47| console| RUNNABLE|
| 48| queue_reader| WAITING|
| 50| cmd-0| WAITING|
| 51| job_manager-0| WAITING|
|221|twhclip-puifxl0-0| WAITING|
|226| sql-190007| RUNNABLE|
|227| exec_loop| WAITING|
+---+-----------------+-------------+
upg> status
Config
User configuration file
[/app/oracle/db/product/19.3.0/dbh1/rdbms/admin/config.cfg]
General logs location
[/app/oracle/cfgtoollogs/autoupgrade/cfgtoollogs/upgrade/auto]
Mode [FIXUPS]
Jobs Summary
Total databases in configuration file [1]
Total Non-CDB being processed [1]
Total Containers being processed [0]
Jobs finished successfully [0]
Jobs finished/stopped [0]
Jobs in progress [1]
Progress
+---+---------------------------------------------------------+
|Job| Progress|
+---+---------------------------------------------------------+
|102|[||||||||||||||||||||||||||||||| ] 60 %|
+---+---------------------------------------------------------+
upg> Job 102 completed
------------------- Final Summary --------------------
Number of databases [ 1 ]
Jobs finished [1]
Jobs failed [0]
Please check the summary report at:
/app/oracle/cfgtoollogs/autoupgrade/cfgtoollogs/upgrade/auto/status/status.html
/app/oracle/cfgtoollogs/autoupgrade/cfgtoollogs/upgrade/auto/status/status.log
10.7 - Execute in deploy mode so it upgrades the database
java -jar /app/oracle/db/product/19.3.0/dbh1/rdbms/admin/autoupgrade.jar -config
config.cfg -mode deploy
upg> status
Config
User configuration file
[/app/oracle/db/product/19.3.0/dbh1/rdbms/admin/config.cfg]
General logs location
[/app/oracle/cfgtoollogs/autoupgrade/cfgtoollogs/upgrade/auto]
Mode [DEPLOY]
Jobs Summary
Total databases in configuration file [1]
Total Non-CDB being processed [1]
Total Containers being processed [0]
Jobs finished successfully [0]
Jobs finished/stopped [0]
Jobs in progress [1]
Progress
+---+---------------------------------------------------------+
|Job| Progress|
+---+---------------------------------------------------------+
|103|[||||||||||||||||||||||| ] 45 %|
+---+---------------------------------------------------------+
upg> Job 103 completed
------------------- Final Summary --------------------
Number of databases [ 1 ]
Jobs finished [1]
Jobs failed [0]
Jobs restored [0]
Jobs pending [0]
Please check the summary report at:
/app/oracle/cfgtoollogs/autoupgrade/cfgtoollogs/upgrade/auto/status/status.html
/app/oracle/cfgtoollogs/autoupgrade/cfgtoollogs/upgrade/auto/status/status.log
--Took around 1 hour.
10.8 - Check database information to match 19c
select name, open_mode, version, status from v$database, v$instance;
TWHCLIP READ WRITE 19.0.0.0.0 OPEN
10.9 Stop and start listener so it reflects the changes
[oracle@twhclip dbh1]$ lsnrctl status
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 05-DEC-2023 12:09:07
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias TWHCLIP
Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date 30-NOV-2023 10:03:22
Uptime 5 days 2 hr. 5 min. 45 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File
/app/oracle/db/product/12.2.0/dbh1/network/admin/listener.ora
Listener Log File /app/oracle/db/diag/tnslsnr/twhclip/twhclip/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=twhclip)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "twhclip.wmms.local" has 1 instance(s).
Instance "twhclip", status READY, has 1 handler(s) for this service...
Service "twhclipXDB.wmms.local" has 1 instance(s).
Instance "twhclip", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@twhclip dbh1]$ cat
/app/oracle/db/product/12.2.0/dbh1/network/admin/listener.ora
# listener.ora Network Configuration File:
/app/oracle/db/product/12.2.0/dbh1/network/admin/listener.ora
# Generated by Oracle configuration tools.
TWHCLIP =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = twhclip)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
[oracle@twhclip dbh1]$ lsnrctl stop
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 05-DEC-2023 12:10:58
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
The command completed successfully
[oracle@twhclip dbh1]$ lsnrctl start
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 05-DEC-2023 12:11:02
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Starting /app/oracle/db/product/19.3.0/dbh1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 19.0.0.0.0 - Production
System parameter file is
/app/oracle/db/product/19.3.0/dbh1/network/admin/listener.ora
Log messages written to /app/oracle/diag/tnslsnr/twhclip/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=twhclip)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 05-DEC-2023 12:11:02
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File
/app/oracle/db/product/19.3.0/dbh1/network/admin/listener.ora
Listener Log File /app/oracle/diag/tnslsnr/twhclip/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=twhclip)(PORT=1521)))
The listener supports no services
The command completed successfully
10.10 Uninstall old 12cr2 oracle
[oracle@twhclip dbh1]$ cd /app/oracle/db/product/12.2.0/dbh1/deinstall
[oracle@twhclip dbh1]$ ./deinstall
////Follow the process of uninstalling the old OH, make sure it is the one you want
to uninstall.
11. Environment variables.
export ORACLE_HOME=/app/oracle/db/product/19.3.0/dbh1
export PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin
export ORACLE_SID=twhclip
export PATH=$ORACLE_HOME/OPatch
12.- We decided not to use Oracle 21c as it needs CDB configs and it is an
Innovative version.
13.- Patch Oracle 19c to 19.21 CPU
13.1 - Apply latest OPatch
13.2 Apply Patch 35643107
[oracle@twhclip 35643107]$ opatch apply
Patch 35643107 successfully applied.
Sub-set patch [29517242] has become inactive due to the application of a super-set
patch [35643107].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location:
/app/oracle/db/product/19.3.0/dbh1/cfgtoollogs/opatch/opatch2023-12-05_15-18-
07PM_1.log
[oracle@twhclip OPatch]$ ./datapatch -verbose
SQL Patching tool version 19.21.0.0.0 Production on Tue Dec 5 15:25:39 2023
Copyright (c) 2012, 2023, Oracle. All rights reserved.
Log file for this invocation:
/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_484075_2023_12_05_15_25_39/
sqlpatch_invocation.log
Connecting to database...OK
Gathering database info...done
Bootstrapping registry and package to current versions...done
Determining current state...done
Current state of interim SQL patches:
No interim patches found
Current state of release update SQL patches:
Binary registry:
19.21.0.0.0 Release_Update 230930151951: Installed
SQL registry:
Applied 19.3.0.0.0 Release_Update 190410122720 successfully on 05-DEC-23
11.21.16.555861 AM
Adding patches to installation queue and performing prereq checks...done
Installation queue:
No interim patches need to be rolled back
Patch 35643107 (Database Release Update : 19.21.0.0.231017 (35643107)):
Apply from 19.3.0.0.0 Release_Update 190410122720 to 19.21.0.0.0 Release_Update
230930151951
No interim patches need to be applied
Installing patches...
Patch installation complete. Total patches installed: 1
Validating logfiles...done
Patch 35643107 apply: SUCCESS
logfile:
/app/oracle/cfgtoollogs/sqlpatch/35643107/25405995/35643107_apply_TWHCLIP_2023Dec05
_15_26_07.log (no errors)
Automatic recompilation incomplete; run utlrp.sql to revalidate.
SQL Patching tool complete on Tue Dec 5 15:31:56 2023
[oracle@twhclip OPatch]$
************************************FUSION MIDDLEWARE
PORTION************************************
https://docs.oracle.com/en/middleware/idm/identity-governance/12.2.1.3/omadm/
migrating-application-and-database-binaries.html#GUID-5808EE16-C29F-418C-8794-
EC9116DBF642
https://docs.oracle.com/cd/E23943_01/doc.1111/e17361/toc.htm
https://docs.oracle.com/middleware/12211/lcm/WCEDG/GUID-079347E5-9DF0-44A9-9BF3-
AF7C13D631B3.htm#WCEDG-GUID-079347E5-9DF0-44A9-9BF3-AF7C13D631B3
https://www.dbi-services.com/blog/changing-fusion-middleware-repository-database/
https://doyensys.com/blogs/database-upgrade-using-autoupgrade-tool-from-12c-to-19c/
https://docs.hexagonppm.com/r/en-US/Intergraph-Smart-Materials-Installation-10.1/
Version-10.1/821790
*************/*******************-
****************************************************/************************
IM25:PostScript:1:Primary Printer:default.ppd:
[root@twhclip app]# find . -name uiprint.txt
/app/oracle/FMW/Oracle_FRHome/frcommon/templates/tk/config/uiprint.txt
/app/oracle/FMW/Oracle_FRHome/user_projects/domains/base_domain/config/fmwconfig/
components/FORMS/instances/forms1/guicommon/tk/admin/uiprint.txt
/app/oracle/FMW/Oracle_FRHome/user_projects/domains/base_domain/config/fmwconfig/
components/ReportsToolsComponent/reptools1/guicommon/tk/admin/uiprint.txt
[root@twhclip app]# find . -name reports.sh
./oracle/FMW/Oracle_FRHome/bin/reports.sh
./oracle/FMW/Oracle_FRHome/user_projects/domains/base_domain/reports/bin/reports.sh
## PRINTER DEFAULTS
PRINTER=IM25; export PRINTER
TK_PRINTER=IM25; export TK_PRINTER