Sunteți pe pagina 1din 35

Upgrade Oracle Applications from 11.5.10.2 to R12.1.

System Overview
Version 11.5.10.2
Oracle Applications Vision Instance
OS: Redhat Linux 4 update 5
Type: Single Node instance
Applications OS User 11i : applmgr
Applications OS User R12 : applmgrr12
Installed directory: /d04/oracle/VIS
Database OS User : oracle
10g Database Home = /d04/oracle/VIS/visdb/10.2.0
Instance SID: VIS
Host: linux1

Task – To Upgrade Oracle Applications 11.5.10.2 to R12.1.1

Note: Please use vision instance as it is already Multi-Org, Multi-Org is


mandatory in R12.1.1

Note: I have not upgraded the individual products upgrade, the focus
was to upgrade from 11i to R12.1.1

Note: The below upgrade is only for testing purposes, not to be


implemented in production servers, please do refer metalink for more
information

Note: let me know if any steps are not correct or doesn’t makes sense, so
that I can correct the same
Upgrade your database to 10.2.0.3, follow the below link
http://www.appsdba.info/docs/oracle_apps/upgrades/upgrade_db_92
06_10203.pdf
We are following Path B
Apply 11i.AD.I.6 (conditional) - 6502082

adadmin defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults1.txt logfile=adadmin.log


menu_option=ENABLE_MAINT_MODE workers=4

export PATCH_TOP=/home/applmgr/patches

adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults1.txt logfile=u6502082.log


patchtop=$PATCH_TOP/6502082 driver=u6502082.drv workers=8

Apply TUMS utility (recommended) 7705743

export PATCH_TOP=/home/applmgr/patches
adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults1.txt logfile=u7705743.log
patchtop=$PATCH_TOP/7705743 driver=u7705743.drv workers=8
-- post patch steps

cd $AD_TOP/patch/115/sql
sqlplus apps/apps @adtums.sql /usr/tmp

cd /usr/tmp
-rw-r--r-- 1 oracle dba 1751 Jun 28 01:51 tumsr12.html
-- Check the TUMS report for things that can be ignored
Apply Run AD preparation scripts - 7197489

-- apply patch 7197489


-- patch has 3 queries, read the README.txt
cd $HOME/patches/7197489
alter database datafile '/d04/oracle/VIS/visdata/sys7.dbf' resize 3000m;
sqlplus apps/apps @adgncons.sql apps apps
Enter value for 1: apps
Enter value for 2: apps
Connected.

adcrtbsp.sql will be created


-- open and modify the tablespace locations

sqlplus <SYSTEM>/<SYSTEM PASSWORD> @adcrtbsp.sql

su - oracle
mkdir -p $ORACLE_HOME/appsutil/admin

-- cd /home/applmgr/patches/7197489

cp adgrants.sql $ORACLE_HOME/appsutil/admin

sqlplus "/as sysdba" @adgrants applsys


Prepare for upgrade
-- Add a new user for R12.1.1 owner
useradd applmgrr12 -g dba

Run Rapid Install

-- Run rapidwiz to create R12.1.1 code tree

The installation will install R12.1.1 applications components and the database
home

Select upgrade to Oracle Applications R12.1.1


Select upgrade actions screen
select create upgrade file system
enter the parameters required to set up your new environment
run rapid install
Here are the screen shots for the same
n Select the same port used in 11.5.10.2
The installation will install the file system and 11g Oracle Home will be created

Check whether you are able to connect 10g database from R12.1.1 application tier

su – applmgrr12

cd /d04/oracle/R12/apps/apps_st/appl

. ./ APPSVIS_linux1.env

sqlplus apps/apps

[applmgrr12@linux1 appl]$ sqlplus apps/apps

SQL*Plus: Release 10.1.0.5.0 - Production on Mon Jun 28 04:40:54 2010

Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL>

Wonderful ☺
So far so good
Upgrade 10.2.0.3 to 10.2.0.4 – Note - 362203.1
n Shutdown the database and listener
n Upgrade code tree using patch - p6810189_10204_Linux-x86.zip
n Manual upgrade the database

lsnrctl stop VIS

unzip p6810189_10204_Linux-x86.zip
cd Disk1
./runInstaller
n Start the manual upgrade of the database

cd $ORACLE_HOME/bin

sqlplus “/as sysdba”

startup upgrade

cd $ORACLE_HOME/rdbms/admin
cat > r.sql
SPOOL upgrade.log
@catupgrd.sql
SPOOL OFF
SHUTDOWN IMMEDIATE
STARTUP
@utlrp.sql
sqlplus “/as sysdba”

@r.sql

Apply additional 10.2.0.4 RDBMS patches

6880880 or the latest OPatch version

[oracle@linux1 ~]$ cd $ORACLE_HOME

[oracle@linux1 10.2.0]$ mv OPatch OPatch_old

[oracle@linux1 10.2.0]$ cp /d04/oracle/patches/p6880880_102000_LINUX.zip .

[oracle@linux1 10.2.0]$ unzip p6880880_102000_LINUX.zip

[oracle@linux1 10.2.0]$ cd OPatch

[oracle@linux1 OPatch]$ ./opatch version

Invoking OPatch 10.2.0.4.9

OPatch Version: 10.2.0.4.9

OPatch succeeded.

Apply patch 6521934

n Shutdown database

cd /d04/oracle/patches/6521934

