A BAB Upgrade11i-R12 v1.0

199

description

A BAB Upgrade11i-R12 v1.0

Transcript of A BAB Upgrade11i-R12 v1.0

Page 1: A BAB Upgrade11i-R12 v1.0
Page 2: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

File: document.docRevision Number: 1.0

Distribution Control

Revision Number Distribution

1.0 Initial version Bank Al Bilad & AOT

People Involved in the Document Preparation

Function Entity Name

Technical Manager AOT Hassan Reda

Project Manager AOT Ahmed Mansi

Sr. Technical Consultant AOT Mohammed Vilayath

Sr. Technical Consultant AOT Mostafa Simary

Change Control History

Version Date Author Revision Description

1.0 15/05/2010 Advanced Operations Technology Initial version

18/04/2023 Page 2 of 157

Page 3: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

INTRODUCTION.............................................................................................................................5

PREREQUISITES...........................................................................................................................6

Basic Checks..............................................................................................................................6

APPLY ADI PATCH.......................................................................................................................7

Multiple Organization................................................................................................................7Apply Patch AD.I.7....................................................................................................................9Apply Patch AD.I.7 for NLS (Arabic)......................................................................................12

APPLY TUMS PATCH.................................................................................................................13

AD PREPARATION SCRIPTS – OATM...................................................................................14

INSTALL ORACLE SOFTWARE..............................................................................................16

INSTALL ORACLE COMPANION SOFTWARE....................................................................23

INSTALL PATCH SET 3 (10.2.0.4).............................................................................................28

CREATE NLS/DATA/9IDATA DIRECTORY..........................................................................34

APPLY ADDITIONAL PATCHES 10.2.0.4 RDBMS PATCHES............................................35

UPGRADE DATABASE 10G R2.................................................................................................36

Shutdown Application Server and database............................................................................36Prepare Initialization Parameter File.....................................................................................36Create 10g Listener..................................................................................................................37Run Database Upgrade Assistant............................................................................................41

ADDITIONAL PATCHES AFTER THE DATABASE UPGRADE........................................55

Patches.....................................................................................................................................55

INSTALL ORACLE DATA MINING AND OLAP...................................................................59

FIX KOREAN LEXERS...............................................................................................................60

AUTO EXTEND TABLESPACES/DATAFILES.......................................................................61

RUN RAPID INSTALL TO R12 CREATE FILE SYSTEM.....................................................63

Staging.....................................................................................................................................63Run Rapid Install.....................................................................................................................63

CTXSYS..........................................................................................................................................75

DROP MRC SCHEMA (CONDITIONAL)................................................................................76

BACKUP DATABASE & R12 FILE SYSTEM..........................................................................77

GATHER STATISTICS FOR SYS SCHEMA...........................................................................78

UPDATE .PROFILE.....................................................................................................................79

ENABLE MAINTENANCE MODE............................................................................................80

APPLY AD 12.1.1 UPGRADE DRIVER (REQUIRED) - PART 1..........................................81

18/04/2023 Page 3 of 157

Page 4: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

APPLY AD 12.1.1 UPGRADE DRIVER (REQUIRED) - PART 2..........................................84

APPLY AD 12.1.1 UPGRADE DRIVER – NLS PATCH FOR ARABIC................................92

DISABLE MAINTENANCE MODE...........................................................................................94

CONFIGURE AND START SERVICES....................................................................................95

UPDATE THE RDBMS ORACLE_HOME FILE SYSTEM WITH AUTOCONFIG FILES........................................................................................................................................................100

INSTALL JRE ON THE DATABASE TIER............................................................................102

CREATE A <CONTEXT_NAME> DIRECTORY UNDER...................................................103

SET AND EXPORT ENVIRONMENT VARIABLES.............................................................104

GENERATE A NEW DATABASE CONTEXT FILE.............................................................106

RUN AUTOCONFIG ON THE DATABASE TIER NODES..................................................107

RUN AUTOCONFIG ON THE APPSTIER.............................................................................108

DELETE OBSOLETE FILE SYSTEM.....................................................................................109

START SERVICES.....................................................................................................................110

INSTALL SAUDI HRMS GLOBALIZATION........................................................................111

BACKUP DATABASE & R12 FILE SYSTEM........................................................................112

UNABLE TO LOGIN – HTTP 500............................................................................................113

GATHER STATISTICS APPS & SYS......................................................................................116

PROBLEMS & SOLUTIONS – 01.............................................................................................118

Concurrent Request – REP-3000 Error.................................................................................118Cannot able to upload pictures:.............................................................................................122Work Structure – Position Screen FRM-40735 and ORA-01840..........................................127Mass Information Exchange MIX..........................................................................................129Cannot View Old Custom Notification...................................................................................129View PAY_PRE_PAYMENTS_V hangs while SELECT.........................................................131Arabic Reports Orientation Displaying Left-To-Right..........................................................132

BACKUP DATABASE & R12 FILE SYSTEM........................................................................133

PATCH R12.HR_PF.B.DELTA.2..............................................................................................134

TOTAL UPGRADE HOURS......................................................................................................140

APPENDIX A: AD PREPARATION SCRIPT ADCRTBSP.SQL.........................................142

APPENDIX B : DATABASE PATCH 6613550.......................................................................149

APPENDIX C : 10G INITIALIZATION PARAMETER FILE............................................151

APPENDIX D : .PROFILE........................................................................................................153

APPENDIX E : RW-50004.........................................................................................................155

18/04/2023 Page 4 of 157

Page 5: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Introduction

This guide describes you step-by-step how to upgrade Oracle E-Business Suite from 11i (11.5.10.2) to R12 (12.1.1), as per our business requirement we have chosen the upgrade plan as “Upgrade Path A” (in one Phase) which will upgrade the whole EBS on one extended downtime rather splitting into two Phases.

The upgrade is based on the following Oracle Notes:

1. Oracle E-Business Suite Upgrade Guide Release 11i to 12.1.12. Database Preparation Guidelines for an Oracle E-Business Suite Release 12.1.1

Upgrade – ID 761570.1 – March 3, 20103. Interoperability Notes – Oracle E-Business Suite Release 11i with Oracle

Database 10g Release 2 (10.2.0) [ID 362203.1] – January 2010

11i Source Application InformationDescription Values CommentsOperating System AIX 5.311i Version 11.5.10.2Database Version 9.2.0.8Current AD.I 11i.AD.I.4

R12 (After the Upgrade) Description Values CommentsOperating System AIX 6100-02-00-0000 R12 version 12.1.1Database Version 10.2.0.4

18/04/2023 Page 5 of 157

Page 6: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Prerequisites

Please follow prerequisites document “AOT_EBS12.xOnAIX_Prereqs_v1.1.doc” which is supplied by AOT.

Basic Checks

Before Start upgrading please verify all the prerequisites as per the prerequisite document.

18/04/2023 Page 6 of 157

Page 7: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Apply ADI Patch Applying Patch 11i.AD.I.7 Doc ID 233044.1 – Patch 7429271

Prerequisites :

Multiple Organization

Define Operating Unit :

Create an Operating UnitConfigure Profile - MO:Default Operating Unit (Site Level AOL Profile)

18/04/2023 Page 7 of 157

Page 8: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Convert to multiple organization using adadmin

# su – appldev

$ cd /u01/oracle/prodcomn/admin/scripts/PREPROD_hrdev

Stop concurrent manager before conversion

$ ./adstpall.sh apps/clone

Keep the database & listener up

sqlplus apps/clone

SQL> Select multi_org_flag from fnd_product_groups;M-N

//Run adadmin

$ adadmin4. Maintain Applications Database Entities menu6. Convert to Multi-Org

Once you convert to MultiOrg, you cannot convert back to a non-MultiOrg configuration.

18/04/2023 Page 8 of 157

Page 9: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Before converting to MultiOrg, you must first make sure that no one is accessing your Oracle Applications database, and that the Concurrent Managers have been shut down.

Are you certain you want to convert to MultiOrg now [No] ? yAD_DEFERRED_JOBS table dropped.

Re-enabling triggers in APPS...

