A BAB Upgrade11i-R12 v1.0

September 24, 2017 | Author: Mohammed Shoukat Ali | Category: Oracle Database, Sql, Databases, Data Management Software, Digital Technology
Share Embed Donate


Short Description

A BAB Upgrade11i-R12 v1.0...

Description

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

File: 265913685.doc Revision Number: 1.0

Distribution Control Revision Number

Distribution

1.0

Bank Al Bilad & AOT

Initial version

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 1.0

07/04/2015

Date 15/05/2010

Author Advanced Operations Technology

Revision Description Initial version

Page 2 of

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................................................................................................................7 Apply Patch AD.I.7....................................................................................................................9 Apply 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............................................................................36 Prepare Initialization Parameter File.....................................................................................36 Create 10g Listener.................................................................................................................37 Run 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.....................................................................................................................................63 Run 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 07/04/2015

Page 3 of

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 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.................................................................................118 Cannot able to upload pictures:............................................................................................122 Work Structure – Position Screen FRM-40735 and ORA-01840...........................................127 Mass Information Exchange MIX..........................................................................................129 Cannot View Old Custom Notification..................................................................................129 View PAY_PRE_PAYMENTS_V hangs while SELECT..........................................................131 Arabic 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

07/04/2015

Page 4 of

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.1 2. Database Preparation Guidelines for an Oracle E-Business Suite Release 12.1.1 Upgrade – ID 761570.1 – March 3, 2010 3. 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 Information Description Values Operating System AIX 5.3 11i Version 11.5.10.2 Database Version 9.2.0.8 Current AD.I 11i.AD.I.4 R12 (After the Upgrade) Description Operating System R12 version Database Version

07/04/2015

Values AIX 6100-02-00-0000 12.1.1 10.2.0.4

Comments

Comments

Page 5 of

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.

07/04/2015

Page 6 of

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 Unit Configure Profile - MO:Default Operating Unit (Site Level AOL Profile)

07/04/2015

Page 7 of

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 $ adadmin 4. Maintain Applications Database Entities menu 6. Convert to Multi-Org Once you convert to MultiOrg, you cannot convert back to a non-MultiOrg configuration. 07/04/2015

Page 8 of

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] ? y AD_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/clone SQL> Select multi_org_flag from fnd_product_groups; M -----Y 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 -------------------------------------------------- --------7429271 210260 10-APR-10

CREATION_

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.

07/04/2015

Page 10 of

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/admin 1. $ sqlplus "/ as sysdba" SQL>show user USER is “sys” 2. @adgrants.sql APPS PL/SQL procedure successfully completed. Time Taken = ( 5 minutes )

07/04/2015

Page 11 of

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] ? y Filename [adpatch.log] : adpatch_7429271.log The default directory is [/u02/patches/7429271_AR] Please enter the name of your AutoPatch driver file : u7429271.drv 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/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 )

07/04/2015

Page 12 of

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

Apply TUMS Patch Patch Name Patch Number Patch Document

TUMS Report 7705743

Prerequisites: 1. Ensure that the database parameter UTL_FILE_DIR is set to a writable directory where the TUMS for R12 Upgrade report will be created. 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 / @adtums.sql Eg:$ sqlplus apps/clone @adtums.sql /usr/tmp A report file called tumsr12.html will be created in the directory. This directory path must have been listed in the UTL_FILE_DIR parameter of your database. 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 )

07/04/2015

Page 13 of

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 Patch Number Patch Document

AD Preparation – OATM 7197489

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 / @adgncons.sql apps apps $ cd /u02/patches/7197489 $ sqlplus apps/clone SQL>@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/clone sql>@adcrtbsp.sql 07/04/2015

Page 14 of

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 create PL/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 )

07/04/2015

Page 15 of

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 software cd software mkdir 10g mkdir comp mkdir 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.0 Verify xclock $ xclock Select Installation Method Advanced Oracle Home=/u02/oracle/proddb/10.2.0 Unix dba group : dba Choose Software only (Do Not Choose Create Database ) $ runInstaller & Note : Prerequisite Checks Failed Workaround : 1) vi oraparam.ini Certification AIX=5100,6100 ./runInstaller & ( Same Problem ) 2) ./runInstaller –ignoreSysPrereqs (same problem – so we continued with errors)

07/04/2015

Page 16 of

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 Edition o Choose Enterprise Edition

07/04/2015

Page 17 of

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



