UPGRADE 10.7 to 11.5.

10 CU II

Prepared By: Nikhil Rangaraju....................................................................................1  Install 11.5.10 CU II Upgrade file system...................................................2  Create an Empty Database...........................................................................2  Run postscripts after creation of empty database........................................2  Create tablespaces along with its sizes........................................................3  Take Cold backup........................................................................................4  Import exported 10.7 dump to existing database.........................................4  Perform pre upgrade steps...........................................................................4  Run “adaimgr”.............................................................................................6

Prepared By: Nikhil Rangaraju

Install 11.5.10 CU II Upgrade file system
 Create database user and application user using the following commands useradd -d /u01/app/applupg -g oaa -m -s /bin/ksh -c applupg useradd -d /u01/app/oraupg -g oaa -m -s /bin/ksh -c oraupg  As a root user go to the dump where 11.5.10.2 exists install upgraded file system using rapidwiz  After installation these are the observations found  Oracle_sid = upg  Oracle user = oraupg  Application user = applupg  Location of APPL_TOP= /u01/app/applupg/upgappl

Create an Empty Database
As oraupg user create an empty database by running manual database creation script. Steps to perform to create an empty database  Sqlplus ‘/as sysdba’  Startup nomount  create database upg logfile group 1 ('/u01/app/oraupg/upgdata/log01.rdo') size 10m, group 2 ('/u01/app/oraupg/upgdata/log02.rdo') size 10m datafile '/u01/app/oraupg/upgdata/system01.dbf' size 100m autoextend on next 512k maxsize 120m default temporary tablespace temp tempfile '/u01/oraupg/upgdata/temp01.dbf' size 10m autoextend on next 5m maxsize 20m undo tablespace APPS_UNDO datafile '/u01/oraupg/upgdata/undo01.dbf' size 10m autoextend on next 5m maxsize 60m character set WE8ISO8859P1 national character set AL16UTF16;  Shut immediate and startup the database. Hence empty database is ready to use.

Run postscripts after creation of empty database.
 Copy the following four scripts from APPL_TOP/admin to oraupg user directory.  Addb920.sql  Adjv920.sql  Admsc920.sql  Adsy920.sql  Make sure that all the above-mentioned scripts should be run under system user.

Create tablespaces along with its sizes
 Copy the script tablespace.sql into oracle user and run the script as a sysdba user. The following are the tablespaces to be created:  AKD  AKX  APD  APX  ARD  ARX  AXD  AXX  BOMD  BOMX  EAOD  EAOX  FNDD  FNDX  GLD  GLD  GLX  ICXD  ICXX  INVD  INVX  MRPD  MRPX  OED  OEX  PANGEA  POD  POX  RBS  RBS_TUNE  RGD  RGX  SHD  SHX  SYSTEM  TEMP  TOOLS  WIPD  USERS  WIPX

Take Cold backup
Perform the following steps to take whole database backup  Sqlplus ‘/as sysdba’  Shut immediate  Cp all datafiles to respective backup loccation  Startup the database.

Import exported 10.7 dump to existing database
Copy the exported 10.7 dump to oraupg location and import into the existing database using the following command “imp system/manager FULL=Y FILE=dmp_nov.dmp log=import10.7.log”

Perform pre upgrade steps
Following are the steps to be done before running AutoUpgrade  SYSTEM tablespace should be 9 GB anf TEMP tablespace should be 2GB and also intial extent of 1MB  For Faster performance in upgradation set the following parameters hash_area_size = 30720 hash_join_enabled = true parallel_max_servers = 8  Validate APPS schema
$ cd $APPL_TOP/admin/<SID>/out $ sqlplus SYSTEM/welcome @$APPL_TOP/admin/preupg/advrf107.sql APPS APPS

 Drop event alert triggers in custom schemas Sqlplus apps/apps @alrdtrig.sql which is located in 
$APPL_TOP/admin/preupg.

Query dba_users and get the list of all schemas and run the script for each schema. If any user has triggers then it generates a script called <schema>.sql. Run this script which drops all triggers. Out of all the schemas only APPS has 2 triggers to drop and just run the apps.sql script generated to drop them.  Fix invalid AK data in non-Global Demo databases Run Sqlplus apps/apps @akchkp16.sql from $APPL_TOP/admin/preupg. 
Review the output (akchkp16.rpt) for invalid data. If found then run akfxmrp1.sql and akfxmrp2.sql

 Inconsistent data may cause some upgrade scripts not to run properly. So run Sqlplus apps/apps @ar115chk.sql from $AR_TOP/patch/115/sql  Database Upgrade Tasks