sqlplus -s APPS/***** @/u01/oracle/prodappl/admin/PREPROD/out/orgcnvet.sql

Running sub driver "admocnv.drv"..

Warning: File /u01/oracle/prodappl/ar/11.5.0/patch/115/sql/arhmgmul.sql does not exist

Review the messages above, then press [Return] to continue.

$ sqlplus apps/cloneSQL> Select multi_org_flag from fnd_product_groups;M------Y <== Converted

Time Take = ( 15 minutes )

Apply Patch AD.I.7

Patch Name AD.I.7Patch Number 7429271Patch Document 233044.1

Steps :

# su – appldev

$ cd /u02/patchesunzip p7429271_11i_AIX

//Stop application services

$ cd $common_top/..//scripts

18/04/2023 Page 9 of 157

Page 10: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

./adstpall.sh apps/clone & adcmctl stop apps/cloneEnable Maintenance Mode

cd /u02/patches/7429271$ adpatch

Purging timing information for prior sessions.

sqlplus -s APPS/***** @/u01/oracle/prodappl/ad/11.5.0/admin/sql/adtpurge.sql 101000

Done purging timing information for prior sessions.

AutoPatch is complete.

AutoPatch may have written informational messages to the file/u01/oracle/prodappl/admin/PREPROD/log/u7429271.lgi

Errors and warnings are listed in the log file/u01/oracle/prodappl/admin/PREPROD/log/u7429271.log

and in other log files in the same directory.

You have mail in /usr/spool/mail/appldev

SQL> select bug_number,bug_id,application_short_name,creation_date 2 from ad_bugs 3 where bug_number='7429271';

BUG_NUMBER BUG_ID------------------------------ ----------APPLICATION_SHORT_NAME CREATION_-------------------------------------------------- ---------7429271 210260 10-APR-10

Time Taken = ( 30 minutes )

Post Patch Steps:

# su – oradev

1 - Grant privileges and create PL/SQL profiler objects

A . Create $ORACLE_HOME/appsutil/admin on the database server.

18/04/2023 Page 10 of 157

Page 11: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

$ mkdir dir $ORACLE_HOME/appsutil/admin

cd /u02/oracle/proddb/9.2.0/appsutil/admin

cp -p adgrants.sql adgrants_old.sql

B . Copy adgrants.sql (UNIX) from $APPL_TOP/admin to $ORACLE_HOME/appsutil/admin

# cd /u01/oracle/prodappl/admin

# ls -l adgrants.sql

-rwxr-xr-x 1 appldev dba 22083 Apr 10 06:03 adgrants.sql

# cp -p adgrants.sql /u02/oracle/proddb/9.2.0/appsutil/admin

# cd /u02/oracle/proddb/9.2.0/appsutil/admin

# chown oradev:dba adgrants.sql

su – oradev

C . Set the environment to point to ORACLE_HOME on the database server.

$ echo $ORACLE_HOME/u02/oracle/proddb/9.2.0

D . Use SQL*Plus to run the script:cd /u02/oracle/proddb/9.2.0/appsutil/admin1. $ sqlplus "/ as sysdba"

SQL>show userUSER is “sys”

2. @adgrants.sql APPSPL/SQL procedure successfully completed.

Time Taken = ( 5 minutes )

18/04/2023 Page 11 of 157

Page 12: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Apply Patch AD.I.7 for NLS (Arabic)

Patch 7429271_AR for (NLS Arabic)# cd /u02/patches# chown –R appldev:dba unzip p7429271_11i_ar.zip

# su – appldev $ chown -R appldev:dba 7429271_AR

cd /u02/patches/7429271_AR$ adpatch

Your default directory is '/u01/oracle/prodappl'.Is this the correct APPL_TOP [Yes] ? yFilename [adpatch.log] : adpatch_7429271.logThe default directory is [/u02/patches/7429271_AR]Please enter the name of your AutoPatch driver file : u7429271.drvDone purging timing information for prior sessions.

AutoPatch is complete.

AutoPatch may have written informational messages to the file/u01/oracle/prodappl/admin/PREPROD/log/adpatch_7429271.lgi

Errors and warnings are listed in the log file/u01/oracle/prodappl/admin/PREPROD/log/adpatch_7429271.log

and in other log files in the same directory.

Time Taken = ( 15 minutes )

18/04/2023 Page 12 of 157

Page 13: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Apply TUMS Patch

Patch Name TUMS ReportPatch Number 7705743Patch Document

Prerequisites:

1. Ensure that the database parameter UTL_FILE_DIR is set to a writabledirectory <DIRECTORY> where the TUMS for R12 Upgrade report will becreated.SQL> show parameter utl_file

NAME TYPE VALUE------------------------------------ ----------- ------------------------------utl_file_dir string /usr/tmp, /usr/tmp, /u02/oracl e/proddb/9.2.0/appsutil/outbou nd/PREPROD_hrdev, /usr/tmp

2. Apply the following driver file using adpatch: u7705743.drv (This is the unified driver)

$ cd /patches/7705743$ adpatch

Post Patch Steps:

3. Generate the TUMS report by executing the following command:

$ cd $AD_TOP/patch/115/sql$ sqlplus <APPS username>/<APPS password> @adtums.sql <DIRECTORY>

Eg:-$ sqlplus apps/clone @adtums.sql /usr/tmp

A report file called tumsr12.html will be created in the directory. Thisdirectory path must have been listed in the UTL_FILE_DIR parameter of yourdatabase.

Note : report tumsr12.html had not given us proper information to follow, we ignored this report and continued following the upgrade documentations.

Time Taken = ( 30 minutes )

18/04/2023 Page 13 of 157

Page 14: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

AD Preparation Scripts – OATM

Patch Number: 7197489

Patch Name AD Preparation – OATMPatch Number 7197489Patch Document

Prerequisites:

No Tasks

AD Preparation scripts – OATM

This patch should be used by upgrade customers from 11i to R12 to make OATM complaint. There are 2 files that need to be run manually. adgncons.sql and adgrants.sql (adgrants_nt.sql -NT Only)

# cd patchtop# chmod appldev:dba p7197489_11i_GENERIC# su - appldev$ unzip p7197489_11i_GENERIC

# cd 7197489

1) Run adgncons.sql that is included in this zip file. Usage:- sqlplus <APPS username>/<APPS password> @adgncons.sql apps apps

$ cd /u02/patches/7197489

$ sqlplus apps/cloneSQL>@adgncons.sql apps clone

2) Run adcrtbsp.sql, which is generated by adgncons.sql. Modify adcrtbsp.sql to reflect your current tablespace information. # modify the adcrtbsp.sql to specify the path for new tablespaces

-Change path of datafiles to “/u04/oracle/proddata”- Add autoextend on next 1m to create tablespaces syntax in this script.

example :-

sqlplus system/clonesql>@adcrtbsp.sql

18/04/2023 Page 14 of 157

Page 15: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Please refer “APPENDIX A: AD Preparation Script adcrtbsp.sql”

 3) Run the adgrants.sql script as a user that can connect as SYSDBA to grant privileges to selected SYS objects and createPL/SQL profiler objects. Usage:-

1.Create $ORACLE_HOME/appsutil/admin on the database server.(in our case “admin” directory already existing)

2.Copy adgrants.sql (UNIX) from this patch directory to $ORACLE_HOME/appsutil/admin.

# cd /u02/patches/7197489# cp adgrants.sql $ORACLE_HOME/appsutil/admin# chown oradev:dba $ORACLE_HOME/appsutil/admin/adgrants.sql

3. Set the environment to point to ORACLE_HOME on the database server.4. Use SQL*Plus to run the script:

su – oradev$ sqlplus /nolog SQL> connect / as sysdba SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql applsys

Completed successfully

Time Taken = ( 2 hours )

18/04/2023 Page 15 of 157

Page 16: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Install Oracle Software

Installation Overview: Install Oracle Software 10g R2 (10.2.0.1) Install Companion Software 10g R2 (10.2.0.1) Install Patch set 3 (10.2.0.4)

Unzip Oracle Software :

mkdir softwarecd softwaremkdir 10gmkdir compmkdir patchset

$ gzip -d < ora10g2-CD1.tgz | tar -xvf –$ gzip -d < ora10g2-CD2.tgz| tar -xvf –

Installations:

# su – oradev$ mkdir –p /u02/oracle/proddb/10.2.0$ export ORACLE_HOME=/u02/oracle/proddb/10.2.0$ export DISPLAY=IP:0.0Verify xclock$ xclock

Select Installation MethodAdvancedOracle Home=/u02/oracle/proddb/10.2.0Unix dba group : dbaChoose Software only (Do Not Choose Create Database )

$ runInstaller &Note : Prerequisite Checks Failed

Workaround :1)

vi oraparam.iniCertificationAIX=5100,6100./runInstaller &( Same Problem )

2) ./runInstaller –ignoreSysPrereqs(same problem – so we continued with errors)

18/04/2023 Page 16 of 157

Page 17: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

3) Refer : APPENDIX B : Database Patch 6613550

Welcome Screen o Choose “Advanced Installation”

Select Installation Enterprise Editiono Choose Enterprise Edition

18/04/2023 Page 17 of 157

Page 18: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Specify Home Details

Oracle Home : OUHome1Patch : /u02/oracle/proddb/10.2.0

Product-Specific Prerequisite Checks

We got an error at this stage we investigated , required to apply patch before start of this installation – Apply Patch 6613550Refer : APPENDIX B : Database Patch 6613550

18/04/2023 Page 18 of 157

Page 19: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Upgrade an Existing Databaseo Do you want to perform an upgrade now? <<No>>

Select Configuration Optiono Install database Software only

18/04/2023 Page 19 of 157

Page 20: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Summaryo Click “Install” to continue installation.

Install

18/04/2023 Page 20 of 157

Page 21: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Execute Configuration Scriptso Run root.sh as “root” user

# /u02/oracle/proddb/10.2.0/root.shRunning Oracle10 root.sh script...

The following environment variables are set as: ORACLE_OWNER= oradev ORACLE_HOME= /u02/oracle/proddb/10.2.0

Enter the full pathname of the local bin directory: [/usr/local/bin]:Creating /usr/local/bin directory... Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.

18/04/2023 Page 21 of 157

Page 22: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

End of Installation

Time Taken ( 1 hour )

18/04/2023 Page 22 of 157

Page 23: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Install Oracle Companion Software

Install Companion CD

# su – oradev$ export ORACLE_HOME=/u02/oracle/proddb/10.2.0$ cd /u02/software/10g/ora1-2/mnt/companion

$ ./runInstaller –ignoreSysPrereqs

Run Installer

18/04/2023 Page 23 of 157

Page 24: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Welcome Screen

Select a Product to Installo Oracle Database 10g Products 10.2.0.1.0

18/04/2023 Page 24 of 157

Page 25: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Specify Home DetailsName (ORACLE_HOME) : OUHome1Path : /u02/oracle/proddb/10.2.0

Product-Specific Prerequisite Checks

Ignore warnings and click <<Next>>

18/04/2023 Page 25 of 157

Page 26: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Product-Specific Prerequisite ChecksDo you want to proceed? <<Yes>>

Summary

18/04/2023 Page 26 of 157

Page 27: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Install

End of Installation

Time Taken = ( 40 minutes )

18/04/2023 Page 27 of 157

Page 28: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Install Patch Set 3 (10.2.0.4)

Install Patch Set 3 (10.2.0.4)

$ su – oradevexport ORACLE_HOME=/u02/oracle/proddb/10.2.0export ORACLE_SID=PREPRODexport PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$PATH:/u02/oracle/proddb/10.2.0/OPatchexport LD_LIBRARY_PATH=$ORACLE_HOME/libexport PERL5LIB=$ORACLE_HOME/perl/lib:$ORACLE_HOME/perl/lib/site_perlexport ORA_NLS10=$ORACLE_HOME/nls/data/9idata/u02/software/patchset/Disk1

Note : the above env. variables put in .profile to exist permanently.

$ cd /u02/software/patchset/Disk1$ ./runInstaller

runInstaller (OUI)

18/04/2023 Page 28 of 157

Page 29: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

runInstaller (OUI)

Welcome Screen

18/04/2023 Page 29 of 157

Page 30: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Specify Home DetailsName (ORACLE_HOME) : OUIHome1Path : /u02/oracle/proddb/10.2.0

Product-Specific Prerequisite Checks

18/04/2023 Page 30 of 157

Page 31: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Oracle Configuration Manager Registration

Summary

18/04/2023 Page 31 of 157

Page 32: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Install

Execute Configuration Scripts

# /u02/oracle/proddb/10.2.0/root.shRunning Oracle10 root.sh script...

The following environment variables are set as: ORACLE_OWNER= oradev

18/04/2023 Page 32 of 157

Page 33: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

ORACLE_HOME= /u02/oracle/proddb/10.2.0

Enter the full pathname of the local bin directory: [/usr/local/bin]:The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying dbhome to /usr/local/bin ...The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying oraenv to /usr/local/bin ...The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.

End of Installation

Time Taken = ( 30 minutes )

18/04/2023 Page 33 of 157

Page 34: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Create nls/data/9idata directory

1. Create nls/data/9idata directory Login as oracle on database server nodesu - oradevexport ORACLE_HOME=/d01/oracle/singlenode/testdb/10.2.0export ORACLE_SID=PREPROD

Run $ perl $ORACLE_HOME/nls/data/old/cr9idata.plThis will create directory as :$ORACLE_HOME/nls/data/9idataCheck ORACLE_HOME/nls/data/9idata is created and is non-empty.

Set ORA_NLS10export ORA_NLS10=$ORACLE_HOME/nls/data/9idata

(Check whether files exist in $ORACLE_HOME/nls/data/9idata)

Time Taken = ( 15 minutes )

18/04/2023 Page 34 of 157

Page 35: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Apply additional patches 10.2.0.4 RDBMS patches

Apply additional 10.2.0.4 RDBMS patches

Apply the following patches: For all UNIX/Linux platforms, apply RDBMS patches: 6880880 or the latest Opatch version. 6521934 6600051 7441176 7496636

Patch 6880880 :$ cd /u02/patches/$ unzip p6880880_102000_AIX64-5L$ cd $ORACLE_HOMEmv OPatch Opatch_oldcd /u02/patches/dbpatches/6880880mv OPatch $ORACLE_HOME or cp –r OPatch $ORACLE_HOMEOpatch version

(Add OPatch Path to $PATH)

Patch 6600051:$ cd /u02/patches/dbpatches$ unzip p6600051_10204_AIX5L$ cd /u02/patches/dbpatches/6600051

$ opatch apply--error – incomplete - Skipped

Patch 7441176 :$ cd /u02/patches/dbpatches$ unzip p7441176_10204_AIX5L$ cd /u02/patches/dbpatches/7441176 $ export OBJECT_MODE=32_64$ opatch apply

Patch 7496636 :$ cd /u02/patches/dbpatches$ unzip p7496636_10204_AIX5L.zip$ cd 7496636$ export OBJECT_MODE=32_64$ opatch apply

Time Taken = ( 1 hour )

18/04/2023 Page 35 of 157

Page 36: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Upgrade Database 10g R2

Shutdown Application Server and database

Shutdown application server and database listener of old Oracle Home.The application is not available till all the remaining tasks.

Stop 9i listener

$ lsnrctl stop PREPROD

Note : comment lines in .profile so that , no old environment files should be point to new ORACLE HOME

$ export ORACLE_HOME= /u06/oracle/apps/tech_st/10.1.2$ export ORA_NLS10= /u06/oracle/apps/tech_st/10.1.2/nls/data/9idata

// the above lines add in .profile in “oradev” user for permanently

Prepare Initialization Parameter File

Prepare Initialization Parameter FileRefer : APPENDIX C : 10g Initialization Parameter File

$ cp initPREPROD.ora $ORACLE_HOME= /u02/oracle/proddb/10.2.0/dbs

Verify all the directories as per “initPREPROD.ora” if not exists create it :

/u02/oracle/proddb/10.2.0/admin/PREPROD_hrdev/bdump/u02/oracle/proddb/10.2.0/admin/PREPROD_hrdev/cdump/u02/oracle/proddb/10.2.0/admin/PREPROD_hrdev/udumpu03/oracle/proddata/u04/oracle/proddata/u03/oracle/proddata/usr/tmp/usr/tmp/u02/oracle/proddb/10.2.0/appsutil/outbound/PREPROD_hrdev

Prepare to upgradeRefer Chap 2 of Oracle Database Upgrade Guide 10g R2 (10.2)If event=’38004’ trace name context forever, level 1’ then remove from init.oraUnset TNS_ADMIN environment variable.

18/04/2023 Page 36 of 157

Page 37: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Create 10g Listener

Create 10g Listener using new ORACLE HOMEMake sure to use the same database port as old database 9i while creating 10g listener.comment all old reference in .profile and login su – oradev

$ export ORACLE_HOME= /u06/oracle/apps/tech_st/10.1.2$ export ORA_NLS10= /u06/oracle/apps/tech_st/10.1.2/nls/data/9idata

$ cd $ORACLE_HOME/bin$ netca

Net Configuration Assistant – Welcome Screen

18/04/2023 Page 37 of 157

Page 38: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Net Configuration Assistant – Add

Listener Name – “LISTENER”Same name as old one

18/04/2023 Page 38 of 157

Page 39: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

TCP Protocol

TCP/IP Protocol

18/04/2023 Page 39 of 157

Page 40: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

More Listeners? – <<No>>

Listener Configuration Complete

18/04/2023 Page 40 of 157

Page 41: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Click “Finish” to create listener

Run Database Upgrade Assistant

$echo $ORACLE_HOME/u06/oracle/apps/tech_st/10.1.2

$cd $ORACLE_HOME

$vi initPREPROD.oracompatible=10.2.0optimizer_features_enable =10.2.0.4Verify udump/bdump/cdump etc// check control file path// undo tablespace

$ dbua

18/04/2023 Page 41 of 157

Page 42: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Database Upgrade Assistant – Welcome Screen

18/04/2023 Page 42 of 157

Page 43: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

DBUA – Database

DBUA – Database

18/04/2023 Page 43 of 157

Page 44: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

DBUA – Database

Do you want to continue with upgrade? <<Yes>>

DBUA – Move Database Fileso Do Not Move Database Files as Part of Upgrade

18/04/2023 Page 44 of 157

Page 45: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

DBUA – SYSAUX Tablespace

DBUA – Recompile Invalid Objects

18/04/2023 Page 45 of 157

Page 46: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

DBUA – Backup

DBUA – Management Options

18/04/2023 Page 46 of 157

Page 47: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

DBUA – Recovery Configuration

DBUA – Database Credentials

Note : Password : aot123 ( after upgrade, it took the old passwords)

18/04/2023 Page 47 of 157

Page 48: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Database Upgrade Summary

DBUA – Progress

18/04/2023 Page 48 of 157

Page 49: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

DBUA – Progress

Upgrade Results

18/04/2023 Page 49 of 157

Page 50: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

DBUA – Upgrade Results

DBUA – Upgrade Results

18/04/2023 Page 50 of 157

Page 51: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

DBUA – Upgrade Results

DBUA – Upgrade Results

18/04/2023 Page 51 of 157

Page 52: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

DBUA – Upgrade Results – Obsolete Parameters Removed

DBUA – Upgrade Results – Obsolete Parameters Removed

18/04/2023 Page 52 of 157

Page 53: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

DBUA – Password Management

DBUA – Password Management

DBUA failed to upgrade the database or some of its components. See /u02/oracle/proddb/10.2.0/cfgtoollogs/dbua/PREPROD/upgrade for more details.Executing ** cmd **:=netscape /u02/oracle/proddb/10.2.0/assistants/dbua/doc/help/DefaultBehaviorChangesin10g.html

<<Ignore above message, it because you are not using RAC>>

18/04/2023 Page 53 of 157

Page 54: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Verify DBA_REGISTRYSqlplus “/ as sysdba”SQL> select comp_id,comp_name,version,status,modified 2* from dba_registry

COMP_ID COMP_NAME VERSION STATUS MODIFIED

CATALOG Oracle Database Catalog Views 10.2.0.4.0 VALID 11-APR-2010 19:52:38

CATPROC Oracle Database Packages and Types 10.2.0.4.0 VALID 11-APR-2010 19:52:38

JAVAVM JServer JAVA Vi rtual Machine 10.2.0.4.0 VALID 11-APR-2010 19:52:39

CATJAVA Oracle Database Java Packages 10.2.0.4.0 VALID 11-APR-2010 19:52:39

XML Oracle XDK 10.2.0.4.0 VALID 11-APR-2010 19:52:40

CONTEXT Oracle Text 10.2.0.4.0 VALID 11-APR-2010 19:52:40

RAC Oracle Real Application Clusters 10.2.0.4.0 INVALID 11-APR-2010 19:52:40

ORDIM Oracle interMedia 10.2.0.4.0 VALID 11-APR-2010 19:52:40

SDO Spatial 10.2.0.4.0 VALID 11-APR-2010 19:52:41

XDB Oracle XML Database 10.2.0.4.0 VALID 11-APR-2010 19:52:45

EM Oracle Enterprise Manager 10.2.0.4.0 VALID 11-APR-2010 09:06:57

11 rows selected.

SQL> show parameter control

NAME TYPE VALUE------------------------------------ ----------- ------------------------------control_file_record_keep_time integer 7control_files string /u03/oracle/proddata/cntrl01.dbf,

/u04/oracle/proddata/cntrl02.dbf, /u03/oracle/proddata/cntrl03.dbf

SQL> select file#,name,bytes 2* from v$tempfile

SQL> /

FILE# NAME BYTES---------- ------------------------------ ---------- 1 /u03/oracle/proddata/temp01.dbf 5242880000

Time Taken = ( 12 hours )

18/04/2023 Page 54 of 157

Page 55: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Additional Patches after the Database Upgrade

Patches

Patch 7497678 :

$ echo $ORACLE_HOME/u02/oracle/proddb/10.2.0

$ cd /u02/patches/dbpatches$ unzip p7497678_10204_AIX5L.zip $ cd 7497678

$ opatch apply

###### We skipped below steps (create user olapsys)

Startup the Oracle Services.# > sqlplus '/ as sysdba'# > spool post_install.log# > @?/olap/admin/apsrelod.sql# > @?/olap/admin/xoqrelod.sql## Connect as olapsys user# > conn olapsys/<pw># > @?/olap/admin/olapodm.plb# > spool off

Time Taken = ( 30 minutes )

Patch 4247037 :

$ echo $ORACLE_HOME/u02/oracle/proddb/10.2.0

$ cd /u02/patches/dbpatches$ unzip p4247037_10204_Generic.zip

# Patch Special Instructions:# ---------------------------# Note There was an incorrect SCHEMA name change from mgdsys to mgdapp# in the patch issued on the 2007-DEC-18# # If you have a previous version of the patch installed, you must # first deinstall from the database the previous patch be it the 18th of Dec# OR Eariler before installing this patch.#

18/04/2023 Page 55 of 157

Page 56: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

# You can use the deinstallation script supplied in the previous version to# deinstall the previous patch, before using opatch to deinstall the patch...## Deinstall an older version of this patch use ## connect to the database using sqlplus # connect as / as sysdba# # sqlplus> @catnomgdidcode## this will drop the old mgdsys or mgdapp user and their objects# once complete you can check everything has been removed with# the script patchset_mgd*_validity.sql located in# /md/support this should show no objects.# Post Install Instructions :## connect to the database using sqlplus # connect as / as sysdba## sqlplus> @catmgdidcode## If checking with patchset_mgdapp_validity.sql you find invalid objects# please run $ORACLE_HOME/rdbms/admin/utlrp.sql which should resolve any issues.## The patchset_mgdsys_validity.sql script in support was written by# BDE engineer to check the status of the build not by development#

$ cd 4247037

$ opatch applyOnce applied with opatch, the files are located in $ORACLE_HOME/md/admin# and $ORACLE_HOME/md/support for patchset_mgdsys_validity.sql

Time Taken = ( 15 minutes )

18/04/2023 Page 56 of 157

Page 57: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Patch 6084656 :

$ echo $ORACLE_HOME/u02/oracle/proddb/10.2.0

$ perl –v (v5.8.3)$ cd /u02/patches/dbpatches$ unzip p6084656_10204_AIX5L.zip

Shutdown all database services

$ cd 6084656$ opatch apply

Time Taken = (5 minutes)

Patch 6870937 :

$ echo $ORACLE_HOME/u02/oracle/proddb/10.2.0

$ cd /u02/patches/dbpatches$ unzip p6870937_10204_AIX5L.zip

$ cd 6870937$ opatch apply

Time Taken = ( 5 minutes )

Patch 6991626 :

$ echo $ORACLE_HOME/u02/oracle/proddb/10.2.0

$ cd /u02/patches/dbpatches$ unzip p6991626_10204_AIX5L.zip$ cd 6991626$ export OBJECT_MODE=32_64$ opatch apply$ cd $ORACLE_HOME/bin$ relink all

Time Taken = (10 minutes )

18/04/2023 Page 57 of 157

Page 58: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Patch 7014646 :

7014646 (no need to apply this patch)

18/04/2023 Page 58 of 157

Page 59: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Install Oracle Data Mining and OLAP

Install Oracle Data Mining and OLAP

Verify that Oracle Data Mining and OLAP are installed in your database by using SQL*Plus to connect to the database as SYSDBA and running the following command:

SQL> connect / as sysdba;SQL> select comp_id from dba_registry where comp_id='ODM' or comp_id='AMD';

If the query does not return ODM, then you do not have Oracle Data Mining installed. To install Data Mining, use SQL*Plus to connect to the database as SYSDBA and run the following command:

SQL> connect / as sysdba;SQL> @$ORACLE_HOME/rdbms/admin/dminst.sql SYSAUX TEMP

(we run this dminst.sql )

If the query does not return AMD, then you do not have OLAP installed. To install OLAP, use SQL*Plus to connect to the database as SYSDBA and run the following command:

SQL> connect / as sysdba;SQL> @$ORACLE_HOME/olap/admin/olap.sql SYSAUX TEMP

Time Taken = ( 30 minutes )

18/04/2023 Page 59 of 157

Page 60: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Fix Korean lexers

Use SQL*Plus to connect to the database as SYSDBA, and run drkorean.sql using the following command:

$ sqlplus "/ as sysdba" @$ORACLE_HOME/ctx/sample/script/drkorean.sql

Time Taken = ( 30 minutes )

18/04/2023 Page 60 of 157

Page 61: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Auto Extend Tablespaces/Datafiles

Make all you datafiles autoextend before upgrade starts

For example :-SQL>desc dba_data_files

Select file_name,tablespace_name, AUTOEXTENSIBLE,bytes/(1024*1024) size_mbFrom dba_data_filesWhere AUTOEXTENSIBLE <> ‘YES’Order by tablespace_name

SQL> alter database datafile ‘file_name’ autoextend on next 5m Verify temp,undo files

SQL> select file_name,tablespace_name,bytes from dba_temp_files;

FILE_NAME--------------------------------------------------------------------------------TABLESPACE_NAME BYTES------------------------------ ----------/u03/oracle/proddata/temp01.dbfTEMP 5242880000

select tablespace_name,INITIAL_EXTENT,NEXT_EXTENT,STATUS,CONTENTSfrom dba_tablespaceswhere tablespace_name like '%UNDO%';

TABLESPACE_NAME INITIAL_EXTENT NEXT_EXTENT STATUS CONTENTS------------------------------ -------------- ----------- --------- ---------APPS_UNDOTS1 65536 ONLINE UNDO

Select file_name,tablespace_name, AUTOEXTENSIBLE,bytes/(1024*1024) size_mbFrom dba_data_filesWhere tablespace_name = ‘APPS_UNDOTS1’

FILE_NAME--------------------------------------------------------------------------------TABLESPACE_NAME AUT SIZE_MB------------------------------ --- ----------/u03/oracle/proddata/rbs02.dbfAPPS_UNDOTS1 YES 4100

/u03/oracle/proddata/rbs01.dbfAPPS_UNDOTS1 YES 2000

18/04/2023 Page 61 of 157

Page 62: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Here we did not change temp file and undo tablespaces.

We are adding some datafiles who size is bigger

SELECT df.tablespace_name, ROUND (df.total_bytes / 1024 / 1024) total_mb, ROUND (NVL (fs.free_bytes, 0) / 1024 / 1024) free_mb, ROUND (100 * NVL (fs.free_bytes, 0) / df.total_bytes, 1) percent_empty FROM (SELECT tablespace_name, SUM (BYTES) total_bytes FROM dba_data_files GROUP BY tablespace_name) df, (SELECT tablespace_name, SUM (BYTES) free_bytes FROM dba_free_space GROUP BY tablespace_name) fs WHERE df.tablespace_name = fs.tablespace_name(+) AND NVL (fs.free_bytes, 0) / df.total_bytes <= (20 / 100);

Example :-

SQL> alter tablespace APPLSYSX add datafile '/u03/oracle/proddata/applsysx07.dbf' size 5000m;SQL> alter tablespace HRX add datafile '/u03/oracle/proddata/hrx02.dbf' size 500m;SQL> alter database datafile '/u03/oracle/proddata/icxd01.dbf' resize 750m;SQL> alter database datafile '/u04/oracle/proddata/icxx01.dbf' resize 400m;

Time Taken = ( 30 minutes )

18/04/2023 Page 62 of 157

Page 63: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Run Rapid Install to R12 Create File System

Staging

# cd StageR12# pwd/stage/StageR12# ls -ltrtotal 24drwxr-xr-x 3 root system 256 Apr 13 05:16 startCDdrwxr-xr-x 11 root system 4096 Apr 13 07:49 oraDBdrwxr-xr-x 53 root system 4096 Apr 14 03:09 oraAppDBdrwxr-xr-x 7 root system 256 Apr 14 03:24 oraASdrwxr-xr-x 18 root system 4096 Apr 14 05:20 oraApps

# chown –R appldev:dba /stageTime Taken = ( 20 minutes )

#chown –R appldev:dba /u06/oracle#chown –R 755 /u06/oracle

Time Taken = ( 20 minutes )

Run Rapid Install

# mkdir –p /u06/oracle# chown –R appldev/oracle# chmod –R 775 /u06/oracle

# su - appldev[YOU HAVE NEW MAIL]$ iduid=206(appldev) gid=201(dba) groups=1(staff)$ export DISPLAY=<Your PC IP>:0.0$ xclock

$ cd /stage/StageR12/startCD/Disk1/rapidwiz $ ./RapidWizVersionOracle Applications Rapid Install WizardVersion 12.1.1.9(c) Copyright 2000-2006 Oracle Corporation. All rights reserved.

18/04/2023 Page 63 of 157

Page 64: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

$ ./rapidwiz

Rapid Install Wizard is validating your file system...... 4 dvd labels foundRapid Install Wizard will now launch the Java Interface.....

Welcome Screen

Select Wizard Operationso Upgrade To Oracle Applications Release 12.1.1

18/04/2023 Page 64 of 157

Page 65: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Oracle Configuration Manager Details

Select Upgrade Actiono Create Upgrade File System

18/04/2023 Page 65 of 157

Page 66: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Global System Settings

Database Node Configuration

18/04/2023 Page 66 of 157

Page 67: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Review Application User Information

Select Internationalization Settings

18/04/2023 Page 67 of 157

Page 68: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Select Internationalizations Settings

Primary Application Node Configuration

18/04/2023 Page 68 of 157

Page 69: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Node Information

Pre Install Checks

18/04/2023 Page 69 of 157

Page 70: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Component Installation Review

Component Installation Reviewo Do you want to begin the installation now? <<Yes>>

18/04/2023 Page 70 of 157

Page 71: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Install in progress

Install in progressRW-50004 - <<Retry>> I click <<Retry>> the interface continue, this error is for cloning so safely you can ignore and continue.

Error Log File : APPENDIX E : RW-50004

18/04/2023 Page 71 of 157

Page 72: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Install in progress

Post Install Checks

18/04/2023 Page 72 of 157

Page 73: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

System Check Details

Upgrade File Database ORACLE_HOME environment file passes instantiated variables test: File = /u06/oracle/db/tech_st/11.1.0/PREPROD_hrdev.env TNSNames SQL*Net file passes instantiated variables test: File = /u06/oracle/db/tech_st/11.1.0/network/admin/PREPROD_hrdev/tnsnames.ora APPL_TOP environment file passes instantiated variables test: File = /u06/oracle/apps/apps_st/appl/PREPROD_hrdev.env ADOVARS environment file passes instantiated variables test: File = /u06/oracle/apps/apps_st/appl/admin/adovars.env APPSCONFIG passes instantiated variables test: File = /u06/oracle/apps/apps_st/appl/admin/adconfig.txt

18/04/2023 Page 73 of 157

Page 74: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Install Oracle Application – Finisho Click <<Finish>>

Configuration file written to: /u06/oracle/inst/apps/PREPROD_hrdev/conf_PREPROD.txtConfiguration file written to: /u06/oracle/db/tech_st/11.1.0/appsutil/conf_PREPROD.txtDatabase logfile - /u06/oracle/db/tech_st/11.1.0/appsutil/log/PREPROD_hrdev/04170202.logAppltop logfile - /u06/oracle/inst/apps/PREPROD_hrdev/logs/04170202.logAppltop logfile - /u06/oracle/inst/apps/PREPROD_hrdev/logs/04170202.log

Time Taken = ( 2 hours )

18/04/2023 Page 74 of 157

Page 75: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

CTXSYS

Grant creates procedure privilege on CTXSYS (???)Copy $AD_TOP/patch/115/sql/adctxprv.sql from the administration server node to the database server node. If you are upgrading to R12, use the R12 version of the file. Use SQL*Plus to connect to the database as APPS and run the script using the following command:

$ sqlplus apps/ @adctxprv.sql \CTXSYS

$ su – oradevSQL> alter user apps account unlock;

User altered.SQL> conn apps/clone;Connected.SQL> @/u06/oracle/apps/apps_st/appl/ad/12.0.0/patch/115/sql/adctxprv.sql CTXSYSSQL> conn apps/apps;ERROR:ORA-01017: invalid username/password; logon denied

Warning: You are no longer connected to ORACLE.SQL> conn apps/cloneConnected.SQL> @/u06/oracle/apps/apps_st/appl/ad/12.0.0/patch/115/sql/adctxprv.sql clone CTXSYS

Connecting to SYSTEMConnected.

PL/SQL procedure successfully completed.

Commit complete.

Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing options

Note : adctxprv.sql clone CTXSYS “clone” is system user password

Time Taken = ( 20 minutes )

18/04/2023 Page 75 of 157

Page 76: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Drop MRC schema (conditional)

Drop MRC schema (conditional)

Applies to 11i release level: All TUMS step key: N/AAll programs and reports now use the APPS schema. Because the MRC_APPS schema is no longer needed, dropping it frees space and reduces processing overhead during the upgrade. If you have not previously done so, drop the MRC schema now.

$ cd APPL_TOP/admin$ sqlplus <SYSTEM username>/<SYSTEM password> @addrpmrc.sql<APPLSYS username> FORCE

Example :- sqlplus system/cloneSQL> show userUSER is "SYSTEM"SQL> @/u06/oracle/apps/apps_st/appl/admin/addrpmrc.sql APPLSYS FORCE

Output :

NAMEaddrpmrc.sql

DESCRIPTION

Drop MRC schema if release >= 11.5.10.

=============================================================

Getting the name of the MRC schema....begin*ERROR at line 1:ORA-20000: MRC schema name not registered in FND_ORACLE_USERIDORA-06512: at line 11

Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing options

( Since MRC schema name not registered, so I think there is no point of dropping, So I ignored and continued with other steps)

18/04/2023 Page 76 of 157

Page 77: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Backup Database & R12 File System

Must shutdown normal before backup

SQL> shutdown immediate;Database closed.Database dismounted.ORACLE instance shut down.

SQL> startup.

SQL> shutdown normal;Database closed.Database dismounted.ORACLE instance shut down.

Backup File System :

/u02/oracle/proddb/10.2.0/u03/oracle/proddata/u04/oracle/proddata/u06/oracle

Time Taken = ( 5 hours )

18/04/2023 Page 77 of 157

Page 78: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Gather Statistics for SYS schema

Sqlplus “/ as sysdba”SQL> shutdown normal;Database closed.Database dismounted.ORACLE instance shut down.

SQL> startup restrict;ORACLE instance started.

Total System Global Area 612368384 bytesFixed Size 2085912 bytesVariable Size 427822056 bytesDatabase Buffers 167772160 bytesRedo Buffers 14688256 bytesDatabase mounted.Database opened.

SQL> @/u06/oracle/apps/apps_st/appl/admin/adstats.sql;PL/SQL procedure successfully completed.

--------------------------------------------------- adstats.sql ended at 2010-04-18 01:40:07 ---

SQL>shutdown normal;

Commit complete.

Time Taken = ( 20 minutes )

18/04/2023 Page 78 of 157

Page 79: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Update .profile

Set Environment Variables for Database and Application TierDatabase environment profile and application environment profile

Refer : APPENDIX D : .profile

Time Taken = ( 10 minutes )

18/04/2023 Page 79 of 157

Page 80: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Enable Maintenance Mode

$ su – appldev$ adadmin

5. Change Maintenance Mode1. Enabled Maintenance Mode

( Here Maintenance Mode already enabled – we did before )

Time Taken = ( 5 minutes )

18/04/2023 Page 80 of 157

Page 81: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Apply AD 12.1.1 upgrade driver (required) - Part 1

Apply AD 12.1.1 upgrade driver (required)Applies to 11i release level: All TUMS step key: N/A Download and unzip the AD Upgrade Driver for 12.1.1 (patch 7461070). Use AutoPatch to run it on all application tier server nodes on your Release 12.1.1 APPL_TOP.

$ cd /u02/patches# chown appldev:dba p7461070_R12_AIX64-5L.zip# chmod 755 p7461070_R12_AIX64-5L.zip# chown -R appldev:dba /u02/patches/7461070# chmod -R 755 /u02/patches/7461070

Pre-installation:Usage:

1. Create $ORACLE_HOME/appsutil/admin on the database server.

2. Copy adgrants.sql (UNIX) from this patch directory to $ORACLE_HOME/appsutil/admin. Or, copy adgrants_nt.sql (Windows) from this patch directory to %ORACLE_HOME%\appsutil\admin.

3. Set the environment to point to ORACLE_HOME on the database server.

$ su – appldev$ cd /u02/patches/7461070$ adpatch

Enter the directory where your Oracle Applications patch has been unloaded

The default directory is [/u02/patches/7461070] :

Please enter the name of your AutoPatch driver file : u7461070.drv==========

18/04/2023 Page 81 of 157

Page 82: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Patch Errors and Solution :

ERROR-01 :

ATTENTION: All workers either have failed or are waiting:

FAILED: file afpub.sql on worker 1.sqlplus -s APPS/***** @/u06/oracle/apps/apps_st/appl/fnd/12.0.0/patch/115/sql/afpub.sql &un_apps &pw_apps &un_pub &pw_pubPL/SQL procedure successfully completed.

ERROR:ORA-01017: invalid username/password; logon denied

Solution :

I open the script afpub.sql and hardcorded applsyspub connect string, applpub is wrongREM Connect to applpub/pubREM connect &3/&&4connect applsyspub/clone

and restry from adctrl

Done purging timing information for prior sessions.

AutoPatch is complete.

AutoPatch may have written informational messages to the file/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/adpatch_7461070.lgi

Errors and warnings are listed in the log file/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/adpatch_7461070.log

and in other log files in the same directory.

Post Patch :

Run adadmin -> Maintain Applications Database Entities menu -> Re-create grants and synonyms for APPS schema.

ATTENTION: All workers either have failed or are waiting:

FAILED: file adappsgs.pls on worker 1. FAILED: file adappsgs.pls on worker 2.

18/04/2023 Page 82 of 157

Page 83: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

//adworker001.logsqlplus -s APPS/***** @/u06/oracle/apps/apps_st/appl/ad/12.0.0/patch/115/sql/adappsgs.pls &systempwd 1 APPLSYS APPLSYS APPS TRUE FALSE TRUEConnected.old 2: ad_apps_private.create_grants_and_synonyms(&2,'&3','&4','&5','FALSE');new 2: ad_apps_private.create_grants_and_synonyms(1,'APPLSYS','APPLSYS','APPS','FALSE');begin*ERROR at line 1:ORA-20000: ORA-00955: name is already used by an existingobject:create_grants_and_synonyms(1,APPLSYS,APPLSYS,APPS):create_base_gs(APPLSYS,APPS): In SynonymsLoop:create_synonym(APPLSYS,CK_LOG,APPS,CK_LOG): do_apps_ddl(APPS,CREATESYNONYM "CK_LOG" FOR APPLSYS."CK_LOG"):ORA-06512: at line 5

Solution :

As an apps user:SQL> alter table cl_log rename to cl_log_bkp

Run again “adadmin”

Time Taken = ( 5 hours )

18/04/2023 Page 83 of 157

Page 84: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Apply AD 12.1.1 upgrade driver (required) - Part 2

Run the American English upgrade patch driver (required)

Applies to 11i release level: AllTUMS step key: N/ATo bring your database to the full Oracle E-Business Suite Release 12.1.1 level, use AutoPatch to run the (American English) unified driver (u6678700.drv). It is located in $AU_TOP/patch/115/driver.Run the driver on the administration server node on your Release 12.1.1 APPL_TOP using the following commands:$ adpatch options=nocopyportion,nogenerateportion

==========$ su – appldev$ cd /u06/oracle/apps/apps_st/appl/au/12.0.0/patch/115/driver$ adpatch options=nocopyportion,nogenerateportion

Patch Errors and Solution :

ERROR-01:Determining which SQL and EXEC commands to run...

AutoPatch error:Unable to allocate memory in procedure aiumab().

You should check the file/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/6678700.log

Solution:Restart again from the point of failerYour previous AutoPatch session did not run to completion.Do you wish to continue with your previous AutoPatch session [Yes] ?

18/04/2023 Page 84 of 157

Page 85: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

ERROR-02 :

Number of invalid objects: 49

Running SQL scripts and EXEC commands...

Determining which SQL and EXEC commands to run...

Error allocating map record in adptrd()

You should check the file/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/6678700.log

Solution :

Increase db_cache_size and shared_pool_size to 1GBCreate pfile=’$OH/dbs/pfile_17_Apr.ora’ from spfile;Create spfile from pfile=’$OH/dbs/pfile_17_Apr.ora’

ERROR-03Same error

Solution : we rebooted the server again we start adpatch from the scratch$ su – appldev$ export LDR_CNTRL=MAXDATA=0x40000000

Then run adpatch again( After this LDR_CNTRL – this patch continued from the point of failure and applied patch successfully)

ERROR-04 :

ATTENTION: Please fix the above failed worker(s) so the manager can continue.

Fixed: file hrl2limg.sql on worker 1 for product per username HR.Restarted: file hrl2limg.sql on worker 1 for product per username HR. FAILED: file hrl2limg.sql on worker 1 for product per username HR.

ATTENTION: All workers either have failed or are waiting:

FAILED: file hrl2limg.sql on worker 1.

ATTENTION: Please fix the above failed worker(s) so the manager can continue.

18/04/2023 Page 85 of 157

Page 86: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Start time for file is: Mon Apr 19 2010 01:27:42

sqlplus -s APPS/***** @/u06/oracle/apps/apps_st/appl/per/12.0.0/patch/115/sql/hrl2limg.sqlDECLARE*ERROR at line 1:ORA-20001: Exception in migration of long data to clob data.ORA-06512: at line 188

Solution :

When Applying Patch 4440000 : hrl2limg.sql ORA-20001: Exception in migration of long data to clob data. [ID 549726.1]

-- To implement the solution, please execute the following steps::Te file hrl2limg.sql has been obsoleted and is no longer needed.Therefore when you apply the patch, skip any error on hrl2limg.sql and ignore the errors on thatscript.

So Use hidden option to skip

Enter your choice [1] : 8

Enter the worker number(s)/range(s) or 'all' for all workers,or press [Return] to go back to the menu : 1

Status changed to 'Skip & restart' for worker 1.Review the messages above, then press [Return] to continue.

ERROR-04 :

ATTENTION: All workers either have failed or are waiting:

FAILED: file perteng.odf on worker 1.

//adworker001.log

AD Worker error:The following ORACLE error:

ORA-01630: max # extents (1005) reached in temp segment in tablespace HRDoccurred while executing the SQL statement:

//In Alert log fileMon Apr 19 02:27:40 2010

18/04/2023 Page 86 of 157

Page 87: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

ORA-1630: max # extents 1005 reached in temp segment for tablespace HRDMon Apr 19 02:29:34 2010

Solution :

Select TABLESPACE_NAME,INITIAL_EXTENT,NEXT_EXTENT,PCT_INCREASE,CONTENTS,EXTENT_MANAGEMENT ,Max_extentsfrom dba_tablespaceswhere tablespace_name = 'HRD';

TABLESPACE_NAME INITIAL_EXTENT NEXT_EXTENT PCT_INCREASE CONTENTS------------------------------ -------------- ----------- ------------ ---------EXTENT_MAN max_extents----------HRD 40960 40960 0 PERMANENTLOCAL 505

SQL> alter tablespace hrd default storage (maxextents unlimited);

Tablespace altered.

SQL> get x1 1 select TABLESPACE_NAME,INITIAL_EXTENT,NEXT_EXTENT,max_extents,CONTENTS,EXTENT_MANAGEMENT from dba_tablespaces 2* where tablespace_name like 'HRD'SQL> /

TABLESPACE_NAME INITIAL_EXTENT NEXT_EXTENT MAX_EXTENTS CONTENTS------------------------------ -------------- ----------- ----------- ---------EXTENT_MAN----------HRD 40960 40960 2147483645 PERMANENTLOCAL

18/04/2023 Page 87 of 157

Page 88: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

ERROR-05:

ATTENTION: All workers either have failed or are waiting:

FAILED: file icx_transactions.xdf on worker 1.Index ICX_TRANSACTIONS_N1 exists under ICX schema.

ControlWorker Code Context Filename Status------ -------- ----------------- -------------------------- -------------- 1 Run AutoPatch R120 pl icx_transactions.xdf FAILED

Checking for differencesColumn_name and Uniqueness match for both file and DB IndexesThe Index in xdf-file and db match perfectly. No alteration necessary.Index ICX_TRANSACTIONS_U1 does not exist in ICX.

CREATE UNIQUE INDEX "ICX"."ICX_TRANSACTIONS_U1" ON "ICX"."ICX_TRANSACTIONS" ("TRANSACTION_ID") PCTFREE 10 INITRANS 11 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 16384 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 4 BUFFER_POOL DEFAULT) TABLESPACE "APPS_TS_TX_IDX" PARALLEL NOLOGGINGALTER INDEX ICX.ICX_TRANSACTIONS_U1 NOPARALLEL LOGGINGStart time for statement above is Mon Apr 19 03:59:09 CDT 2010Start time for statement above is Mon Apr 19 03:59:10 CDT 2010ORA-12801 error occured during Index creation.

Updating task with status 1

AD Worker error:

Solution :

skipped with 8 optionand later run manully

adjava -mx512m -nojit oracle.apps.fnd.odf2.FndXdfCmp icx clone apps clone thin hrdev:1521:PREPROD all icx_transactions.xdf $FND_TOP/patch/115/xdf/xsl

18/04/2023 Page 88 of 157

Page 89: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

ERROR-06 :

ControlWorker Code Context Filename Status------ -------- ----------------- -------------------------- -------------- 1 Run AutoPatch R120 pl PO_VENDORS_OBS_F1.xdf FAILED

Index PO_VENDORS_OBS_F1 does not exist in PO.

CREATE INDEX "PO"."PO_VENDORS_OBS_F1" ON "PO"."PO_VENDORS_OBS" (NVL("END_DATE_ACTIVE",TO_DATE('9999-12-31 00:00:00', 'yyyy-mm-dd hh24:mi:ss'))) PCTFREE 10 INITRANS 11 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 16384 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 4 BUFFER_POOL DEFAULT) TABLESPACE "APPS_TS_TX_IDX"Start time for statement above is Mon Apr 19 04:05:06 CDT 2010A Differnt index with same column name existsUpdating task with status 1

AD Worker error:The utility FndXdfCmp returned error for the above task.

Solution :

Creation of Index PO_VENDORS_OBS_F1 Failed When Applying 12.1.1 Upgrade Patch 6678700 [ID 859556.1]

To implement the solution, please execute the following steps:

1) Drop index PO_VENDORS_F1

You can use command similar as: SQL> drop index PO.PO_VENDORS_F1;

2) Restart the failed worker.

Or Skip the worker processes using 8 option and do manually as :SQL> drop index PO_VERDORS_F1

Su - appldevadjava -mx512m -nojit oracle.apps.fnd.odf2.FndXdfCmp po clone apps clone thin hrdev:1521:PREPROD all PO_VENDORS_OBS_F1.xdf $FND_TOP/patch/115/xdf/xsl

18/04/2023 Page 89 of 157

Page 90: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

ERROR-07 :

ATTENTION: All workers either have failed or are waiting:

FAILED: file zpbremcwm.sql on worker 1.

ControlWorker Code Context Filename Status------ -------- ----------------- -------------------------- -------------- 1 Run AutoPatch R120 pl zpbremcwm.sql FAILED 2 Run AutoPatch R120 pl Wait 3 Run AutoPatch R120 pl Wait

//adworker001sqlplus -s APPS/***** @/u06/oracle/apps/apps_st/appl/zpb/12.0.0/patch/115/sql/zpbremcwm.sql cwm2_olap_cube.drop_cube(G_SCHEMA, v_cube.name); *ERROR at line 235:ORA-06550: line 235, column 6:PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_CUBEORA-06550: line 235, column 6:PL/SQL: Statement ignoredORA-06550: line 239, column 6:PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_DIMENSIONORA-06550: line 239, column 6:PL/SQL: Statement ignoredORA-06550: line 243, column 6:PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_CATALOGORA-06550: line 243, column 6:PL/SQL: Statement ignoredORA-06550: line 247, column 4:PLS-00904: insufficient privilege to access objectOLAPSYS.CWM2_OLAP_METADATA_REFRESHORA-06550: line 247, column 4:PL/SQL: Statement ignored

Solution :As per article 744973.1 ZPBREMCWM.SQL Returns Error: PLS-00904: Insufficient Privilege To Access Object [ID 744973.1]

Grant the following privileges to the user APPS:grant execute on OLAPSYS.CWM2_OLAP_METADATA_REFRESH to apps; grant execute on OLAPSYS.CWM2_OLAP_CATALOG to apps; grant execute on OLAPSYS.CWM2_OLAP_DIMENSION to apps;

18/04/2023 Page 90 of 157

Page 91: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

grant execute on OLAPSYS.CWM2_OLAP_CUBE to apps;

You should check the file /u06/oracle/apps/apps_st/appl/admin/PREPROD/out/adt05358.lst

for details.

Purging timing information for prior sessions.

sqlplus -s APPS/***** @/u06/oracle/apps/apps_st/appl/ad/12.0.0/sql/adtpurge.sql 10 1000

Done purging timing information for prior sessions.

AutoPatch is complete.

AutoPatch may have written informational messages to the file/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/6678700_5.lgi

Errors and warnings are listed in the log file/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/6678700_5.log

and in other log files in the same directory.

SQL> select release_name from apps.fnd_product_groups;

RELEASE_NAME--------------------------------------------------12.1.1

Try to start application tier$ adstrtal.sh It should start all the services except concurrent manager

Time Taken = (more than 24 hours)

18/04/2023 Page 91 of 157

Page 92: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Apply AD 12.1.1 upgrade driver – NLS Patch for Arabic

Download patch 6678700_AR from edelivery.oracle.com

http://edelivery.oracle.com/EPD/Download/get_form?egroup_aru_number=11250156

Oracle E-Business Suite Release 12.1.1 (with NLS Supplement) Media Pack for IBM AIX Based Systems (64-bit)

Prerequisites:

1) Patch 8576725: 12.1.1 NLS PATCHING PERFORMANCE FIXMake sure ftp as bin

$ cd /stageunzip 8576725cd /stage/8576725adpatch

Time Taken = (30 minutes)

Apply NLS Patch u6678700.drv for Arabic

Oracle E-Business Suite NLS Release 12.1.1 – Arabic – V16151ftp as bincd /u02/patches$ unzip V16151-01.zip$ cd /u02/patches/6678700_AR$ adpatch

Enter the directory where your Oracle Applications patch has been unloaded

The default directory is [/u02/patches/6678700_AR] :

Please enter the name of your AutoPatch driver file : u6678700.drv

18/04/2023 Page 92 of 157

Page 93: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

sqlplus -s APPS/***** @/u06/oracle/apps/apps_st/appl/ad/12.0.0/sql/adtpurge.sql 10 1000

Done purging timing information for prior sessions.

AutoPatch is complete.

AutoPatch may have written informational messages to the file/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/u6678700.lgi

Errors and warnings are listed in the log file/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/u6678700.log

and in other log files in the same directory.

Time Taken = ( 2 hours)

18/04/2023 Page 93 of 157

Page 94: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Disable Maintenance Mode

$ adadmin5. Change Maintenance Mode2. Disabled Maintenance Mode

Time Taken = ( 5 minutes )

18/04/2023 Page 94 of 157

Page 95: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Configure and Start Services

# su – appldev$ ./adstrtal.sh apps/clone

You are running adstrtal.sh version 120.15

The logfile for this session is located at /u06/oracle/inst/apps/PREPROD_hrdev/logs/appl/admin/log/adstrtal.logExecuting service control script:/u06/oracle/inst/apps/PREPROD_hrdev/admin/scripts/adopmnctl.sh startscript returned:****************************************************

You are running adopmnctl.sh version 120.6

Starting Oracle Process Manager (OPMN) ...

adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u06/oracle/inst/apps/PREPROD_hrdev/logs/appl/admin/log/adopmnctl.txt for more information ...

.end std out.

.end err out.

****************************************************

Executing service control script:/u06/oracle/inst/apps/PREPROD_hrdev/admin/scripts/adalnctl.sh startscript returned:****************************************************

adalnctl.sh version 120.3

Checking for FNDFS executable.Starting listener process APPS_PREPROD.

adalnctl.sh: exiting with status 1

adalnctl.sh: check the logfile /u06/oracle/inst/apps/PREPROD_hrdev/logs/appl/admin/log/adalnctl.txt for more information ...

18/04/2023 Page 95 of 157

Page 96: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

.end std out.grep: 0652-033 Cannot open /u06/oracle/inst/apps/PREPROD_hrdev/ora/10.1.2/network/admin/listener.ora.

.end err out.

****************************************************

Executing service control script:/u06/oracle/inst/apps/PREPROD_hrdev/admin/scripts/adapcctl.sh startscript returned:****************************************************

You are running adapcctl.sh version 120.7.12010000.2

Starting OPMN managed Oracle HTTP Server (OHS) instance ...

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /u06/oracle/inst/apps/PREPROD_hrdev/logs/appl/admin/log/adapcctl.txt for more information ...

.end std out.

.end err out.

****************************************************

Executing service control script:/u06/oracle/inst/apps/PREPROD_hrdev/admin/scripts/adoacorectl.sh startscript returned:****************************************************

You are running adoacorectl.sh version 120.13

Starting OPMN managed OACORE OC4J instance ...

adoacorectl.sh: exiting with status 0

adoacorectl.sh: check the logfile /u06/oracle/inst/apps/PREPROD_hrdev/logs/appl/admin/log/adoacorectl.txt for more information ...

18/04/2023 Page 96 of 157

Page 97: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

.end std out.

.end err out.

****************************************************

Executing service control script:/u06/oracle/inst/apps/PREPROD_hrdev/admin/scripts/adformsctl.sh startscript returned:****************************************************

You are running adformsctl.sh version 120.16

Starting OPMN managed FORMS OC4J instance ...

adformsctl.sh: exiting with status 0

adformsctl.sh: check the logfile /u06/oracle/inst/apps/PREPROD_hrdev/logs/appl/admin/log/adformsctl.txt for more information ...

.end std out.

.end err out.

****************************************************

Executing service control script:/u06/oracle/inst/apps/PREPROD_hrdev/admin/scripts/adoafmctl.sh startscript returned:****************************************************

You are running adoafmctl.sh version 120.8

Starting OPMN managed OAFM OC4J instance ...

adoafmctl.sh: exiting with status 0

adoafmctl.sh: check the logfile /u06/oracle/inst/apps/PREPROD_hrdev/logs/appl/admin/log/adoafmctl.txt for more information ...

.end std out.

.end err out.

18/04/2023 Page 97 of 157

Page 98: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

****************************************************

Executing service control script:/u06/oracle/inst/apps/PREPROD_hrdev/admin/scripts/adcmctl.sh startscript returned:****************************************************

You are running adcmctl.sh version 120.17.12010000.3

Starting concurrent manager for PREPROD ...Starting PREPROD_0421@PREPROD Internal Concurrent ManagerDefault printer is noprint

adcmctl.sh: exiting with status 0

adcmctl.sh: check the logfile /u06/oracle/inst/apps/PREPROD_hrdev/logs/appl/admin/log/adcmctl.txt for more information ...

.end std out.

.end err out.

****************************************************

Executing service control script:/u06/oracle/inst/apps/PREPROD_hrdev/admin/scripts/jtffmctl.sh startscript returned:****************************************************

You are running jtffmctl.sh version 120.3

Validating Fulfillment patch level via /u06/oracle/apps/apps_st/comn/java/classesFulfillment patch level validated.Starting Fulfillment Server for PREPROD on port 9300 ...

jtffmctl.sh: exiting with status 0

.end std out.

.end err out.

****************************************************

18/04/2023 Page 98 of 157

Page 99: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

adstrtal.sh: Exiting with status 1

adstrtal.sh: check the logfile /u06/oracle/inst/apps/PREPROD_hrdev/logs/appl/admin/log/adstrtal.log for more information ...

Time Taken = ( 10 minutes )

18/04/2023 Page 99 of 157

Page 100: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Update the RDBMS ORACLE_HOME file system with Autoconfig files

Update the RDBMS ORACLE_HOME file system with AutoConfig files.Update the RDBMS ORACLE_HOME file system with AutoConfig files.On the application tier (as the APPLMGR user), log on to the APPL_TOPenvironment (source the environment file) and run this Perl script to createappsutil.zip in <INST_TOP>/admin/out.

perl <AD_TOP>/bin/admkappsutil.pl

On the database tier (as the ORACLE user), copy or FTP the appsutil.zip file to the <RDBMS ORACLE_HOME> and unzip the file. Change directory to RDBMS Oracle Home as follows:

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

$ iduid=206(appldev) gid=201(dba) groups=1(staff)$ cd $AD_TOP$ pwd/u06/oracle/apps/apps_st/appl/ad/12.0.0$ cd$ perl /u06/oracle/apps/apps_st/appl/ad/12.0.0/bin/admkappsutil.pl

Starting the generation of appsutil.zipLog file located at /u06/oracle/inst/apps/PREPROD_hrdev/admin/log/MakeAppsUtil_04210142.logoutput located at /u06/oracle/inst/apps/PREPROD_hrdev/admin/out/appsutil.zipMakeAppsUtil completed successfully.

$ cd $INST_TOP$ cd admin/out$ ls -l appsutil.zip-rw-r--r-- 1 appldev dba 2683705 Apr 21 01:43 appsutil.zip$ pwd/u06/oracle/inst/apps/PREPROD_hrdev/admin/out

# cd /u06/oracle/inst/apps/PREPROD_hrdev/admin/out# cp appsutil.zip /u02/oracle/proddb/10.2.0

# cd /u02/oracle/proddb/10.2.0# ls -l appsutil.zip-rw-r--r-- 1 root system 2683705 Apr 21 01:47 appsutil.zip# chown oradev:dba appsutill.zip

18/04/2023 Page 100 of 157

Page 101: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

chown: appsutill.zip: A file or directory in the path name does not exist.# chown oradev:dba appsutil.zip# chmod 755 appsutil.zip

$ su – oradev$ pwd/u02/oracle/proddb/10.2.0

$ ls -l appsutil.zip-rwxr-xr-x 1 oradev dba 2683705 Apr 21 01:47 appsutil.zip

$unzip -o appsutil.zipcreating: appsutil/media/ inflating: appsutil/media/FNDSSCORP.gif inflating: appsutil/media/eyeglasses_transparent.gif inflating: appsutil/media/chsd.gif inflating: appsutil/media/chsu.gif

$ cd appsutil$ lsadmin bin html java media perl sql template

Time Taken = ( 15 minutes )

18/04/2023 Page 101 of 157

Page 102: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Install JRE on the database tier

Install JRE on the database tier.Install JRE on the database tier to ensure that the application tier and the database tier match: If you are using a "fully certified" platform, refer to My Oracle Support (Doc ID: 418664.1) to install JRE under the <RDBMS_ORACLE_HOME>/appsutil directory.If you are using a "database tier only" platform, refer to My Oracle Support(Doc ID: 456197.1) to install JRE under the <RDBMS_ORACLE_HOME>/appsutil directory.

I copied jre from 11g as which R12 files system created

$ cd /u06/oracle/db/tech_st/11.1.0/appsutil/jre/bin$ ./java -versionjava version "1.6.0"Java(TM) SE Runtime Environment (build pap3260-20071123_01)IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 AIX ppc-32 jvmap3260-20071121_15015 (JIT enabled)J9VM - 20071121_015015_bHdSMRJIT - r9_20071121_1330GC - 20071031_AA)JCL - 20071118_01

# pwd/u06/oracle/db/tech_st/11.1.0/appsutil# cp -r jre /u02/oracle/proddb/10.2.0/appsutil

# cd /u02/oracle/proddb/10.2.0/appsutil# chown -R oradev:dba jre# chmod -R 755 jre

# pwd/u02/oracle/proddb/10.2.0/appsutil/jre/bin# ./java -versionjava version "1.6.0"Java(TM) SE Runtime Environment (build pap3260-20071123_01)IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 AIX ppc-32 jvmap3260-20071121_15015 (JIT enabled)J9VM - 20071121_015015_bHdSMRJIT - r9_20071121_1330GC - 20071031_AA)JCL - 20071118_01

Time Taken = ( 15 minutes )

18/04/2023 Page 102 of 157

Page 103: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Create a <CONTEXT_NAME> directory under

Create a <CONTEXT_NAME> directory under$ORACLE_HOME/network/admin, where CONTEXT_NAME is<ORACLE_SID>_<DB_hostname>. Copy listener.ora and tnsnames.ora from the $ORACLE_HOME/network/admin directory to the$ORACLE_HOME/network/admin/<CONTEXT_NAME> directory.

$ cd $ORACLE_HOME/network/admin$ mkdir PREPROD_hrdev

$ cp listener.ora ./PREPROD_hrdev$ cp tnsnames.ora ./PREPROD_hrdev

$ pwd/u02/oracle/proddb/10.2.0/network/admin/PREPROD_hrdev

$ ls -ltrtotal 16-rw-r--r-- 1 oradev dba 493 Apr 21 03:11 listener.ora-rw-r--r-- 1 oradev dba 530 Apr 21 03:11 tnsnames.ora

Time Taken = ( 5 minutes )

18/04/2023 Page 103 of 157

Page 104: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Set and export environment variables

Set and export the following environment variables:ORACLE_HOME=<RDBMS_ORACLE_HOME> LD_LIBRARY_PATH = $ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib ORACLE_SID = <instance name for current database node> PATH = $PATH:$ORACLE_HOME/bin TNS_ADMIN = $ORACLE_HOME/network/admin/<CONTEXT_NAME>(TNS_ADMIN=/u02/oracle/proddb/10.2.0/network/admin/PREPROD_hrdev)

$ echo $ORACLE_HOME/u02/oracle/proddb/10.2.0

$ echo $LD_LIBRARY_PATH/u02/oracle/proddb/10.2.0/lib:/u02/oracle/proddb/10.2.0/ctx/lib

$ echo $ORACLE_SIDPREPROD

$ echo $PATH/u02/oracle/proddb/10.2.0/bin:/u02/oracle/proddb/10.2.0/perl/bin:/usr/bin:/etc:/usr/vac/bin:/usr/sbin:/usr/ucb:/home/oradev/bin:/usr/bin/X11:/sbin:.:/u02/oracle/proddb/10.2.0/OPatch

$ echo $TNS_ADMIN/u02/oracle/proddb/10.2.0/network/admin/PREPROD_hrdev

$vi .profilePATH=/usr/bin:/etc:/usr/vac/bin:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.export PATH

set -o vi#export ORACLE_HOME=/u02/oracle/proddb/9.2.0#export ORACLE_SID=DEV#. /u02/oracle/proddb/9.2.0/PREPROD_hrdev.env

#SCRIPTS=/u02/oracle/proddb/9.2.0/appsutil/scripts/PREPROD_hrdev#export SCRIPTS#================TSM entry========#export LD_LIBRARY_PATH=$ORACLE_HOME/lib

#export ORACLE_BDUMP=/u02/oracle/proddb/9.2.0/admin/PREPROD_hrdev/bdump

if [ -s "$MAIL" ] # This is at Shell startup. In normalthen echo "$MAILMSG" # operation, the Shell checks

18/04/2023 Page 104 of 157

Page 105: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

fi # periodically.export ORACLE_HOME=/u02/oracle/proddb/10.2.0export ORACLE_SID=PREPRODexport PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$PATH:/u02/oracle/proddb/10.2.0/OPatchexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/libexport PERL5LIB=$ORACLE_HOME/perl/lib:$ORACLE_HOME/perl/lib/site_perlexport ORA_NLS10=$ORACLE_HOME/nls/data/9idataexport TNS_ADMIN=$ORACLE_HOME/network/admin/PREPROD_hrdev

Refer : APPENDIX D : .profile

Time Taken = ( 20 minutes )

18/04/2023 Page 105 of 157

Page 106: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Generate a new Database context file

Generate a new Database context file as follows:UNIX:

$ su – oradev

$ cd <RDBMS ORACLE_HOME>/appsutil/bin

$ perl adbldxml.pl

Starting context file generation for db tier..Using JVM from /u02/oracle/proddb/10.2.0/appsutil/jre/bin/java to execute java programs..APPS Password: clone

The log file for this adbldxml session is located at:/u02/oracle/proddb/10.2.0/appsutil/log/adbldxml_04210331.logAC-00013: Error: File: /u02/oracle/proddb/10.2.0/network/admin/PREPROD_hrdev/listener.ora is not a valid file as database SID could not be found for connect string: PREPROD

Could not Connect to the Database with the above parameters, Please answer the Questions below

Enter Hostname of Database server: hrdev

Enter Port of Database server: 1521

Enter SID of Database server: PREPROD

Enter the value for Display Variable:Invalid input, reenter the value for Display Variable: 0.0

The context file has been created at:/u02/oracle/proddb/10.2.0/appsutil/PREPROD_hrdev.xml$

Time Taken = ( 30 minutes )

18/04/2023 Page 106 of 157

Page 107: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Run AutoConfig on the database tier nodes

Run AutoConfig on the database tier nodes.UNIX:<RDBMS ORACLE_HOME>>/appsutil/bin/adconfig.sh contextfile=<context file created in step 29>

$ cd $ORACLE_HOME/appsutil/bin$adconfig.sh contextfile= /u02/oracle/proddb/10.2.0/appsutil/PREPROD_hrdev.xml

Output : =============$ adconfig.sh contextfile=/u02/oracle/proddb/10.2.0/appsutil/PREPROD_hrdev.xmlEnter the APPS user password:The log file for this session is located at: /u02/oracle/proddb/10.2.0/appsutil/log/PREPROD_hrdev/04210334/adconfig.log

AutoConfig is configuring the Database environment...

AutoConfig will consider the custom templates if present. Using ORACLE_HOME location : /u02/oracle/proddb/10.2.0 Classpath : :/u02/oracle/proddb/10.2.0/jdbc/lib/ojdbc14.jar:/u02/oracle/proddb/10.2.0/appsutil/java/xmlparserv2.jar:/u02/oracle/proddb/10.2.0/appsutil/java:/u02/oracle/proddb/10.2.0/jlib/netcfg.jar:/u02/oracle/proddb/10.2.0/jlib/ldapjclnt10.jar

Using Context file : /u02/oracle/proddb/10.2.0/appsutil/PREPROD_hrdev.xml

Context Value Management will now update the Context file

Updating Context file...COMPLETED

Attempting upload of Context file and templates to database...COMPLETEDUpdating rdbms version in Context file to db102Updating rdbms type in Context file to 64 bitsConfiguring templates from ORACLE_HOME ...

AutoConfig completed successfully.

Time Taken = (10 minutes)

18/04/2023 Page 107 of 157

Page 108: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Run AutoConfig on the AppsTier

This is step is not mention in our document, we are just running to make sure.

$ su – appldev$ cd $INST_TOP/admin/scripts$ adautocfg.sh

Autoconfig is completed successfully

Time Taken = (15 minutes)

18/04/2023 Page 108 of 157

Page 109: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Delete Obsolete File System

Delete Obsolete file# cd /u01# lsapp oraInventory oraclelost+found oraInventory_bkp# cd oracle# lsold_prodappl old_prodcomn old_prodora patches10.1.0 10.2.0 old_9.2.0# pwd/u02/oracle/proddb

Time Taken = ( 5 minutes )

18/04/2023 Page 109 of 157

Page 110: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Start Services

$ cd $INST_TOP/admin/scripts$adstpal.sh apps/clone

$ adstaral.sh All status should be 0Ps –ef | grep FNDLIBRPs –ef | grep FNDAdapcctl.sh status ===========

Problem Description :

At this stage we try to login the EBS but Login Page is not coming up giving HTTP 500We stopped all the services and rebooted the server

Workaround :

At this stage we did not find any workaround

18/04/2023 Page 110 of 157

Page 111: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Install Saudi HRMS Globalization

$ su – appldevjava oracle.apps.per.DataInstall apps clone thin hrdev:1521:PREPROD

Choose option 1 and select Saudi Arabia

42 Saudi Arabia Human Resources Installed43 Saudi Arabia Payroll Installed

After Select, Exit with save “Y”

The following actions will be performed:

Localisation Product(s) Leg. Data? Action-------------------- ------------------------ ---------- -------------Saudi Arabia Human Resources Installed InstallSaudi Arabia Payroll Installed Install

Localisation College Data? Action-------------- ------------- -------------United KingdomUnited States

Option Data? Action------------------------------ ------------- -------------JIT/GeocodeOracle Time and Labor (OTL)

Once you selected apply hrglobal patch

Apply $PER_TOP/patch/115/driver/hrglobal.drv$ cd $PER_TOP/patch/115/driver$ adpatch ( Patch “hrglobal.drv )

TimeTaken = ( 30 minutes )

18/04/2023 Page 111 of 157

Page 112: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Backup Database & R12 File System

Backup on Which Stage :

We requested backup on 25th April 2010We were trying to solve login problem, we tried whole day and then finally we requested for the backup , so at this stage our Application is facing – Unable to Login problem – HTTP 500

Must shutdown normal before backup

SQL> shutdown immediate;Database closed.Database dismounted.ORACLE instance shut down.

SQL> startup.

SQL> shutdown normal;Database closed.Database dismounted.ORACLE instance shut down.

Server Name : HRDEV File System   :   /u02/oracle/proddb/10.2.0 /u03/oracle/proddata /u04/oracle/proddata /u06/oracle

Time Taken = ( 5 hours )

18/04/2023 Page 112 of 157

Page 113: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Unable To Login – HTTP 500

Troubleshooting & Resolving HTTP 500 Issue:

http://hrdev.albilad.com:8000/

Browser giving 500 HTTP Error

We tried to get below link using Professional Link :http://hrdev.albilad.com:8000/forms/frmservlet

It gave error APP-FND-01516 User Name : APPLSYSPUB(Incorrect password)

Tried Conn applsyspub/pub Invalid password

Conn applsyspub/cloneConnected

In FND_TOP/secure/GWYUID=APPLSYSPUB/PUBSo we tried to use fncpass but it didn’t workedFNDCPASS 0 y apps/<pwd> system/manager USER applsyspub pub // didn’t workedFinally I changed to

Alter user applsyspub identified by pub;Then Try to login againhttp://hrdev.albilad.com:8000/forms/frmservletThis time we got another errorAPP-FND-01542

$cd /u06/oracle/inst/apps/PREPROD_hrdev/appl/adminvi PREPROD_hrdev.xml

Before Change :<appserverid_authentication oa_var="s_appserverid_authentication">SECURE</appserverid_authentication> <dbc_params>

18/04/2023 Page 113 of 157

Page 114: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Change to :

<appserverid_authentication oa_var="s_appserverid_authentication">OFF</appserverid_authentication> <dbc_params>

Stop the application tier services and run autoconfig on apps tier

It Solved out Login Page HTTP 500 Problem, I can login.now

Time Taken = ( 15 minutes )

Concurrent FNDLIBR issue :

$ pf –ef | grep FNDLIBR only one FNDLIBR process, suppose to be more

To Fix Concurrent ManagerGoto AdminsiterClick <<Fixed >> buttonAnd check ps –ef | grep FNDLIBR // you will see more than one FNDLIBR

Increased Standard Manager Workshifts

Once the upgrade finished and Concurrent Manager is up it processes lot of concurrent requests implicitly to update R12 objects, to speed up the concurrent requests we increased Standard Manager WorkShifts from 3 to 9.

18/04/2023 Page 114 of 157

Page 115: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Time Taken = ( 5 minutes )

18/04/2023 Page 115 of 157

Page 116: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Gather Statistics Apps & Sys

1. Reapply Customization >>> customer responsibility

2. Integrate custom objects and schemas (conditional) >> customer Responsibility

3. Re-enable custom triggers, constraints, and indexes (conditional) >> Customer responsibility

4. Drop obsolete columns (recommended)

Concurrent manager implicitly submitted concurrent request to all drop obsolete programs automatically. So no manual work needed.

5. Gather Statistics for SYS schema

It gave error while taking Gather Statistics; just remove print option from the programAgain we run after removing print option – it’s Okay

18/04/2023 Page 116 of 157

Page 117: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Now take one more sys statistics againShutdown all application tier$ sqlplus "/ as sysdba"SQL> shutdown normal;SQL> startup restrict;SQL> @adstats.sql SQL> shutdown normal;SQL> startup; SQL> exit;

Start the application and test

Time Taken = ( 15 minutes )

18/04/2023 Page 117 of 157

Page 118: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Problems & Solutions – 01

Concurrent Request – REP-3000 Error

Problem Description:All Concurrent Request Submit Request like “Active User” and others are reporting REP-3000

Solution :

Step 1:

XDiplay Server : 10.16.23.128Port : 6000

Request Network People to open the port 6000 for Application Server “hrdev”

Mention this IP in Appliction CONTEXT FILE – s_display variable as :

vi /u06/oracle/inst/apps/PREPROD_hrdev/appl/admin/PREPROD_hrdev.xml<oa_environment type="generic_service"> <DISPLAY oa_var="s_display" osd="unix">hrdev:0.0</DISPLAY> <java_awt_headless oa_var="s_java_awt_headless"> true </java_awt_headless> </oa_environment>

Change To :

<oa_environment type="generic_service"> <DISPLAY oa_var="s_display" osd="unix">10.16.23.128:0.0</DISPLAY> <java_awt_headless oa_var="s_java_awt_headless"> true </java_awt_headless> </oa_environment>

<oa_environment type="generic_service"> <DISPLAY oa_var="s_display" osd="unix">10.16.23.128:0.0</DISPLAY> <java_awt_headless oa_var="s_java_awt_headless"> true </java_awt_headless> </oa_environment>

And run autoconfig

18/04/2023 Page 118 of 157

Page 119: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Step 2:

REP-3000 When Character Set is AL32UTF8 [ID 729585.1}

Solution

To implement the solution, please execute the following steps :1. Modify $APPL_TOP/${CONTEXT_NAME}.env

    Before Change

    # Set XENVIRONMENT variable in a UTF8 env

    if test "UTF8" = "AL32UTF8"; then        XENVIRONMENT="/r12/crp1/apps/tech_st/10.1.2/guicommon/tk/admin/Tk2Motif_UTF8.rgb"        export XENVIRONMENT    fi

    After Change

    # Set XENVIRONMENT variable in a UTF8 env

    if test "AL32UTF8" = "AL32UTF8"; then        XENVIRONMENT="/r12/crp1/apps/tech_st/10.1.2/guicommon/tk/admin/Tk2Motif_AL32UTF8.rgb"        export XENVIRONMENT    fi

2. Add font Mapping entry in Tk2Motif.rgb file.

cd $ORACLE_HOME/guicommon/tk/admincp Tk2Motif.rgb Tk2Motif_AL32UTF8.rgb

Open both the above files(Tk2Motif.rgb Tk2Motif_AL32UTF8.rgb) and look for the line

!Tk2Motif*fontMapCs: iso8859-2=EE8ISO8859P2

Add a line below to this with AL32UTF8 entry, like below

18/04/2023 Page 119 of 157

Page 120: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

!Tk2Motif*fontMapCs: iso8859-2=EE8ISO8859P2Tk2Motif*fontMapCs: iso8859-1=AL32UTF8

save file Tk2Motif_AL32UTF8.rgb.

3. Restart the application services

<< This worked >>

==================

After working 3 days we rebooted the server again we got same problem rep-3000

Vi $APPL_TOP/PREPROD_hrdev.env

Before Change :

# Set XENVIRONMENT variable in a UTF8 and AL32UTF8 env

if test "UTF8" = "AR8MSWIN1256"; then XENVIRONMENT="/u06/oracle/apps/tech_st/10.1.2/guicommon/tk/admin/Tk2Motif_UTF8.rgb" export XENVIRONMENTfi

if test "AL32UTF8" = "AR8MSWIN1256"; then XENVIRONMENT="/u06/oracle/inst/apps/PREPROD_hrdev/ora/10.1.2/reports/Tk2Motif_AL32UTF8.rgb" export XENVIRONMENTfiAfter Change:# Set XENVIRONMENT variable in a UTF8 and AL32UTF8 env

if test "AL32UTF8" = "AL32UTF8"; then XENVIRONMENT="/u06/oracle/apps/tech_st/10.1.2/guicommon/tk/admin/Tk2Motif_AL32UTF8.rgb" export XENVIRONMENTfi

if test "AL32UTF8" = "AR8MSWIN1256"; then XENVIRONMENT="/u06/oracle/inst/apps/PREPROD_hrdev/ora/10.1.2/reports/Tk2Motif_AL32UTF8.rgb"

18/04/2023 Page 120 of 157

Page 121: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

export XENVIRONMENTfi// Tk2Motif_AL32UTF8.rgbcd /u06/oracle/apps/tech_st/10.1.2/guicommon/tk/adminvi Tk2Motif_AL32UTF8.rgb!Tk2Motif*fontMapCs: iso8859-2=EE8ISO8859P2!Tk2Motif*fontMapCs: iso8859-1=AL32UTF8Tk2Motif*fontMapCs: iso8859-1=AR8MSWIN1256

Su – appldev$ echo $XENVIRONMENT/u06/oracle/apps/tech_st/10.1.2/guicommon/tk/admin/Tk2Motif_AL32UTF8.rgb

Finally this changed worked Tk2Motif*fontMapCs: iso8859-1=AR8MSWIN1256

Time Taken = ( 30 minutes )

18/04/2023 Page 121 of 157

Page 122: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Cannot able to upload pictures:

Problem Description:

Navigation :Saudi HRMS Manager > Enter and Maintain

Click <<Find>>

18/04/2023 Page 122 of 157

Page 123: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Click <<Picture>> and try to upload any image

Exception Details. oracle.apps.fnd.framework.OAException: oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement "INSERT INTO PER_IMAGES(IMAGE_ID,PARENT_ID,TABLE_NAME,IMAGE) VALUES (?,?,?,?)".

at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)at oracle.apps.fnd.framework.server.OADBTransactionImpl.commit(OADBTransactionImpl.java:711)at oracle.apps.per.perimage.webui.PerImageCO.processFormRequest(PerImageCO.java:242)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:815)at

oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1189)at

oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1027)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:993)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:848)at

oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1027)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:993)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:848)at

oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2863)at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1840)at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538)at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)at _OA._jspService(_OA.java:212)

18/04/2023 Page 123 of 157

Page 124: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)at java.lang.Thread.run(Thread.java:735)

## Detail 0 ##java.sql.SQLException: ORA-01502: index 'HR.PER_IMAGES_PK' or partition of such index is in unusable state

at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:953)at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1225)at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3468)at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1350)at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:427)at oracle.jbo.server.EntityImpl.doDMLWithLOBs(EntityImpl.java:5811)at oracle.apps.fnd.framework.server.OAEntityImpl.doDMLWithLOBs(OAEntityImpl.java:1792)at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:5744)at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:4539)at oracle.apps.fnd.framework.server.OAEntityImpl.postChanges(OAEntityImpl.java:1759)at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:2996)at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2807)at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1971)at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2173)at oracle.apps.fnd.framework.server.OADBTransactionImpl.commit(OADBTransactionImpl.java:690)at oracle.apps.per.perimage.webui.PerImageCO.processFormRequest(PerImageCO.java:242)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:815)at

oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1189)at

oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1027)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:993)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:848)at

oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1027)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:993)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:848)at

oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2863)at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1840)at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538)at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)at _OA._jspService(_OA.java:212)at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)

18/04/2023 Page 124 of 157

Page 125: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)at java.lang.Thread.run(Thread.java:735)

java.sql.SQLException: ORA-01502: index 'HR.PER_IMAGES_PK' or partition of such index is in unusable state

at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:953)at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1225)at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3468)at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1350)at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:427)at oracle.jbo.server.EntityImpl.doDMLWithLOBs(EntityImpl.java:5811)at oracle.apps.fnd.framework.server.OAEntityImpl.doDMLWithLOBs(OAEntityImpl.java:1792)at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:5744)at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:4539)at oracle.apps.fnd.framework.server.OAEntityImpl.postChanges(OAEntityImpl.java:1759)at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:2996)at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2807)at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1971)at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2173)at oracle.apps.fnd.framework.server.OADBTransactionImpl.commit(OADBTransactionImpl.java:690)at oracle.apps.per.perimage.webui.PerImageCO.processFormRequest(PerImageCO.java:242)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:815)at

oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1189)at

oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1027)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:993)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:848)at

oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1027)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:993)at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:848)at

oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2863)at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1840)at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538)at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)at _OA._jspService(_OA.java:212)at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)

18/04/2023 Page 125 of 157

Page 126: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)at java.lang.Thread.run(Thread.java:735)

Solution : java.sql.SQLException: ORA-01502: index 'HR.PER_IMAGES_PK' or partition of such index is in unusable state

The error basically reporting that some indexes are in “unusable” state

SQL> alter index hr.per_images_pk rebuild online ;

Index altered.

SQL> select owner,index_name,status from dba_indexeswhere status = 'UNUSABLE';  2OWNER                          INDEX_NAME                     STATUS------------------------------ ------------------------------ --------HR                             PER_IMAGES_UK2                 UNUSABLE

SQL> alter index hr.PER_IMAGES_UK2 rebuild online ;

Index altered.

SQL>SQL>SQL> select owner,index_name,status from dba_indexeswhere status = 'UNUSABLE';  2no rows selected

Time Taken = ( 10 minutes )

18/04/2023 Page 126 of 157

Page 127: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Work Structure – Position Screen FRM-40735 and ORA-01840

Problem Description:Navigation: Saudi HRMS Manager > Work Structures > Position > Description

Click “Description”Click <<Find>> button

Click “Hiring Information”

18/04/2023 Page 127 of 157

Page 128: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

In “FTE” field changed to any value for example 2 and try to save

Click “Update” button

You should not get error :FRM-40735: ON UPDATE trigger raised unhandled exception ORA-01840

Solution :Oracle Support is going to provide us with one-off patch – we are waiting to get this one.

Finally Oracle Support has given one-off Patch “9691080”p9691080_R12[1].PER.B_R12_GENERIC.zip

Steps to Apply Patch :

# su - appldev/u02/patches$ echo $PER_TOP/u06/oracle/apps/apps_st/appl/per/12.0.0

$ cd $INST_TOP/admin/scripts$ ./adstpall.sh apps/clone

$ adadmin – Enable Maintenance Mode$ cd /u02/patches/9691080$ adpatch

18/04/2023 Page 128 of 157

Page 129: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

The default directory is [/u02/patches/9691080] :Please enter the name of your AutoPatch driver file : u9691080.drv

Done purging timing information for prior sessions.

AutoPatch is complete.

AutoPatch may have written informational messages to the file/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/adpatch_9691080.lgi

Errors and warnings are listed in the log file/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/adpatch_9691080.log

and in other log files in the same directory.

$ adadmin – Disable Maintenance Mode$ ./adstrtal.sh apps/clone

18/04/2023 Page 129 of 157

Page 130: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Now I can update – Solved this problem after applying one-off patch 9691080.

18/04/2023 Page 130 of 157

Page 131: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Mass Information Exchange MIX

Problem Description :

Navigation: Saudi HRMS Manager > Mass Information Exchange MIX > Batch Element EntryQuery on %1933 and press Element LineSelect “Salary Bonus Element and try to enter in assignment number 1933 – it gives errors

Solution :

Apply Patch 8666759Apply Patch 8666759 (NLS)

Time Taken = ( 30 minutes )

Cannot View Old Custom Notification

Problem Description :

Login as 002739

Click the first link Overtime Request for khaled Abdulalim Abdulrhman Ahmad requires approval

18/04/2023 Page 131 of 157

Page 132: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Click “View Action”

Solution :

Oracle Support not assisting this issue because they say it is customized – need to sort out this problem.

Workaround :BAB team has found some customized workaround.

18/04/2023 Page 132 of 157

Page 133: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

View PAY_PRE_PAYMENTS_V hangs while SELECT

Problem Description:

When we try to use customize sql query which is using PAY_PRE_PAYMENTS_V , the query is hanging

Solution :I run the query supplied by client, it is working taking average 3.18 minutes

First this query was hanged later we applied “R12.HR_PF.B.DELTA.2” Patch 8337373And I tested after that this query worked fine.

Comments:It means we need to apply patch R12.HR_PF.B.DELTA.2

18/04/2023 Page 133 of 157

Page 134: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Arabic Reports Orientation Displaying Left-To-Right

Problem Description:After the upgrade all Arabic Reports orientation are displaying from Left-To-Right

Solution:

Follow below document:Arabic Is Printing in Reversed Order [ID 552977.1]

Time Taken = ( 1 hour )

18/04/2023 Page 134 of 157

Page 135: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Backup Database & R12 File System

Must shutdown normal before backup

SQL> shutdown immediate;Database closed.Database dismounted.ORACLE instance shut down.

SQL> startup.

SQL> shutdown normal;Database closed.Database dismounted.ORACLE instance shut down.

Backup File System :

/u02/oracle/proddb/10.2.0/u03/oracle/proddata/u04/oracle/proddata/u06/oracle

Time Taken = ( 5 hours )

18/04/2023 Page 135 of 157

Page 136: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Patch R12.HR_PF.B.DELTA.2

PATCH 8337373 (Main Patch) – Doc ID 949437.1

ORACLE HUMAN RESOURCE MANAGEMENT SYSTEM RELEASE UPDATE PACK 2 FOR 12.1(R12.HR_PF.B.DELTA.2)

Prerequisites Patches :

1) Apply Patch 8502056 (R12.AD.B.delta.2)

Prerequisites:Check Readme$cd admin$cp adgrants.sql to <rdbms Oh>/appsutil/admin$su – oradevSQL>@rdbms/appsutil/admin/adgrants.sql apps cloneMaintenance Mode - Enable$ cd 8502056$ adpatch

2) Apply Patch 9015132 – Enable Invokers Processing

3) Patch 7651091 (R12.ATG_PF.B.delta.2 – Document ID : 845809.1 )$ adpatch options=nocompiledb

Time Taken = (3 hours)

$ adadmin3. Compile/Reload Applications Database Entities menu.1.Compile Apps Schema

Time Taken = (3 hours)

4) Patch 7651091 for NLS – AR$ cd /u02/patches/7651091_AR$ adpatch

Maintenance Mode – Disable

Time Taken = (10 minutes )

18/04/2023 Page 136 of 157

Page 137: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Post Installation Steps:

. ./<APPL_TOP>/APPS<CONTEXT_NAME>.env$ cd $INST_TOP/admin/out$ pwd/u06/oracle/inst/apps/PREPROD_hrdev/admin/out$ perl $AD_TOP/bin/admkappsutil.pl

Starting the generation of appsutil.zipLog file located at /u06/oracle/inst/apps/PREPROD_hrdev/admin/log/MakeAppsUtil_05091531.logoutput located at /u06/oracle/inst/apps/PREPROD_hrdev/admin/out/appsutil.zip

MakeAppsUtil completed successfully.

Database tier:cd <RDBMS ORACLE_HOME>. ./<RDBMS ORACLE_HOME>/<CONTEXT_NAME>.env

o Copy or FTP the appsutil.zip file to the <RDBMS ORACLE_HOME>. o Uncompress appsutil.zip under the <RDBMS ORACLE_HOME

. $ su – oradev$ cd $ORACLE_HOME$ cp –r appsutil /home/oradev/vil

# cd /u06/oracle/inst/apps/PREPROD_hrdev/admin/out# cp appsutil.zip /u02/oracle/proddb/10.2.0# chown oradev:dba appsutil.zip# chmod 775 appsutil.zip

cd <ORACLE_HOME>unzip -o appsutil.zip

Run AutoConfig on the <RDBMS ORACLE_HOME>.$ cd /u02/oracle/proddb/10.2.0/appsutil/scripts/PREPROD_hrdev$ ./adautocfg.sh

Enter the APPS user password:The log file for this session is located at: /u02/oracle/proddb/10.2.0/appsutil/log/PREPROD_hrdev/05091549/adconfig.log

AutoConfig is configuring the Database environment...

AutoConfig will consider the custom templates if present. Using ORACLE_HOME location : /u02/oracle/proddb/10.2.0

18/04/2023 Page 137 of 157

Page 138: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Classpath : :/u02/oracle/proddb/10.2.0/jdbc/lib/ojdbc14.jar:/u02/oracle/proddb/10.2.0/appsutil/java/xmlparserv2.jar:/u02/oracle/proddb/10.2.0/appsutil/java:/u02/oracle/proddb/10.2.0/jlib/netcfg.jar:/u02/oracle/proddb/10.2.0/jlib/ldapjclnt10.jar

Using Context file : /u02/oracle/proddb/10.2.0/appsutil/PREPROD_hrdev.xml

Context Value Management will now update the Context file

Updating Context file...COMPLETED

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

Updating rdbms version in Context file to db102

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

AutoConfig completed successfully.

// I just shutdown the database and startup – optional

Run AutoConfig on all nodes with an Appl_Top. This is frequently referred to as the applications tier or non-database nodes.

UNIX$ cd $APPL_TOP$ cp PREPROD_hrdev.env PREPROD_hrdev.env_08May2010$ cd $INST_TOP/admin/scripts$ ./adautocfg.sh

Enter the APPS user password:

The log file for this session is located at: /u06/oracle/inst/apps/PREPROD_hrdev/admin/log/05091555/adconfig.log

AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present. Using CONFIG_HOME location : /u06/oracle/inst/apps/PREPROD_hrdev Classpath : /u06/oracle/apps/apps_st/comn/java/lib/appsborg2.zip:/u06/oracle/apps/apps_st/comn/java/classes

Using Context file : /u06/oracle/inst/apps/PREPROD_hrdev/appl/admin/PREPROD_hrdev.xml

18/04/2023 Page 138 of 157

Page 139: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Context Value Management will now update the Context file

Configuring IGC_TOP.......COMPLETED

AutoConfig completed successfully.

### After running autoconfig make sure env file $ vi /u06/oracle/apps/apps_st/appl/PREPROD_hrdev.env

# Set XENVIRONMENT variable in a UTF8 and AL32UTF8 env

if test "AL32UTF8" = "AL32UTF8"; then XENVIRONMENT="/u06/oracle/apps/tech_st/10.1.2/guicommon/tk/admin/Tk2Motif_AL32UTF8.rgb"

export XENVIRONMENTfi

Time Taken ( 30 minutes )

<< restart and verify the application >>

5) Patch 8337373 ( Finally Main Patch)

Enable Maintenance Mode Stop Application Tier services

$ cd /u02/patches/8337373$ adpatch

Enter the directory where your Oracle Applications patch has been unloaded

The default directory is [/u02/patches/8337373] :

Please enter the name of your AutoPatch driver file : u8337373.drv

sqlplus -s APPS/***** @/u06/oracle/apps/apps_st/appl/ad/12.0.0/sql/adtpurge.sql 10 1000

Done purging timing information for prior sessions.

AutoPatch is complete.

AutoPatch may have written informational messages to the file/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/adpatch_8337373.lgi

// This patch made 24,000 invalid objects and compiled all the objects

18/04/2023 Page 139 of 157

Page 140: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

// Time Taken = ( 3 hours )

APPLY PATCH 8337373 NLS Arabic Patch$ cd /u02/patches/8337373_AR$ adpatch

The default directory is [/u02/patches/8337373_AR] :

Please enter the name of your AutoPatch driver file : u8337373.drv

sqlplus -s APPS/***** @/u06/oracle/apps/apps_st/appl/ad/12.0.0/sql/adtpurge.sql 10 1000

Done purging timing information for prior sessions.

AutoPatch is complete.

AutoPatch may have written informational messages to the file/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/adpatch_8337373_AR.lgi

Errors and warnings are listed in the log file/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/adpatch_8337373_AR.log

Time Taken = ( 20 minutes )

Post Installation Tasks: for (R12.HR_PF.B.DELTA.2)

NOTE: This is applicable for HR Legislative customers only.

$ su – appldev$ java oracle.apps.per.DataInstall apps clone thin hrdev:1521:PREPROD

Choose option and select Saudi Arabia

42 Saudi Arabia Human Resources Installed43 Saudi Arabia Payroll Installed

Once you select apply hrglobal patchThe following actions will be performed:

Localisation Product(s) Leg. Data? Action-------------------- ------------------------ ---------- -------------Saudi Arabia Human Resources Installed InstallSaudi Arabia Payroll Installed Install

18/04/2023 Page 140 of 157

Page 141: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Localisation College Data? Action-------------- ------------- -------------United KingdomUnited States

Option Data? Action------------------------------ ------------- -------------JIT/GeocodeOracle Time and Labor (OTL)

Apply $PER_TOP/patch/115/driver/hrglobal.drv$ cd $PER_TOP/patch/115/driver/hrglobal.drv$ adpatch

Purging timing information for prior sessions.

sqlplus -s APPS/***** @/u06/oracle/apps/apps_st/appl/ad/12.0.0/sql/adtpurge.sql 10 1000

Done purging timing information for prior sessions.

AutoPatch is complete.

AutoPatch may have written informational messages to the file/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/adpatch_hrglobal.lgi

Errors and warnings are listed in the log file/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/adpatch_hrglobal.log

and in other log files in the same directory.

Disable Maintenance Mode

Time Taken = ( 30 minutes )

18/04/2023 Page 141 of 157

Page 142: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Total Upgrade HoursS.No Steps Time Taken on

TEST - hrdev (hh:mm:si)

Time Taken on UAT - hrdev

(hh:mm:si)

1. Multiple Organization 00:15:00

2. Apply Patch AD.I.7 00:30:00

3. Apply Patch AD.I.7 – Post Patch 00:05:00

4. Apply Patch AD.I.7 – NLS (AR) 00:15:00

5. Apply TUMS Patch 00:30:00

6. AD Preparation Scripts – OATM 02:00:00

7. Install Oracle Software 01:00:00

8. Install Oracle Companion Software 00:40:00

9. Install Patch Set 3 00:30:00

10. Create nls/data/9idata directory 00:15:00

11. Apply additional patches 10.2.0.4 – RDBMS Patches

01:00:00

12. Upgrade Database 10g R2 12:00:00

13. Additional Patches after the Database Upgrade 01:10:00

14. Install Oracle Data Mining and OLAP 00:30:00

15. Fix Korean Lexers 00:30:00

16. Auto Extend Tablespaces/datafiles 00:30:00

17. Run Rapid Install to Create R12 File System 02:00:00

18. CTXSYS 00:20:00

19. Drop MRC 00:05:00

20. Backup Database & R12 File System 05:00:00

21. Gather Statistics for SYS Schema 00:20:00

22. Update .profile 00:10:00

23. Enable Maintenace Mode 00:05:00

24. Apply AD 12.1.1 upgrade driver – Part 1 05:00:00

25. Apply AD 12.1.1 upgrade driver – Part 2 24:00:00

18/04/2023 Page 142 of 157

Page 143: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

26. Apply AD 12.1.1 upgrade driver – NLS Patch for Arabic

02:30:00

27. Disable Maintenance Mode 00:05:00

28. Configure and Start Services 00:10:00

29. Update the RDBMS Oracle Home file system with autoconfig files

00:15:00

30. Install JRE on the database tier 00:15:00

31. Create CONTEXT_NAME directory 00:05:00

32. Set and Export Environment 00:20:00

33. Generate a new Database context file 00:30:00

34. Run AutoConfig on the database tier 00:10:00

35. Run Autoconfig on the Apps Tier 00:15:00

36. Delete Obsolete File System 00:05:00

37. Start Services 00:10:00

38. Install Saudi HRMS Globalization 00:30:00

39. Backup Database & R12 File System 05:00:00

40. Gather Statistics Apps & SYS 00:15:00

41. Concurrent Request – REP-3000 00:30:00

42. Cannot able to upload pictures 00:10:00

43. Work Structures – Position Screen 00:00:00

44. Mass information Exchange – Patch 00:30:00

45. Arabic Reports Orientation – Follow Note 552977.1 01:00:00

46. Backup Database & R12 File System 05:00:00

47. Patch R12.HR_PF.B.DELTA.2 07:30:00

Total Hours >>> 83:55 :00

Note : Backup Database 5 hours * 3 = 15 hours

18/04/2023 Page 143 of 157

Page 144: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

APPENDIX A: AD Preparation Script adcrtbsp.sql

Script : adcrtbsp.sqlModified : In this script we added “autoextend on next 1m” to create tablespaces commands and changed the patch of all datafiles.

REM ===========================================================REM adcrtbsp.sqlREMREM DESCRIPTIONREM Generated from adgncons.sqlREMREM USAGEREMREM This script creates tablespaces required forREM consolidated tablespace model and increases tablespaces whichREM are below a minimum size.REMREM sqlplus <SYSTEM/SYSTEM PASSWORD> @adcrtbsp.sqlREMREM ===========================================================SET VERIFY OFF WHENEVER SQLERROR EXIT FAILURE ROLLBACK

ACCEPT SYSTEM_PWD PROMPT 'Enter password for SYSTEM: ' HIDE

connect system/&&SYSTEM_PWD

REM !mv adcrttbs.log adcrttbs.logO

spool adcrtbsp.log

CREATE TABLESPACE APPS_TS_TX_DATA DATAFILE '/u04/oracle/proddata/transaction_table.dbf' SIZE 1000 M REUSE autoextend on next 1m EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K SEGMENT SPACE MANAGEMENT AUTO ; ALTER TABLESPACE APPS_TS_TX_DATA add DATAFILE '/u04/oracle/proddata/transaction_table_2.dbf' SIZE 1000 M autoextend on next 1m; ALTER TABLESPACE APPS_TS_TX_DATA

18/04/2023 Page 144 of 157

Page 145: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

add DATAFILE '/u04/oracle/proddata/transaction_table_3.dbf' SIZE 1000 M autoextend on next 1m; CREATE TABLESPACE APPS_TS_TX_IDX DATAFILE '/u04/oracle/proddata/transaction_index.dbf' SIZE 1000 M REUSE autoextend on next 1m EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K SEGMENT SPACE MANAGEMENT AUTO ; ALTER TABLESPACE APPS_TS_TX_IDX add DATAFILE '/u04/oracle/proddata/transaction_index_2.dbf' SIZE 1000 M autoextend on next 1m; ALTER TABLESPACE APPS_TS_TX_IDX add DATAFILE '/u04/oracle/proddata/transaction_index_3.dbf' SIZE 1000 M autoextend on next 1m; ALTER TABLESPACE APPS_TS_TX_IDX add DATAFILE '/u04/oracle/proddata/transaction_index_4.dbf' SIZE 1000 M autoextend on next 1m; CREATE TABLESPACE APPS_TS_SEED DATAFILE '/u04/oracle/proddata/reference.dbf' SIZE 1000 M REUSE autoextend on next 1m EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K SEGMENT SPACE MANAGEMENT AUTO ; ALTER TABLESPACE APPS_TS_SEED add DATAFILE '/u04/oracle/proddata/reference_2.dbf' SIZE 400 M autoextend on next 1m; CREATE TABLESPACE APPS_TS_INTERFACE DATAFILE '/u04/oracle/proddata/interface.dbf' SIZE 500 M REUSE autoextend on next 1m EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K SEGMENT SPACE MANAGEMENT AUTO ;

18/04/2023 Page 145 of 157

Page 146: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

CREATE TABLESPACE APPS_TS_SUMMARY DATAFILE '/u04/oracle/proddata/summary.dbf' SIZE 650 M REUSE autoextend on next 1m EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K SEGMENT SPACE MANAGEMENT AUTO ; CREATE TABLESPACE APPS_TS_NOLOGGING DATAFILE '/u04/oracle/proddata/nologging.dbf' SIZE 50 M REUSE autoextend on next 1m EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K SEGMENT SPACE MANAGEMENT AUTO ; CREATE TABLESPACE APPS_TS_ARCHIVE DATAFILE '/u04/oracle/proddata/archive.dbf' SIZE 500 M REUSE autoextend on next 1m EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K SEGMENT SPACE MANAGEMENT AUTO ; CREATE TABLESPACE APPS_TS_QUEUES DATAFILE '/u04/oracle/proddata/aq.dbf' SIZE 70 M REUSE autoextend on next 1m EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K SEGMENT SPACE MANAGEMENT AUTO ; CREATE TABLESPACE APPS_TS_MEDIA DATAFILE '/u04/oracle/proddata/media.dbf' SIZE 10 M REUSE autoextend on next 1m EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K SEGMENT SPACE MANAGEMENT AUTO ; CREATE TABLESPACE APPS_TS_TOOLS DATAFILE '/u04/oracle/proddata/tools.dbf' SIZE 500 M REUSE autoextend on next 1m EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K SEGMENT SPACE MANAGEMENT AUTO ; declare cursor check_ftpi is select 1 from dba_tables where owner ='APPLSYS' and table_name ='FND_TS_PROD_INSTS'; l_dummy number; l_stmt varchar2(1500); begin

18/04/2023 Page 146 of 157

Page 147: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

open check_ftpi; fetch check_ftpi into l_dummy; if check_ftpi%notfound then l_stmt := 'create table APPLSYS.fnd_ts_prod_insts as ' || 'select application_id, oracle_id, tablespace, ' || 'index_tablespace, temporary_tablespace ' || 'from apps.fnd_product_installations'; begin execute immediate l_stmt; exception when others then raise_application_error(-20000, 'Error in creating table fnd_ts_prod_insts'); end; end if; close check_ftpi; end; / DECLARE l_dummy number; begin select 1 into l_dummy from APPLSYS.fnd_ts_prod_insts where rownum < 2; exception when NO_DATA_FOUND then insert into APPLSYS.fnd_ts_prod_insts (APPLICATION_ID, ORACLE_ID, TABLESPACE, INDEX_TABLESPACE, TEMPORARY_TABLESPACE) select APPLICATION_ID, ORACLE_ID, TABLESPACE, INDEX_TABLESPACE, TEMPORARY_TABLESPACE from apps.fnd_product_installations; END; / DECLARE CURSOR usr_csr IS SELECT oracle_id, oracle_username FROM apps.fnd_oracle_userid WHERE read_only_flag in ('E', 'A', 'U') ORDER by oracle_username; CURSOR txn_tsp_csr IS SELECT tablespace FROM apps.fnd_tablespaces WHERE tablespace_type = 'TRANSACTION_TABLES'; CURSOR txn_ind_tsp_csr IS SELECT tablespace

18/04/2023 Page 147 of 157

Page 148: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

FROM apps.fnd_tablespaces WHERE tablespace_type = 'TRANSACTION_INDEXES' ; CURSOR tsp_csr IS SELECT ft.tablespace FROM apps.fnd_tablespaces ft; l_string VARCHAR2(4000); l_txn_tablespace VARCHAR2(30); l_txn_ind_tablespace VARCHAR2(30); l_count_tab_spc_rows number; BEGIN OPEN txn_tsp_csr; FETCH txn_tsp_csr INTO l_txn_tablespace; if txn_tsp_csr%NOTFOUND then raise_application_error(-20001, 'Tablespace of type TRANSACTION_TABLES is not present in FND_TABLESPACES table.'); end if; CLOSE txn_tsp_csr; select count(*) into l_count_tab_spc_rows from dba_tablespaces where TABLESPACE_NAME=l_txn_tablespace; if l_count_tab_spc_rows <= 0 then raise_application_error(-20001, 'Error: Tablespace '||l_txn_tablespace||' does not exist.'); end if; OPEN txn_ind_tsp_csr; FETCH txn_ind_tsp_csr INTO l_txn_ind_tablespace; if txn_ind_tsp_csr%NOTFOUND then raise_application_error(-20001, 'Tablespace of type TRANSACTION_INDEXES is not present in FND_TABLESPACES table.'); end if; CLOSE txn_ind_tsp_csr; select count(*) into l_count_tab_spc_rows from dba_tablespaces where TABLESPACE_NAME=l_txn_ind_tablespace; if l_count_tab_spc_rows <= 0 then raise_application_error(-20001, 'Error: Tablespace ' ||l_txn_ind_tablespace||' does not exist.'); end if; FOR usr_rec IN usr_csr LOOP

18/04/2023 Page 148 of 157

Page 149: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

l_string := 'ALTER USER '||usr_rec.oracle_username||' DEFAULT TABLESPACE '||l_txn_tablespace; EXECUTE IMMEDIATE l_string; END LOOP; UPDATE apps.fnd_product_installations SET tablespace = l_txn_tablespace, index_tablespace = l_txn_ind_tablespace; END; / DECLARE cursor fnd_ins_cur is select distinct fou.oracle_username, ft.tablespace from apps.fnd_oracle_userid fou, apps.fnd_tablespaces ft where read_only_flag in ('E', 'A', 'U') order by fou.oracle_username; l_fnd_tb apps.FND_TABLESPACES.TABLESPACE%type; l_count number; stmt varchar2(4000); begin select count(*) into l_count from apps.fnd_tablespaces; if l_count =0 then raise_application_error(-20001, 'No data in FND_TABLSPACES. Please make sure all priious scripts have been run.'); end if; for fnd_ins_rec in fnd_ins_cur loop stmt := 'ALTER USER '||fnd_ins_rec.oracle_username|| ' QUOTA UNLIMITED ON '||fnd_ins_rec.tablespace; execute immediate stmt; end loop; exception when no_data_found then raise_application_error(-20001, 'No data in FND_TABLSPACES.'); when others then raise_application_error(-20000, sqlerrm || 'Error while '|| 'altering user to grant unlimited quota.'); end;

18/04/2023 Page 149 of 157

Page 150: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

/ spool off

DECLARE upd_fpg varchar2(300); col_not_exist exception; pragma exception_init(col_not_exist, -904); begin UPDATE apps.fnd_product_groups SET is_new_ts_mode = 'Y'; exception when col_not_exist then raise_application_error(-20000, sqlerrm || ' :Your DB is missing is_new_ts_mode column in fnd_product_groups'|| ' table. You must be on AD.I or later version of AD.'); when others then raise_application_error(-20000, sqlerrm || ' :Error updating FPG column'); end; / commit; exit

18/04/2023 Page 150 of 157

Page 151: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

APPENDIX B : Database Patch 6613550

Installing Oracle Database on AIX 6.1

You must install Oracle Database Patch 6613550, Oracle Database 10.2.0.1, and Oracle Database Patch set 10.2.0.3 to proceed with the installation on AIX 6L. The following section lists all the installation steps:

1.    Download patch 6613550:

a.    Log on to OracleMetaLink. You must have a valid OracleMetaLink Support Identifier (CSI) for it. Refer to https://metalink.oracle.com/ for more information.

b.    Enter 6613550 in the Quick Find field, click Go.

c.    Download patch 6613550 into a temporary directory on your computer.

d.    Switch user to root:

e. $ su -f. password:g. #

h.    Unzip the files of this patch into /temp folder:

i. cd /temp

j.     Run the rootpre.sh script as follows:

k. # ./rootpre.sh

2.    Set the LANG parameter to C for the remaining steps, as follows:

o    Bourne shell (sh), or Korn shell (ksh), or Bash shell (bash):

o    $LANG=C

o    C shell (csh):

o    % setenv LANG C

3.    Install Oracle Database 10.2.0.1:

 .     Run Oracle Universal Installer with -ignoreSysPrereqs option:

a. $ ./runInstaller -ignoreSysPrereqs

18/04/2023 Page 151 of 157

Page 152: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

b.    In the Select Installation Type screen, select Enterprise Edition installation type.

c.    In the Product-specific Prerequisites Checks page, check the following errors as user specified to continue with the installation:

  Checking operating system requirements

  Checking recommended operating system patches

d.    In the Select Configuration Option screen, select Install Database Software only option.

4.    To install Patch Set Release 10.2.0.3, run Oracle Universal Installer with -ignoreSysPrereqs option as follows:

5. $ ./runInstaller -ignoreSysPrereqs

You must refer to patch set release note for preinstall, install, postinstall, and other known issues. Refer to metalink note 316900.1 for more information.

 

18/04/2023 Page 152 of 157

Page 153: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

APPENDIX C : 10g Initialization Parameter File//initPREPROD.ora

*.aq_tm_processes=1*.background_dump_dest='/u02/oracle/proddb/10.2.0/admin/PREPROD_hrdev/bdump'*.compatible='10.2.0'*.control_files='/u03/oracle/proddata/cntrl01.dbf','/u04/oracle/proddata/cntrl02.dbf','/u03/oracle/proddata/cntrl03.dbf'*.core_dump_dest='/u02/oracle/proddb/10.2.0/admin/PREPROD_hrdev/cdump'*.cursor_sharing='EXACT'*.db_block_checking='FALSE'*.db_block_checksum='TRUE'*.db_block_size=8192*.db_cache_size=167772160*.db_file_multiblock_read_count=8*.db_files=512*.db_name='PREPROD'*.dml_locks=10000*.java_pool_size=67108864*.job_queue_processes=2*.large_pool_size=8388608*.log_buffer=10485760*.log_checkpoint_interval=100000*.log_checkpoint_timeout=1200*.log_checkpoints_to_alert=TRUE*.max_dump_file_size='20480'*.nls_comp='binary'*.nls_date_format='DD-MON-RR'*.nls_language='american'*.nls_length_semantics='BYTE'*.nls_numeric_characters='.,'*.nls_sort='binary'*.nls_territory='america'*.O7_DICTIONARY_ACCESSIBILITY=TRUE*.olap_page_pool_size=4194304*.open_cursors=600*.optimizer_features_enable='10.2.0.4'*.parallel_max_servers=8*.parallel_min_servers=0*.pga_aggregate_target=1073741824*.processes=200*.query_rewrite_enabled='true'*.session_cached_cursors=200*.session_max_open_files=20*.sessions=400*.shared_pool_reserved_size=30000000*.shared_pool_size=301989888*.streams_pool_size=50331648

18/04/2023 Page 153 of 157

Page 154: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

*.timed_statistics=TRUE*.undo_management='AUTO'*.undo_retention=1800*.undo_tablespace='APPS_UNDOTS1'*.user_dump_dest='/u02/oracle/proddb/10.2.0/admin/PREPROD_hrdev/udump'*.utl_file_dir='/usr/tmp','/usr/tmp','/u02/oracle/proddb/10.2.0/appsutil/outbound/PREPROD_hrdev','/usr/tmp'*.workarea_size_policy='AUTO'

18/04/2023 Page 154 of 157

Page 155: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

APPENDIX D : .profile

Database .profile

$ su – oradev$ vi .profile

PATH=/usr/bin:/etc:/usr/vac/bin:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.export PATH

set -o vi#export ORACLE_HOME=/u02/oracle/proddb/9.2.0#export ORACLE_SID=DEV#. /u02/oracle/proddb/9.2.0/PREPROD_hrdev.env

#SCRIPTS=/u02/oracle/proddb/9.2.0/appsutil/scripts/PREPROD_hrdev#export SCRIPTS#================TSM entry========#export LD_LIBRARY_PATH=$ORACLE_HOME/lib

#export ORACLE_BDUMP=/u02/oracle/proddb/9.2.0/admin/PREPROD_hrdev/bdump. /u02/oracle/proddb/10.2.0/PREPROD_hrdev.env

if [ -s "$MAIL" ] # This is at Shell startup. In normalthen echo "$MAILMSG" # operation, the Shell checksfi # periodically.

export ORACLE_HOME=/u02/oracle/proddb/10.2.0export ORACLE_SID=PREPRODexport PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$PATH:/u02/oracle/proddb/10.2.0/OPatchexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/libexport PERL5LIB=$ORACLE_HOME/perl/lib:$ORACLE_HOME/perl/lib/site_perlexport ORA_NLS10=$ORACLE_HOME/nls/data/9idataexport TNS_ADMIN=$ORACLE_HOME/network/admin/PREPROD_hrdev

18/04/2023 Page 155 of 157

Page 156: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

Application Tier .profile

PATH=/usr/bin:/etc:/usr/vac/bin:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.set -o vi

export PATHset -o vi#. /u01/oracle/prodappl/APPSORA.env#SCRIPTS=/u01/oracle/prodcomn/admin/scripts/PREPROD_hrdev#export SCRIPTS#export APACHE_ERROR_LOG=/u01/oracle/prodora/iAS/Apache/Apache/logs#export ORACLE_BDUMP=/u02/oracle/proddb/9.2.0/admin/DEV_fincl1clone/bdump#export iAS_ORACLE_HOME=/u01/oracle/prodora/iASalias rm='rm -i'. /u06/oracle/apps/apps_st/appl/APPSPREPROD_hrdev.envexport LDR_CTRNL=MAXDATA=0x40000000#export DISPLAY=10.16.23.128:0.0if [ -s "$MAIL" ] # This is at Shell startup. In normalthen echo "$MAILMSG" # operation, the Shell checksfi # periodically.

18/04/2023 Page 156 of 157

Page 157: A BAB Upgrade11i-R12 v1.0

ADVANCED OPERATIONS TECHNOLOGY INC.P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218

APPENDIX E : RW-50004

RW-50004

$ vi /u06/oracle/inst/apps/PREPROD_hrdev/logs/04170202.log

6% completed RC-50004: Fatal: Error occurred in ApplyAppsTechStack:

RC-50013: Fatal: Failed to instantiate driver /u06/oracle/apps/tech_st/10.1.2/appsutil/driver/regclone.drv

Cannot execute registration of Applications Techstack

RW-50010: Error: - script has returned an error: 1RW-50004: Error code received when running external process. Check log file for details.Running APPL_TOP Install Driver for PREPROD instancePlease refer to the remaining logs on applications node at - /u06/oracle/inst/apps/PREPROD_hrdev/logs/04170202.log

18/04/2023 Page 157 of 157