Specify Home Details Oracle Home Patch

: OUHome1 : /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 6613550 Refer : APPENDIX B : Database Patch 6613550

07/04/2015

Page 18 of

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



Upgrade an Existing Database o Do you want to perform an upgrade now?



Select Configuration Option o Install database Software only

07/04/2015

Page 19 of

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



Summary o Click “Install” to continue installation.



Install

07/04/2015

Page 20 of

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



Execute Configuration Scripts o Run root.sh as “root” user

# /u02/oracle/proddb/10.2.0/root.sh Running 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 by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed.

07/04/2015

Page 21 of

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 )

07/04/2015

Page 22 of

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

07/04/2015

Page 23 of

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 Install o Oracle Database 10g Products 10.2.0.1.0

07/04/2015

Page 24 of

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



Specify Home Details Name (ORACLE_HOME) : OUHome1 Path : /u02/oracle/proddb/10.2.0



Product-Specific Prerequisite Checks

Ignore warnings and click

07/04/2015

Page 25 of

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



Product-Specific Prerequisite Checks Do you want to proceed?



Summary

07/04/2015

Page 26 of

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 )

07/04/2015

Page 27 of

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 – oradev export ORACLE_HOME=/u02/oracle/proddb/10.2.0 export ORACLE_SID=PREPROD export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin: $PATH:/u02/oracle/proddb/10.2 .0/OPatch export LD_LIBRARY_PATH=$ORACLE_HOME/lib export PERL5LIB=$ORACLE_HOME/perl/lib:$ORACLE_HOME/perl/lib/site_perl export 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)

07/04/2015

Page 28 of

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



runInstaller (OUI)



Welcome Screen

07/04/2015

Page 29 of

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



Specify Home Details Name (ORACLE_HOME) : OUIHome1 Path : /u02/oracle/proddb/10.2.0



Product-Specific Prerequisite Checks

07/04/2015

Page 30 of

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



Oracle Configuration Manager Registration



Summary

07/04/2015

Page 31 of

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.sh Running Oracle10 root.sh script... The following environment variables are set as: ORACLE_OWNER= oradev 07/04/2015

Page 32 of

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 by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. 

End of Installation

Time Taken = ( 30 minutes )

07/04/2015

Page 33 of

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 node su - oradev export ORACLE_HOME=/d01/oracle/singlenode/testdb/10.2.0 export ORACLE_SID=PREPROD 

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



Set ORA_NLS10 export ORA_NLS10=$ORACLE_HOME/nls/data/9idata (Check whether files exist in $ORACLE_HOME/nls/data/9idata)

Time Taken = ( 15 minutes )

07/04/2015

Page 34 of

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_HOME mv OPatch Opatch_old cd /u02/patches/dbpatches/6880880 mv OPatch $ORACLE_HOME or cp –r OPatch $ORACLE_HOME Opatch 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 )

07/04/2015

Page 35 of

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 File Refer : 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/udump u03/oracle/proddata /u04/oracle/proddata /u03/oracle/proddata /usr/tmp /usr/tmp /u02/oracle/proddb/10.2.0/appsutil/outbound/PREPROD_hrdev



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

07/04/2015

Page 36 of

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 HOME Make 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

07/04/2015

Page 37 of

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

07/04/2015

Page 38 of

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



TCP Protocol



TCP/IP Protocol

07/04/2015

Page 39 of

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



More Listeners? –



Listener Configuration Complete

07/04/2015

Page 40 of

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.ora compatible=10.2.0 optimizer_features_enable =10.2.0.4 Verify udump/bdump/cdump etc // check control file path // undo tablespace $ dbua

07/04/2015

Page 41 of

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



Database Upgrade Assistant – Welcome Screen

07/04/2015

Page 42 of

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



DBUA – Database



DBUA – Database

07/04/2015

Page 43 of

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? 

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

07/04/2015

Page 44 of

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

07/04/2015

Page 45 of

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



DBUA – Backup



DBUA – Management Options

07/04/2015

Page 46 of

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)

07/04/2015

Page 47 of

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



Database Upgrade Summary



DBUA – Progress

07/04/2015

Page 48 of

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



DBUA – Progress



Upgrade Results

07/04/2015

Page 49 of

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

07/04/2015

Page 50 of

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

07/04/2015

Page 51 of

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

07/04/2015

Page 52 of

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

07/04/2015

Page 53 of

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