• •

Shut down application tier listeners and concurrent managers Convert existing tablespaces to local extent management (change the parameter DICTIONARY=true in parameter file) Sqlplus system/welcome @adtbscnv.pls from /u01/app/applupg/upgappl/admin/preupg

• •

To continue to use the existing tablespace model (OFA-compliant) run the following script $ cd $AD_TOP/patch/115/sql $ sqlplus apps/apps @adgnofa.sql NEW which creates adcrtbsp.sql. Run adcrtbsp.sql script to create all product tablespaces from DB side. Run preparatory scripts – node where the database is installed.
SQL> connect SYSTEM/welcome SQL> @addb920.sql (Sets up database SYS schema) SQL> connect SYSTEM/welcome SQL> @adjv920.sql (Sets up database JAVA-related components) SQL> connect SYSTEM/welcome SQL> @admsc920.sql false system Temp  /u01/app/oraupg/upgdb/9.2.0/ctx/lib/libctxx9.so (Sets up other database components-intermedia shared library, system, temp tablespaces and removal of existing installation) SQL> connect SYSTEM/welcome SQL> @adsy920.sql (Sets up database SYSTEM schema.) SQL> connect / as sysdba SQL> @adgrants.sql applsys (Grants necessary privileges on selected SYS objects.)

Apply database patch
apply patch 3835781 to update/create necessary OWS packages.

Run the following preparatory script located in APPL_TOP
sqlplus system/welcome @adsysapp2.sql welcome. 

Check the spool file for errors. Invalid packages in the database are acceptable. They are validated when you run AutoUpgrade. • Gather database statistics for CBO patch 1268797 to be applied to gather statistics Download the update file from OracleMetaLink and apply it using AutoPatch. Then, generate CBO statistics by running the following script from your old APPL_TOP
$ cd $FND_TOP/patchsc/107/sql $ sqlplus apps/apps @afstatrn.sql FALSE

Gather database information The adupinfo.sql script generates a file called adupinfo.lst, which contains information you will need later in the upgrade. Run adupinfo.sql from the new APPL_TOP.
• •

Check SQL*Plus options set the SQL*Plus PAUSE option OFF and the NEWPAGE option to a value other than 0 (zero). Use the adupinfo.lst file created above in Step 9 to verify these values. Verify rollback segment sizing Use the segment sizing information in the adupinfo.lst file created in Step 9 to verify that rollback segments are large

$ cd $APPL_TOP/admin/preupg $ sqlplus apps/apps @adupinfo.sql

enough to handle upgrade data volume. Configure segments to avoid a "Snapshot too old" error, typically, 1 segment per worker with an extent size of 1 MB and a minimum segment size of 60 MB. Turn off automatic archive logging and Replication Run adstoplg.sql to turn off archive logging. This reduces the amount of disk space and shortens the time required by the upgrade. Install XML Parser for PL/SQL Install XML Parser for PL/SQL (plxmlparser_v1_0_2.zip) and XML SQL Utility in the database.  Create an ORACLE_HOME/appsutil/admin directory and an ORACLE_ HOME/appsutil/admin/xmlparser directory  Copy plxmlparser_v1_0_2.zip from COMMON_TOP/util to ORACLE_ HOME/appsutil/admin/xmlparser and unzip it.  Copy XSU12_ver1_2_1.zip from COMMON_TOP/util to ORACLE_ HOME/appsutil/admin and unzip it.  Follow the installation instructions in the readme file for each product (xmlparser/lib/README for the XML Parser for PL/SQL, and OracleXSU12/lib/README for the XML SQL Utility.  Update XML Parser for Java version to ensure consistency between the application tier and the database.
@ loadjava ­user apps/apps ­r ­v xmlparserv2.zip

Install all packages in the APPS schema. Back up the database Shut down the database and make a cold backup of whole database

Run “adaimgr”
$ adaimgr consolidated_tablespace=N

Sign up to vote on this title
UsefulNot useful