[oracle@linux1 6521934]$ /d04/oracle/VIS/visdb/10.2.0/OPatch/opatch apply

Apply patch 6600051

cd 6600051

/d04/oracle/VIS/visdb/10.2.0/OPatch/opatch appl
Apply patch 7441176

cd 7441176

[oracle@linux1 7441176]$ /d04/oracle/VIS/visdb/10.2.0/OPatch/opatch apply

Apply patch 7496636

cd 7496636

[oracle@linux1 7496636]$ /d04/oracle/VIS/visdb/10.2.0/OPatch/opatch apply

Apply patch 7497678

cd 7497678

[oracle@linux1 7496636]$ /d04/oracle/VIS/visdb/10.2.0/OPatch/opatch apply

Apply patch 4247037

cd 4247037

[oracle@linux1 7496636]$ /d04/oracle/VIS/visdb/10.2.0/OPatch/opatch apply

Apply patch 6084656

cd 6084656

[oracle@linux1 7496636]$ /d04/oracle/VIS/visdb/10.2.0/OPatch/opatch apply

Apply patch 6870937

cd 6870937

[oracle@linux1 7496636]$ /d04/oracle/VIS/visdb/10.2.0/OPatch/opatch apply

Cd 6991626

[oracle@linux1 7496636]$ /d04/oracle/VIS/visdb/10.2.0/OPatch/opatch apply

Apply patch 7014646

[oracle@linux1 7496636]$ /d04/oracle/VIS/visdb/10.2.0/OPatch/opatch apply

Apply Oracle Receivables patch - 5753621.


Gather statistics for SYS schema
Copy $APPL_TOP/admin/adstats.sql from the administration server
node to the database server node. Note that adstats.sql has to be
run in restricted mode. Use SQL*Plus to connect to the database as
SYSDBA and use the following commands to restart the database in
restricted mode, run adstats.sql, and restart the database in normal
mode:
$ sqlplus "/ as sysdba"
SQL> shutdown normal;
SQL> startup restrict;
SQL> @adstats.sql
SQL> shutdown normal;
SQL> startup;
SQL> exit;

Update init.ora with new parameters (required) - 396009.1

Change your initialization (initVIS.ora) to add the new values

Parameters Old Value New Value


O7_DICTIONARY_ACCESSIBILITY TRUE FALSE
open_cursors 500 600
session_cached_cursors 200 500
db_block_buffers 20000 Commented
sga_target n/a 2GB
plsql_optimize_level n/a 2
plsql_code_type n/a native
plsql_native_library_dir n/a /usr/tmp
plsql_native_library_subdir_count n/a 149
_kks_use_mutex_pin n/a TRUE

n Start the database


Ensure that Maintenance Mode is enabled

adpatch workers=6 defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt logfile=8576725.log


patchtop=/software/8576725 driver=u8576725.drv

Apply AD 12.1.1 upgrade driver (required) -7461070

adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt logfile=7461070.log


patchtop=$PATCH_TOP/7461070 driver=u7461070.drv workers=8

Run the American English upgrade patch driver (required) 6678700

cd $AU_TOP/patch/115/driver
adpatch options=nocopyportion,nogenerateportion
Monitor the patch session using adctrl
adctrl
Faced Issue

Added datafile –

alter tablespace APPS_TS_TX_DATA add datafile '/d04/oracle/VIS/visdata/tx_data12.dbf' size 200m


autoextend on next 200m maxsize 2000m;

Re-start the patch –

cd $AU_TOP/patch/115/driver
adpatch options=nocopyportion,nogenerateportion

Your previous AutoPatch session did not run to completion.


Do you wish to continue with your previous AutoPatch session [Yes] ?

Already asked for the name of the patch directory.


(The answer was: /d04/oracle/R12/apps/apps_st/appl/au/12.0.0/patch/115/driver)

Already asked for the name of the patch driver file.


(The answer was: /d04/oracle/R12/apps/apps_st/appl/au/12.0.0/patch/115/driver/u6678700.drv)

Reading release list save file...


cd $APPL_TOP/admin/VIS/log

tail -100 adpatch2.log

You should check the file


/d04/oracle/R12/apps/apps_st/appl/admin/VIS/out/adt26936.lst

for details.

Purging timing information for prior sessions.

sqlplus -s APPS/***** @/d04/oracle/R12/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


/d04/oracle/R12/apps/apps_st/appl/admin/VIS/log/adpatch2.lgi

Errors and warnings are listed in the log file


/d04/oracle/R12/apps/apps_st/appl/admin/VIS/log/adpatch2.log

and in other log files in the same directory.

Open the Job Timing Report


vi /d04/oracle/R12/apps/apps_st/appl/admin/VIS/out/adt26936.lst
It took around 40 hours to finish the patch

Disable Maintenance Mode


adadmin defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt logfile=adadmin.log
menu_option=DISABLE_MAINT_MODE workers=4

Configure and start server processes (required) – RunInstaller


This error (Login Page) is common; you can stop and start the services

Connect to the application –


Excellent ☺

Run a concurrent request


(Doc ID
Interoperability Notes EBS R12 with Database 11gR2
1058763.1)

Interoperability Notes E-Business Suite R12 with Oracle Database (Doc ID


11gR1 (11.1.0) 735276.1)
Database Preparation Guidelines for an E-Business Suite Release 12.1.1 (Doc ID
Upgrade 761570.1)

S-ar putea să vă placă și