Verify DBA_REGISTRY Sqlplus “/ 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 -----------------------------------control_file_record_keep_time control_files

TYPE ----------integer string

VALUE -----------------------------7 /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# ---------1

NAME BYTES --------------------------------------/u03/oracle/proddata/temp01.dbf 5242880000

Time Taken = ( 12 hours )

07/04/2015

Page 54 of

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/ # > @?/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. # 07/04/2015

Page 55 of

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 apply Once 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 )

07/04/2015

Page 56 of

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 )

07/04/2015

Page 57 of

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)

07/04/2015

Page 58 of

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 )

07/04/2015

Page 59 of

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 )

07/04/2015

Page 60 of

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_mb From dba_data_files Where 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.dbf TEMP 5242880000 select tablespace_name,INITIAL_EXTENT,NEXT_EXTENT,STATUS,CONTENTS from dba_tablespaces where 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_mb From dba_data_files Where tablespace_name = ‘APPS_UNDOTS1’ FILE_NAME -------------------------------------------------------------------------------TABLESPACE_NAME AUT SIZE_MB ------------------------------ --- ---------/u03/oracle/proddata/rbs02.dbf APPS_UNDOTS1 YES 4100 /u03/oracle/proddata/rbs01.dbf APPS_UNDOTS1 YES

07/04/2015

2000

Page 61 of

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 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 )

07/04/2015

Page 62 of

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 -ltr total 24 drwxr-xr-x 3 drwxr-xr-x 11 drwxr-xr-x 53 drwxr-xr-x 7 drwxr-xr-x 18

root root root root root

system system system system system

256 4096 4096 256 4096

Apr 13 05:16 Apr 13 07:49 Apr 14 03:09 Apr 14 03:24 Apr 14 05:20

startCD oraDB oraAppDB oraAS oraApps

# chown –R appldev:dba /stage Time 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] $ id uid=206(appldev) gid=201(dba) groups=1(staff) $ export DISPLAY=:0.0 $ xclock $ cd /stage/StageR12/startCD/Disk1/rapidwiz $ ./RapidWizVersion Oracle Applications Rapid Install Wizard Version 12.1.1.9 (c) Copyright 2000-2006 Oracle Corporation. All rights reserved.

07/04/2015

Page 63 of

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 found Rapid Install Wizard will now launch the Java Interface..... 

Welcome Screen



Select Wizard Operations o Upgrade To Oracle Applications Release 12.1.1

07/04/2015

Page 64 of

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 Action o Create Upgrade File System

07/04/2015

Page 65 of

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

07/04/2015

Page 66 of

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

07/04/2015

Page 67 of

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

07/04/2015

Page 68 of

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



Node Information



Pre Install Checks

07/04/2015

Page 69 of

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



Component Installation Review



Component Installation Review o Do you want to begin the installation now?

07/04/2015

Page 70 of

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



Install in progress



Install in progress RW-50004 - I click the interface continue, this error is for cloning so safely you can ignore and continue. Error Log File : APPENDIX E : RW-50004

07/04/2015

Page 71 of

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

07/04/2015

Page 72 of

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

07/04/2015

Page 73 of

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



Install Oracle Application – Finish o Click

Configuration file written to: /u06/oracle/inst/apps/PREPROD_hrdev/conf_PREPROD.txt Configuration file written to: /u06/oracle/db/tech_st/11.1.0/appsutil/conf_PREPROD.txt Database logfile /u06/oracle/db/tech_st/11.1.0/appsutil/log/PREPROD_hrdev/04170202.log Appltop logfile - /u06/oracle/inst/apps/PREPROD_hrdev/logs/04170202.log Appltop logfile - /u06/oracle/inst/apps/PREPROD_hrdev/logs/04170202.log Time Taken = ( 2 hours )

07/04/2015

Page 74 of

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 – oradev SQL> 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 CTXSYS SQL> conn apps/apps; ERROR: ORA-01017: invalid username/password; logon denied Warning: You are no longer connected to ORACLE. SQL> conn apps/clone Connected. SQL> @/u06/oracle/apps/apps_st/appl/ad/12.0.0/patch/115/sql/adctxprv.sql clone CTXSYS Connecting to SYSTEM Connected. PL/SQL procedure successfully completed. Commit complete. Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Note : adctxprv.sql clone CTXSYS  “clone” is system user password Time Taken = ( 20 minutes )

07/04/2015

