Professional Documents
Culture Documents
4)
Preparing System (11.5.10.2) for Upgrade
Step 1 Apply 11i.AD.I patch. The most current version of this minipack is
11i.AD.I.7 and ptach Number is 7429271
select patch_level from fnd_product_installations where patch_level like '%AD
%';
Step 2 Run TUMS Utility
The TUMS report lists tasks that you can omit from the upgrade because they do
not apply to your system (for example, a task required for a product that you do
not use or for applying a patch that you have previously applied). TUMS is
delivered in a patch, which supplies the scripts you need to examine your system
and create the report. We strongly recommend you create and review the TUMS
report before you begin the upgrade.
Patch Number 6727612 and apply it to the administration server node on your
Release 11i APPL_TOP. It supplies you with the script (adtums.sql) you need to
generate the TUMS report (tumsr12.html).
Generate the TUMS report.
UNIX:
$ cd $AD_TOP/patch/115/sql
$ sqlplus <APPS username>/<APPS password> @adtums.sql <DIRECTORY>
For the <DIRECTORY> value, enter the full path of the directory that you want
the report to be written to. This directory must be listed in the UTL_FILE_DIR
parameter of the init.ora file before TUMS can write the report and must have the
appropriate WRITE permissions.
Review the report.
The tumsr12.htm report lists the steps (identified by the TUMS step key in this
book) that do not apply to your installation. You may safely ignore any steps
listed in this report.
Step 3 Back up database, Applications, and customizations (recommended)
Make a cold backup of the Oracle Applications database. You can use it to restore
the database should you encounter problems during the upgrade process.
Step 4 Prepare an upgrade plan for customizations (conditional)
Rename any custom database objects with Applications prefixes that you have
created so that they do not conflict with Oracle object names.
At your discretion, and depending on the customizations in your system, you
configures the database to hold the new products to be added during the upgrade,
and switches your system to use the new tablespace model.
adcrtbsp.sql
Generated by adgncons.sql, this script creates the new tablespaces, allocates
unlimited tablespace to all APPS users, updates fnd_product_installation table
with correct data and index tablespace information, assigns default tablespace to
all APPS users, and sets the new_ts_mode flag in fnd_product_groups to Y.
adgrants.sql (adgrants_nt.sql for Windows)
Grants SYS privileges needed by Applications, and creates required views in SYS.
Step 9 Gather schema statistics for CBO (required)
Step 10 Back up the database (recommended)
Step 11 Disable AOL Audit Trail (conditional)
If you use the Oracle Applications Object Library Audit Trail feature, you must
disable it before the upgrade.
From the System Administrator responsibility under the 11i APPL_TOP, navigate
to Security > Audit Trail > Groups. In the Audit Groups window, set the Group
State field to Disable - Prepare for Archive for each audit group defined. Run the
Audit Trail Update Tables report from the Submit Requests window (Requests >
Run).
If you plan to re-enable auditing after the upgrade, archive and purge the shadow
tables now. Data changes made after implementing this step are not audited.
Step 12 Disable custom triggers, constraints, and indexes (conditional)
Disable custom triggers or constraints on Oracle Applications tables. Re-enable
these triggers after the upgrade. If you have custom indexes on Applications
tables, determine whether they can affect performance during the upgrade, and
drop them if necessary. If you are not sure, it is best to drop the indexes and add
them after the upgrade, if the new release has not created a similar index.
Step 13 Drop MRC schema (conditional)
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.
UNIX:
$ cd APPL_TOP/admin
$ sqlplus <SYSTEM username>/<SYSTEM password> @addrpmrc.sql \
<APPLSYS username> FORCE
Windows:
C:\> cd %APPL_TOP%\admin
C:\> sqlplus <SYSTEM username>/<SYSTEM password> @addrpmrc.sql \
<APPLSYS username> FORCE
Step 14 Down the database and Application Service completely.
Install Upgraded R12 file system
Step 1 Run Rapid Install (R12)
Note:
Configuration file written to (for Apps Tier):
/apps/inst/apps/PROD_prod1/conf_PROD.txt
Configuration file written to (for DB Tier):
/apps/db/tech_st/10.2.0/appsutil/conf_PROD.txt
Database log file:
/apps/db/tech_st/10.2.0/appsutil/log/PROD_prod1/xxxxxx.log
Appltop logifle:
/apps/inst/apps/PROD_prod1/logs/xxx.log
CONTEXT FILE:
<INST_TOP>/appl/admin/<CONTEXT_NAME>.xml
We use the Rapid Install wizard to lay down the file system and install the new
technology stack for your Release 12.0.4 Oracle Applications system. The wizard
collects configuration parameters and stores them in a configuration file
(config.txt) in the Applications database. When you run Rapid Install, it uses
these values to lay down the file system structure and technology stack
components for your configuration. As it runs, it creates a context file
(<CONTEXT_NAME>.xml) that contains all the parameters that describe your
system. This context file is created and managed by AutoConfig.
We run Rapid Install again after the upgrade to configure and start the servers
and services. Rapid Install also delivers the unified upgrade driver that you will
use later to perform the upgrade.
Upgrade the Database to Oracle10g Release 2
Step 1 We must use oracle 10g software, which is laid down by R12 Setup
a) Connect to the oracle database form 9i and run pre-upgrade scripts (utlu102i),
which is store in Oracle 10 g Home/rdbms/admin.
b) Follow the steps suggested from output of above steps.
Step 2 Copy init file from 9i default directory to 10G default directory
Step 3 Connect to the new oracle 10g instance as a user sysdba privilege and
issue following command:
SQL>STARTUP UPGRADE
You dont need to use the PFILE option to specify the location of your
initialization parameter file in our case because we are using INIT file in default
location (which is reside in Oracle10gHome/database). We have just put init file
at new oracle 10g home from 9i.
The error may be occur, when you attempting to start the new oracle Database
10g release. If you receive, issue the SHUTDOWN ABORT commands to shut
down the database and correct the problem.
Step 4 Create SYSAUX tablespace
Create SYSAUX table space for the database.
CREATE TABLESPACE sysaux DATAFILE sysaux01.dbf
SIZE 500M REUSE
EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO
ONLINE;
Note:
If you are upgrading from 10.1, then skip step4 otherwise create SYSAUX
tablespace. In oracle 10g , the SYSAUX tablespace is used to consolidate data
from a number of tablespace that where separated in previous release.
Step 5 Set the system to spool results to a log file for later verification of success:
SQL> SPOOL upgrade.log
Step 6 Run the upgrade scripts.
SQL>@catupgrd.sql
The catupgrd.sql script determines which scripts need to be run and then runs
each necessary scripts.
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:
2.
$ sqlplus apps/[APPS password] @adctxprv.sql \
3.
[SYSTEM password] CTXSYS
Rapid Install creates the appropriate server process control scripts and starts all
server processes, including the concurrent managers. Any concurrent programs
created during the upgrade run automatically at this point.
We can also execute adautoconfig.sh scripts for configuring and start server
process.
Step 2 Apply patch 6636108 on the application tier. Customers who are on
12.0.x need to apply this patch.
This patch required to CONVERT TO AUTOCONFIG ON AN ORACLE_HOME
NOT INSTALLED WITH RAPID INSTALL
Step 3 Apply patch 4585869 on the application tier. Customers who are on
12.0.x and have not upgraded to 10.1.3.3 AS patchset need to apply this patch.
Step 4 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 <INST_TOP>/admin/out.
perl <AD_TOP>/bin/admkappsutil.pl
On the database tier (as the ORACLE user), copy or FTP the appsutil.zip file to
the <RDBMS ORACLE_HOME> with this command:
cd <RDBMS ORACLE_HOME>
unzip -o appsutil.zip.
Step 5 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 OracleMetalink (Doc ID:
418664.1) to install JRE under the <RDBMS_ORACLE_HOME>/appsutil
directory.
If you are using a database tier only platform, refer to OracleMetalink (Doc ID:
456197.1) to install JRE under the <RDBMS_ORACLE_HOME>/appsutil
directory.
Step 6 If you are using the 10.2.0 ORACLE_HOME from Release 11i, generate a
new context file as follows:
UNIX:
cd <RDBMS ORACLE_HOME/appsutil/bin
perl adbldxml.pl
WINDOWS:
cd /d <RDBMS ORACLE_HOME\appsutil\bin
perl adbldxml.pl
Step 7 Run AutoConfig on the database tier nodes.
UNIX:
<RDBMS ORACLE_HOME>/appsutil/bin/adconfig.sh \
contextfile=<context file created in Step 7>
WINDOWS:
<RDBMS ORACLE_HOME>\appsutil\bin\adconfig.cmd \
contextfile=<context file created in Step 7>
Step 8 Configure Applications client software for forms applet (required)
Applies to 11i release level: AllTUMS step key: N/A
The connection between the client and the Applications forms is provided
through an applet in the client Web browser. Instead of using the browsers own
JVM, Oracle Applications uses the Sun Java (J2SE) native plug-in. You can find
download instructions in Upgrading Sun J2SE (Native Plug-in) with Oracle
Applications 12.0 Windows Clients (Doc ID: 393931.1).
Step 9 Reapply customizations (conditional)
Applies to 11i release level: AllTUMS step key: N/A
If you customized Applications environment files (APPLSYS.env or devenv), reintegrate them in devenv.env, or in the adovars.env file ($APPL_TOP/admin for
UNIX or %APPL_TOP%\admin for Windows). Restart the application server
processes so that the changes take affect.
If your system includes customized forms, reports, programs, libraries, or other
Applications files, reapply all changes that you need for this release.
Step 10 Integrate custom objects and schemas (conditional)
Applies to 11i release level: AllTUMS step key: N/A
If you previously created custom objects or have custom schemas that must be
tightly integrated with Oracle Applications, follow the steps in Oracle
Applications Developers Guide to re-integrate these customizations with the
APPS schema.
This release uses Invoker Rights for most PL/SQL packages. Executing these
packages from custom schemas may require additional grants from, and
synonyms to, APPS schema objects. Oracle recommends you explicitly declare
Invoker Rights or Definer Rights for custom PL/SQL packages. See the PL/SQL
Users Guide and Reference for more information.
Custom database objects must follow the naming standards for custom object
names to avoid conflict with Oracle Applications.
Step 11 Re-enable custom triggers, constraints, and indexes (conditional)
Applies to 11i release level: AllTUMS step key: N/A
During the upgrade, custom triggers or constraints may have been modified. If
you disabled these triggers and constraints, identify any data updates that must
be made before you re-enable them.
If you dropped any custom indexes, review the new data model to determine if
the index is necessary before you redefine it.