Page 75 of

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/A All 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 / @addrpmrc.sql FORCE Example :sqlplus system/clone SQL> show user USER is "SYSTEM" SQL> @/u06/oracle/apps/apps_st/appl/admin/addrpmrc.sql APPLSYS FORCE Output : NAME addrpmrc.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_USERID ORA-06512: at line 11 Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With 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)

07/04/2015

Page 76 of

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 )

07/04/2015

Page 77 of

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 bytes Fixed Size 2085912 bytes Variable Size 427822056 bytes Database Buffers 167772160 bytes Redo Buffers 14688256 bytes Database 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 )

07/04/2015

Page 78 of

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 Tier Database environment profile and application environment profile Refer : APPENDIX D : .profile Time Taken = ( 10 minutes )

07/04/2015

Page 79 of

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 Mode 1. Enabled Maintenance Mode ( Here Maintenance Mode already enabled – we did before ) Time Taken = ( 5 minutes )

07/04/2015

Page 80 of

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 ==========

07/04/2015

Page 81 of

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/af pub.sql &un_apps &pw_apps &un_pub &pw_pub PL/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 wrong REM Connect to applpub/pub REM connect &3/&&4 connect 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.

07/04/2015

Page 82 of

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

//adworker001.log sqlplus -s APPS/***** @/u06/oracle/apps/apps_st/appl/ad/12.0.0/patch/115/sql/ada ppsgs.pls &systempwd 1 APPLSYS APPLSYS APPS TRUE FALSE TRUE Connected. 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','APP S','FALSE'); begin * ERROR at line 1: ORA-20000: ORA-00955: name is already used by an existing object:create_grants_and_synonyms(1,APPLSYS,APPLSYS,APPS): create_base_gs(APPLSYS,APPS): In Synonyms Loop:create_synonym(APPLSYS,CK_LOG,APPS,CK_LOG): do_apps_ddl(APPS,CREATE SYNONYM "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 )

07/04/2015

Page 83 of

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: All TUMS step key: N/A To 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 failer Your previous AutoPatch session did not run to completion. Do you wish to continue with your previous AutoPatch session [Yes] ?

07/04/2015

Page 84 of

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 1GB Create pfile=’$OH/dbs/pfile_17_Apr.ora’ from spfile; Create spfile from pfile=’$OH/dbs/pfile_17_Apr.ora’ ERROR-03 Same 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.

07/04/2015

Page 85 of

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/hr l2limg.sql DECLARE * 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 that script. 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 HRD occurred while executing the SQL statement: //In Alert log file Mon Apr 19 02:27:40 2010

07/04/2015

Page 86 of

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 HRD Mon Apr 19 02:29:34 2010 Solution : Select TABLESPACE_NAME,INITIAL_EXTENT,NEXT_EXTENT,PCT_INCREASE,CONTENTS, EXTENT_MANAGEMENT , Max_extents from dba_tablespaces where tablespace_name = 'HRD'; TABLESPACE_NAME INITIAL_EXTENT NEXT_EXTENT PCT_INCREASE CONTENTS ------------------------------ -------------- ----------- ------------ --------EXTENT_MAN max_extents ---------HRD 40960 40960 0 PERMANENT LOCAL 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,EXT ENT_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 PERMANENT LOCAL

07/04/2015

Page 87 of

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. Control Worker Code Context Filename Status ------ -------- ----------------- -------------------------- -------------1 Run AutoPatch R120 pl icx_transactions.xdf FAILED Checking for differences Column_name and Uniqueness match for both file and DB Indexes The 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" ("TR ANSACTION_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 NOLOGGING ALTER INDEX ICX.ICX_TRANSACTIONS_U1 NOPARALLEL LOGGING Start time for statement above is Mon Apr 19 03:59:09 CDT 2010 Start time for statement above is Mon Apr 19 03:59:10 CDT 2010 ORA-12801 error occured during Index creation. Updating task with status 1 AD Worker error: Solution : skipped with 8 option and 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

07/04/2015

Page 88 of

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

ERROR-06 : Control Worker 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_AC TIVE",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 2010 A Differnt index with same column name exists Updating 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 - appldev adjava -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

07/04/2015

Page 89 of

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. Control Worker Code Context Filename Status ------ -------- ----------------- -------------------------- -------------1 Run AutoPatch R120 pl zpbremcwm.sql FAILED 2 Run AutoPatch R120 pl Wait 3 Run AutoPatch R120 pl Wait //adworker001 sqlplus -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_CUBE ORA-06550: line 235, column 6: PL/SQL: Statement ignored ORA-06550: line 239, column 6: PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_DIMENSION ORA-06550: line 239, column 6: PL/SQL: Statement ignored ORA-06550: line 243, column 6: PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_CATALOG ORA-06550: line 243, column 6: PL/SQL: Statement ignored ORA-06550: line 247, column 4: PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_METADATA_REFRESH ORA-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;

07/04/2015

Page 90 of

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)

07/04/2015

Page 91 of

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 FIX Make sure ftp as bin $ cd /stage unzip 8576725 cd /stage/8576725 adpatch Time Taken = (30 minutes) Apply NLS Patch u6678700.drv for Arabic Oracle E-Business Suite NLS Release 12.1.1 – Arabic – V16151 ftp as bin cd /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

07/04/2015

Page 92 of

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)

07/04/2015

Page 93 of

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

Disable Maintenance Mode $ adadmin 5. Change Maintenance Mode 2. Disabled Maintenance Mode Time Taken = ( 5 minutes )

07/04/2015

Page 94 of

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.log Executing service control script: /u06/oracle/inst/apps/PREPROD_hrdev/admin/scripts/adopmnctl.sh start script 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 start script 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 ...

07/04/2015

Page 95 of

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 start script 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 start script 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 ...

07/04/2015

Page 96 of

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 start script 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 start script 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.

07/04/2015

Page 97 of

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 start script returned: **************************************************** You are running adcmctl.sh version 120.17.12010000.3 Starting concurrent manager for PREPROD ... Starting PREPROD_0421@PREPROD Internal Concurrent Manager Default 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 start script returned: **************************************************** You are running jtffmctl.sh version 120.3 Validating Fulfillment patch level via /u06/oracle/apps/apps_st/comn/java/classes Fulfillment patch level validated. Starting Fulfillment Server for PREPROD on port 9300 ... jtffmctl.sh: exiting with status 0 .end std out. .end err out. ****************************************************

07/04/2015

Page 98 of

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 )

07/04/2015

Page 99 of

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_TOP environment (source the environment file) and run this Perl script to create appsutil.zip in /admin/out. perl /bin/admkappsutil.pl On the database tier (as the ORACLE user), copy or FTP the appsutil.zip file to the and unzip the file. Change directory to RDBMS Oracle Home as follows: cd Unzip the file with the following command: unzip -0 appsutil.zip $ id uid=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.zip Log file located at /u06/oracle/inst/apps/PREPROD_hrdev/admin/log/MakeAppsUtil_04210142.log output located at /u06/oracle/inst/apps/PREPROD_hrdev/admin/out/appsutil.zip MakeAppsUtil 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 07/04/2015

Page 100 of

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.zip creating: 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 $ ls admin bin

html

java

media

perl

sql

template

Time Taken = ( 15 minutes )

07/04/2015

Page 101 of

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 /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 /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 -version java 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_bHdSMR JIT - r9_20071121_1330 GC - 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 -version java 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_bHdSMR JIT - r9_20071121_1330 GC - 20071031_AA) JCL - 20071118_01 Time Taken = ( 15 minutes )

07/04/2015

Page 102 of

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

Create a directory under Create a directory under $ORACLE_HOME/network/admin, where CONTEXT_NAME is _. Copy listener.ora and tnsnames.ora from the $ORACLE_HOME/network/admin directory to the $ORACLE_HOME/network/admin/ 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 -ltr total 16 -rw-r--r--rw-r--r--

1 oradev dba 1 oradev dba

493 Apr 21 03:11 listener.ora 530 Apr 21 03:11 tnsnames.ora

Time Taken = ( 5 minutes )

07/04/2015

Page 103 of

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= LD_LIBRARY_PATH = $ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib ORACLE_SID = PATH = $PATH:$ORACLE_HOME/bin TNS_ADMIN = $ORACLE_HOME/network/admin/ (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_SID PREPROD $ 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 .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 if [ -s "$MAIL" ] # This is at Shell startup. In normal then echo "$MAILMSG" # operation, the Shell checks 07/04/2015

Page 104 of

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.0 export ORACLE_SID=PREPROD export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin: $PATH:/u02/oracle/proddb/10.2 .0/OPatch export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib export PERL5LIB=$ORACLE_HOME/perl/lib:$ORACLE_HOME/perl/lib/site_perl export ORA_NLS10=$ORACLE_HOME/nls/data/9idata export TNS_ADMIN=$ORACLE_HOME/network/admin/PREPROD_hrdev

Refer : APPENDIX D : .profile Time Taken = ( 20 minutes )

07/04/2015

Page 105 of

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 /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 p rograms.. APPS Password: clone The log file for this adbldxml session is located at: /u02/oracle/proddb/10.2.0/appsutil/log/adbldxml_04210331.log AC-00013: Error: File: /u02/oracle/proddb/10.2.0/network/admin/PREPROD_hrdev/lis tener.ora is not a valid file as database SID could not be found for connect str ing: PREPROD Could not Connect to the Database with the above parameters, Please answer the Q uestions 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 )

07/04/2015

Page 106 of

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: >/appsutil/bin/adconfig.sh contextfile= $ 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.xml Enter 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/ojdbc1 4.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/prod db/10.2.0/jlib/ldapjclnt10.jar Using Context file _hrdev.xml

: /u02/oracle/proddb/10.2.0/appsutil/PREPROD

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 bits Configuring templates from ORACLE_HOME ... AutoConfig completed successfully. Time Taken = (10 minutes)

07/04/2015

Page 107 of

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)

07/04/2015

Page 108 of

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 # ls app oraInventory oracle lost+found oraInventory_bkp # cd oracle # ls old_prodappl old_prodcomn old_prodora patches 10.1.0 10.2.0 old_9.2.0 # pwd /u02/oracle/proddb Time Taken = ( 5 minutes )

07/04/2015

Page 109 of

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 0 Ps –ef | grep FNDLIBR Ps –ef | grep FND Adapcctl.sh status =========== Problem Description : At this stage we try to login the EBS but Login Page is not coming up giving HTTP 500 We stopped all the services and rebooted the server Workaround : At this stage we did not find any workaround

07/04/2015

Page 110 of

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

Install Saudi HRMS Globalization $ su – appldev java oracle.apps.per.DataInstall apps clone thin hrdev:1521:PREPROD Choose option 1 and select Saudi Arabia 42 Saudi Arabia 43 Saudi Arabia

Human Resources Installed Payroll Installed

After Select, Exit with save “Y” The following actions will be performed: Localisation -------------------Saudi Arabia Saudi Arabia

Product(s) -----------------------Human Resources Payroll

Leg. Data? ---------Installed Installed

Action ------------Install Install

Localisation College Data? Action -------------- ------------- ------------United Kingdom United States Option Data? Action ------------------------------ ------------- ------------JIT/Geocode Oracle 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 )

07/04/2015

Page 111 of

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 2010 We 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 )

07/04/2015

Page 112 of

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/clone Connected In FND_TOP/secure/ GWYUID=APPLSYSPUB/PUB So we tried to use fncpass but it didn’t worked FNDCPASS 0 y apps/ system/manager USER applsyspub pub // didn’t worked Finally I changed to Alter user applsyspub identified by pub; Then Try to login again http://hrdev.albilad.com:8000/forms/frmservlet This time we got another error APP-FND-01542 $cd /u06/oracle/inst/apps/PREPROD_hrdev/appl/admin vi PREPROD_hrdev.xml Before Change : SECURE

07/04/2015

Page 113 of

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

Change to : OFF 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 Manager Goto Adminsiter Click button And 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.

07/04/2015

Page 114 of

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

Time Taken = ( 5 minutes )

07/04/2015

Page 115 of

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 program Again we run after removing print option – it’s Okay

07/04/2015

Page 116 of

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 again Shutdown 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 )

07/04/2015

Page 117 of

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 REP3000 Solution : Step 1: XDiplay Server Port

: 10.16.23.128 : 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 hrdev:0.0 true Change To : 10.16.23.128:0.0 true

10.16.23.128:0.0 true And run autoconfig

07/04/2015

Page 118 of

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.r gb" 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_AL32U TF8.rgb" export XENVIRONMENT fi

2. Add font Mapping entry in Tk2Motif.rgb file. cd $ORACLE_HOME/guicommon/tk/admin cp 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 07/04/2015

Page 119 of

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

!Tk2Motif*fontMapCs: iso8859-2=EE8ISO8859P2 Tk2Motif*fontMapCs: iso8859-1=AL32UTF8 save file Tk2Motif_AL32UTF8.rgb. 3. Restart the application services

> ================== 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_UTF 8.rgb" export XENVIRONMENT fi if test "AL32UTF8" = "AR8MSWIN1256"; then XENVIRONMENT="/u06/oracle/inst/apps/PREPROD_hrdev/ora/10.1.2/reports/Tk2Motif _AL32UTF8.rgb" export XENVIRONMENT fi After 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_AL3 2UTF8.rgb" export XENVIRONMENT fi if test "AL32UTF8" = "AR8MSWIN1256"; then XENVIRONMENT="/u06/oracle/inst/apps/PREPROD_hrdev/ora/10.1.2/reports/Tk2Motif _AL32UTF8.rgb" 07/04/2015

Page 120 of

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

export XENVIRONMENT fi // Tk2Motif_AL32UTF8.rgb cd /u06/oracle/apps/tech_st/10.1.2/guicommon/tk/admin vi Tk2Motif_AL32UTF8.rgb !Tk2Motif*fontMapCs: iso8859-2=EE8ISO8859P2 !Tk2Motif*fontMapCs: iso8859-1=AL32UTF8 Tk2Motif*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 )

07/04/2015

Page 121 of

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

07/04/2015

Page 122 of

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

Click 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)

07/04/2015

Page 123 of

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)

07/04/2015

Page 124 of

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)

07/04/2015

Page 125 of

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_indexes where status = 'UNUSABLE'; 2 OWNER 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_indexes where status = 'UNUSABLE'; 2 no rows selected Time Taken = ( 10 minutes )

07/04/2015

Page 126 of

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 button

Click “Hiring Information”

07/04/2015

Page 127 of

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

07/04/2015

Page 128 of

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

07/04/2015

Page 129 of

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.

07/04/2015

Page 130 of

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 Entry Query on %1933 and press Element Line Select “Salary Bonus Element and try to enter in assignment number 1933 – it gives errors Solution : Apply Patch 8666759 Apply 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

07/04/2015

Page 131 of

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.

07/04/2015

Page 132 of

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 8337373 And I tested after that this query worked fine. Comments: It means we need to apply patch R12.HR_PF.B.DELTA.2

07/04/2015

Page 133 of

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 )

07/04/2015

Page 134 of

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 )

07/04/2015

Page 135 of

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 /appsutil/admin $su – oradev SQL>@rdbms/appsutil/admin/adgrants.sql apps clone Maintenance 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) $ adadmin 3. 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 )

07/04/2015

Page 136 of

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

Post Installation Steps: . .//APPS.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.zip Log file located at /u06/oracle/inst/apps/PREPROD_hrdev/admin/log/MakeAppsUtil_05091531.log output located at /u06/oracle/inst/apps/PREPROD_hrdev/admin/out/appsutil.zip MakeAppsUtil completed successfully. Database tier: cd . .//.env o Copy or FTP the appsutil.zip file to the . o Uncompress appsutil.zip under the 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

07/04/2015

Page 139 of

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 43 Saudi Arabia

Human Resources Payroll

Installed Installed

Once you select apply hrglobal patch The following actions will be performed: Localisation -------------------Saudi Arabia Saudi Arabia

07/04/2015

Product(s) -----------------------Human Resources Payroll

Leg. Data? ---------Installed Installed

Action ------------Install Install

Page 140 of

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

Localisation College Data? Action -------------- ------------- ------------United Kingdom United States Option Data? Action ------------------------------ ------------- ------------JIT/Geocode Oracle 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 )

07/04/2015

Page 141 of

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

Total Upgrade Hours

07/04/2015

Page 142 of

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

S.No

Steps

Time Taken on TEST - 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

07/04/2015

Time Taken on UAT - hrdev (hh:mm:si)

Page 143 of

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

07/04/2015

Page 144 of

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.sql Modified : In this script we added “autoextend on next 1m” to create tablespaces commands and changed the patch of all datafiles. REM =========================================================== REM adcrtbsp.sql REM REM DESCRIPTION REM Generated from adgncons.sql REM REM USAGE REM REM This script creates tablespaces required for REM consolidated tablespace model and increases tablespaces which REM are below a minimum size. REM REM sqlplus @adcrtbsp.sql REM REM =========================================================== 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 07/04/2015

Page 145 of

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 ;

07/04/2015

Page 146 of

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

07/04/2015

Page 147 of

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

07/04/2015

Page 148 of

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 n ot 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
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF