AD Procedures Guide
AD Procedures Guide
AD Procedures Guide
May 2002
Part No. A96516-01
Oracle Applications, AD Procedures Guide, Release 11i (11.5.7)
Contributing Authors: Subash Chadalavada, Venkat Damerla, Carole Eubanks, Miles Fender, Michael
Fiore, William Greene, My-Xuan Ho, Matthew Lobaugh, Rick Lotero, Kent Noble, Andrew Rist, Greg
Seiden
The Programs (which include both the software and documentation) contain proprietary information of
Oracle Corporation; they are provided under a license agreement containing restrictions on use and
disclosure and are also protected by copyright, patent and other intellectual and industrial property
laws. Reverse engineering, disassembly or decompilation of the Programs, except to the extent required
to obtain interoperability with other independently created software or as specified by law, is prohibited.
The information contained in this document is subject to change without notice. If you find any problems
in the documentation, please report them to us in writing. Oracle Corporation does not warrant that this
document is error-free. Except as may be expressly permitted in your license agreement for these
Programs, no part of these Programs may be reproduced or transmitted in any form or by any means,
electronic or mechanical, for any purpose, without the express written permission of Oracle Corporation.
If the Programs are delivered to the U.S. Government or anyone licensing or using the programs on
behalf of the U.S. Government, the following notice is applicable:
Restricted Rights Notice Programs delivered subject to the DOD FAR Supplement are "commercial
computer software" and use, duplication, and disclosure of the Programs, including documentation,
shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement.
Otherwise, Programs delivered subject to the Federal Acquisition Regulations are "restricted computer
software" and use, duplication, and disclosure of the Programs shall be subject to the restrictions in FAR
52.227-19, Commercial Computer Software - Restricted Rights (June, 1987). Oracle Corporation, 500
Oracle Parkway, Redwood City, CA 94065.
The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently
dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup,
redundancy, and other measures to ensure the safe use of such applications if the Programs are used for
such purposes, and Oracle Corporation disclaims liability for any damages caused by such use of the
Programs.
Oracle is a registered trademark, and JInitiator, Oracle Discoverer, OracleMetaLink, Oracle Store, Oracle8,
Oracle8i, Oracle9i, PL/SQL, SQL*Net, and SQL*Plus are trademarks or registered trademarks of Oracle
Corporation. Other names may be trademarks of their respective owners.
Contents
Preface............................................................................................................................................................ ix
Intended Audience ................................................................................................................................ ix
Documentation Accessibility ............................................................................................................... ix
Structure................................................................................................................................................... x
Related Documents................................................................................................................................. x
Training and Support............................................................................................................................ xi
Conventions........................................................................................................................................... xii
iii
Run AutoPatch .............................................................................................................................. 2-4
After Running AutoPatch............................................................................................................ 2-6
Applying Patches in a Multi-node System................................................................................ 2-8
Applying Patches Non-interactively ............................................................................................... 2-9
Creating a Defaults File................................................................................................................ 2-9
Applying a Single Patch Driver File .......................................................................................... 2-9
Applying a Standard Patch ....................................................................................................... 2-10
Applying a Non-standard Patch .............................................................................................. 2-10
Restarting a Non-interactive AutoPatch Session ................................................................... 2-12
Appplying Patches without Password Validation...................................................................... 2-12
Merging Patches ................................................................................................................................ 2-13
Backing Out Patches......................................................................................................................... 2-15
iv
Migrating an Oracle Applications File System............................................................................. 5-2
Moving Files on the Same Node ................................................................................................ 5-3
Migrating the File System to Another Platform....................................................................... 5-5
Migrating the Entire Oracle Applications File System............................................................ 5-6
Cloning Oracle Applications............................................................................................................ 5-7
6 Troubleshooting
Reviewing Worker Status.................................................................................................................. 6-1
Determining Worker Errors .............................................................................................................. 6-2
Handling a Failed Job ........................................................................................................................ 6-4
Interrupting a Hanging Worker Process......................................................................................... 6-5
Restarting a Failed or Terminated Worker ..................................................................................... 6-6
Restarting a Terminated Child Process........................................................................................... 6-7
Restarting After a Machine Crash ................................................................................................... 6-7
Shutting Down the Manager ............................................................................................................ 6-7
Reactivating the Manager ................................................................................................................. 6-8
Index
v
vi
Send Us Your Comments
Oracle Applications, AD Procedures Guide, Release 11i (11.5.7)
Part No. A96516-01
We welcome your comments and suggestions on the quality and usefulness of this publication. Your
input is an important part of the information used for revision.
■ Did you find any errors?
■ Is the information clearly presented?
■ Do you need more information? If so, where?
■ Are the examples correct? Do you need more examples?
■ What features did you like most about this manual?
If you find any errors or have any suggestions for improvement, please indicate the document title
and part number, and the chapter, section, and page number, if available. Send comments to us by
email at [email protected]. If you would like a reply, please give your name, address, tele-
phone number, and (optionally) email address.
vii
viii
Preface
AD Utilities Reference Guide and AD Procedures Guide make up the Maintaining Oracle
Applications Documentation Set. The AD Procedures Guide describes procedures for
maintaining the Oracle Applications file system and database using the
Applications DBA (AD) utilities. The AD Utilities Reference Guide provides specific
details on how to run the AD utilities.
Intended Audience
This book is intended for database administrators and system administrators who
need to perform Oracle Applications maintenance tasks.
Documentation Accessibility
Our goal is to make Oracle products, services, and supporting documentation
accessible, with good usability, to the disabled community. To that end, our
documentation includes features that make information available to users of
assistive technology. This documentation is available in HTML format, and contains
markup to facilitate access by the disabled community. Standards will continue to
evolve over time, and Oracle Corporation is actively engaged with other
market-leading technology vendors to address technical obstacles so that our
documentation can be accessible to all of our customers.
For additional information, visit the Oracle Accessibility Program web site at
http://www.oracle.com/accessibility/.
ix
appear on an otherwise empty line. JAWS may not always read a line of text that
consists solely of a bracket or brace.
Structure
This book contains the following chapters:
■ Chapter 1 describes general procedures to maintain Oracle Applications.
■ Chapter 2 describes procedures related to patching Oracle Applications.
■ Chapter 3 contains information on analyzing patch history information in
Oracle Applications.
■ Chapter 4 describes procedures to update the configuration of Oracle
Applications after the initial installation.
■ Chapter 5 describes procedures to migrate an Oracle Applications system.
■ Chapter 6 describes procedures for troubleshooting the AD utilities parallel
processes.
Related Documents
All Release 11i documentation is included on the Oracle Applications Document
Library CD, which is supplied in the Release 11i CD Pack. You can download some
soft-copy documentation from http://docs.oracle.com. You can also purchase
hard-copy documentation from the Oracle Store at http://oraclestore.oracle.com.
x
If you are looking for... See these documents...
Additional information Oracle Applications Concepts
Upgrading Oracle Applications
Installing Oracle Applications
Maintaining Oracle Applications Documentation Set:
Oracle Applications AD Utilities Reference Guide
Oracle Applications Installation Update Notes*
Oracle Applications Release Notes*
Oracle Applications NLS Release Notes*
Oracle Applications System Administrator’s Guide
Oracle Self-Service Web Applications Implementation Manual
Oracle Workflow Guide
Oracle Applications Character Mode to GUI Menu Path Changes
Oracle Application Object Library/Workflow Technical Reference Manual
Application-specific Oracle Applications user’s guides
features Oracle Applications implementation manuals
Multiple Organizations in Oracle Applications
Multiple Reporting Currencies in Oracle Applications
Oracle Applications Supplemental CRM Installation Steps
Information about custom Oracle Applications User Interface Standards for Forms-based Products
development Oracle Applications Developers’ Guide
Database information Oracle8i Concepts
Oracle8i Backup and Recovery Guide
Oracle8i Reference
Oracle8i Designing and Tuning for Performance
Oracle8i National Language Support Guide
*Available only on OracleMetaLink
Update or patch readme files may contain information about new documentation
that you can download.
Training
You can attend training courses at any Oracle Education Center, arrange for trainers
to teach at your facility, or use Oracle Learning Network (OLN) — Oracle
University’s online education utility. Oracle training professionals can also develop
xi
custom courses using your organization structure, terminology, and data as
examples.
Support
The Oracle support team includes your Technical Representative and Account
Manager. It also includes Oracle consultants and support specialists who have
expertise in your business area, and in managing an Oracle8i server and your
hardware and software environment.
OracleMetaLink is a self-service, web-based support connection, which is
maintained by Oracle Support Services 24 hours a day, 7 days a week. Use it to
obtain information and advice from technical libraries and forums, download
patches, look at bug details, and create or update TARs. Register at
http://metalink.oracle.com, and check for updates and information before you
install or upgrade your Oracle Applications. The Start Here CD also contains links to
the various resources on OracleMetaLink.
Conventions
The following conventions are used in this book:
Convention Meaning
UNIX: Indicates platform-specific information. This guide contains
Windows: information for both UNIX and Windows platforms.
$ or C:\> Represents the platform-specific command prompt. Your
prompt may differ.
Monospace text Represents command line text. Type this text exactly as shown.
<> Text enclosed in angle brackets represents a variable. Substitute
a value for the variable text. Do not type the brackets.
[] Encloses optional items or indicate a function key. Do not type
the brackets.
| Represents an or option among several options. You must enter
only one of the options. Do not type the vertical bar.
\ In examples of commands you type online, a backslash at the
end of a line signifies that you must type the entire command on
one line. Do not type the backslash.
Special notes alert you about particular information within the body of the book.
They include Additional Information, Attention, Note, and Warning.
xii
1
Maintaining Your System
This chapter contains general procedures for proper maintenance of the Oracle
Applications system. It contains the following sections:
■ Analyzing the Database
■ Compiling Invalid Database Objects
■ Pinning Database Objects
■ Generating Files
■ Recovering Disk Space
■ Managing Server Processes
To analyze the database, run the Gather Schema Statistics concurrent program:
1. Log on to Oracle Applications with the System Administrator responsibility.
2. Navigate to the Submit Request window (Request > Run).
3. Submit the Gather Schema Statistics program.
If schema name is set to ALL, statistics are gathered for all Oracle Applications
schemas (having an entry in the FND_PRODUCT_INSTALLATIONS table). In
addition to gathering index and table-level statistics, the procedure also gathers
column-level histogram statistics for all columns listed in the FND_HISTOGRAM_
COLS table.
integrity of the APPS schema. Review the output file from this task for any
invalid database objects.
Note: To set up grants and synonyms for the MRC schema, choose
the Maintain MRC task specifically from the Database Objects
menu after compiling the APPS schema and fixing any issues.
The ADXGNPIN.sql script pins packages and functions in the APPS schema, while
ADXGNPNS.sql pins sequences in the base product schemas. Both scripts take the
name of a schema as an argument, or % for all schemas. ADXGNPIN.sql generates
and invokes another SQL file, ADXSPPIN.sql. ADXGNPNS.sql generates and runs
ADXSPPNS.sql.
1. Create the appsutil/admin directory in the ORACLE_HOME of the database
server.
2. Copy ADXGNPIN.sql and ADXGNPNS.sql from the AD_TOP/sql directory of
the admin server to this directory.
3. Set the environment to point to the ORACLE_HOME for the database server.
Access the database server directly.
4. Go to the directory created in Step 1 and run ADXGNPIN.sql and
ADXGNPNS.sql from SQL*Plus:
sqlplus <SYS username>/<SYS password> @ADXGNPIN.sql <APPS schema name>
We also provide a script that can be run at any time to query for objects stored in the
shared pool. It shows the objects known to the SGA and the size that they consume
in the SGA. The output file is ADXCKPIN.lst.
UNIX:
$ cd $APPL_TOP/admin/<SID>/out
$ sqlplus <SYSTEM username>/<SYSTEM password> @$AD_TOP/sql/ADXCKPIN.sql
Windows:
C:\> cd %APPL_TOP%\admin\<SID>\out
C:\> sqlplus <SYSTEM username>/<SYSTEM password> @%AD_TOP%\sql\ADXCKPIN.sql
Generating Files
AD Administration automates the generation of forms, reports, graphics, message
and product JAR (Java archive) files. Generate files when you suspect an issue with
a particular file or set of files. For example, if users are not able to use a certain
General Ledger form, regenerating the form file may resolve the issue.
As patches are applied to Oracle Applications, files belonging to unlicensed
products are not generated. When licensing an additional product, generate all
product files before using the product.
To generate files, perform the following:
1. Determine the file types that require generation.
2. Log on as applmgr and set the environment.
4. Go to the Maintain Applications Files menu and select the task for the type of
files you want to generate.
■ The generate form files, report files and graphic files options allow you to
select the files to generate. You can select an individual file, a set of files, or
all files of the selected type.
■ The generate product JAR files option allows you to generate all files for all
products, or only JAR files that are out of date.
■ The generate message files option generates all message files for all
products.
5. Repeat the generation task on each server node that contains the files, if the
Oracle Applications system contains multiple nodes.
6. Review the AD Administration log file for any warnings or errors.
UNIX:
The files in $APPL_TOP/admin/<SID>/log and
$APPL_TOP/admin/<SID>/out.
Windows:
The files in %APPL_TOP%\ admin\<SID>\log and
%APPL_TOP%\admin\<SID>\out.
These directories contain log and output files, respectively, for AutoUpgrade and
other Oracle Applications utilities. Do not delete the directories.
Upgrade files
If you are not upgrading Oracle Applications from a prior release, or all product
groups have been upgraded to the current release, then you can compress, archive,
or delete the files in $APPL_TOP/admin/preupg (UNIX) or the files in %APPL_
TOP%\admin\preupg (Windows).
This directory contains SQL*Plus and other files used to prepare products for an
upgrade to the current software release.
■ Reports server
■ Report Review Agent
■ Concurrent managers
■ HTTP server
UNIX:
adfrmctl.sh [start|stop]
Windows:
adfrmctl.cmd [start|stop]
UNIX:
adfmsctl.sh [start|stop]
Windows:
adfmsctl.cmd [start|stop]
UNIX:
adfmcctl.sh [start|stop]
Windows:
adfmcctl.cmd [start|stop]
Reports server
The reports server processes requests to execute a report and returns the output of
the report. To start/stop the reports server, log on as applmgr on the concurrent
processing server node and type:
UNIX:
adrepctl.sh [start|stop]
Windows:
adrepctl.cmd [start|stop]
Note: This script sets the DISPLAY variable to the default value
defined when running Rapid Install.
UNIX:
adalnctl.sh [start|stop] <listener_name>
Windows:
adalnctl.cmd [start|stop] <listener_name>
The listener should always be the APPS listener name or the script may terminate
another listener.
Concurrent managers
Rapid Install sets up and starts the concurrent managers for you. It also provides a
script, so you can restart them later, if needed. You can use this script to start/stop
the concurrent manager for a database. During the set up process, Rapid Install
performs the following tasks:
■ Sets up electronic mail messaging
■ Creates common log and output directory and log and output files in each
product top directory
■ Defines startup parameters
■ Restricts access
To run the script, log on as applmgr on the concurrent processing server node and
type:
UNIX:
adcmctl.sh [start|stop] <APPS username>/<APPS password>
Windows
adcmctl.cmd [start|stop] <APPS username>/<APPS password>
Note: This script sets the DISPLAY variable to the default value
defined when running Rapid Install.
HTTP server
The Oracle HTTP server processes URL requests to execute forms based
Applications and Self-Service Web Applications. Rapid Install sets up and starts the
HTTP server. It also provides a script so you can restart it later, if necessary. To
start/stop the HTTP server, log on to the system as applmgr on the web server
node. Then, type:
UNIX:
adapcctl.sh [start|stop]
Windows:
adapcctl.cmd [start|stop]
UNIX:
adstrtal.sh <APPS username>/<APPS password>
Windows:
adstrtal.cmd <APPS username>/<APPS password>
UNIX:
adstpall.sh <APPS username>/<APPS password>
Windows:
adstpall.cmd <APPS username>/<APPS password>
UNIX:
addlnctl.sh [start|stop] <listener_name>
Windows:
addlnctl.cmd [start|stop] <listener_name>
For example, the oracle user would start the Net8 listener with the following
command:
UNIX:
addlnctl.sh start PROD
Windows:
addlnctl.cmd start PROD
Oracle8i server
Oracle Applications provides a script so you can start/stop the database server, if
necessary. This script is in the database server ORACLE_HOME under
appsutil/scripts. As the oracle user on the database server, type:
UNIX:
addbctl.sh [start|stop] {immediate|abort|normal}
Windows:
addbctl.cmd [start|stop] {immediate|abort|normal}
For example, the oracle user would shut down the database with the following
command:
UNIX:
addbctl.sh stop normal
Windows:
addbctl.cmd stop normal
Patch Types
Throughout the course of the Oracle Applications lifecycle, patches are applied for a
number of reasons. These include:
■ Updating to a higher maintenance level (maintenance pack)
■ Applying the latest product enhancements (mini-pack)
■ Adding a new feature or functionality
■ Fixing an existing issue
All Oracle Applications patches update the file system, or the database, or both and
are available from OracleMetaLink. The patch types are:
Patches Description
Stand-alone Fixes a specific issue or provides new functionality.
High-priority Defined by Oracle Development to have broad enough impact
so that it merits a review for application by all customers who
have installed a particular product.
Mini-pack A consolidation of all high-priority and stand-alone patches for
a product. The naming convention is 11i.<product>.
<mini-pack letter> such as 11i.AD.F. Subsequent mini-packs
(those with higher <mini-pack letter>) supersede previous
versions. Mini-packs are cumulative.
Family pack A consolidation of a set of mini-packs and high-priority
stand-alone patches for a product family.
Family consolidated All upgrade-related, high-priority patches consolidated from all
upgrade patch the products within a product family. Family consolidated
upgrade patches are released as needed. The Oracle Applications
Release Notes lists the most recent family consolidated upgrade
patches.
Patches Description
Maintenance pack A consolidation of all product mini-packs. The maintenance
release updates a system to a new point release of Oracle
Applications, such as 11.5.7.
Applying Patches
Updates to one or more of the servers (admin, concurrent processing, database,
forms, or web) are applied on the database tier, or the application (middle) tier, or
both. In general, updates may include, or require, changes to Oracle Applications,
the Oracle Applications technology stack, the Oracle database and related
components. This section focuses on patches applied to the Oracle Applications file
system and database.
When applying multiple patches, use AD Merge Patch to merge the patches.
Run AutoPatch
Start AutoPatch in normal mode from the patch directory, which is the directory the
patch files where unloaded. Use the adpatch command.
When AutoPatch prompts for the driver name, specify the copy driver. After the
copy driver is successfully applied, apply the database driver (if the patch includes
one). Then, apply the generate driver (if the patch includes one). If the Oracle
Applications system contains multiple nodes, see the Applying Patches in a
Multi-node System section in this chapter for the order of applying the drivers.
After each driver is applied successfully, AutoPatch updates the patch history
database with details of the patching session.
Copy Driver
When applying the copy driver, AutoPatch:
■ Extracts the appropriate files from each product’s C library.
■ Compares the extracted object modules with their corresponding files in the
patch directory. It also makes this type of comparison with files such as forms,
reports, and SQL scripts.
■ If a file in the patch directory is a more recent version than the product’s current
file, AutoPatch backs up the product’s current file into a subdirectory of the
patch directory. For example, if <patch_dir> is the patch directory, <env_name>
is the Applications Environment name, <appl_top_name> is the APPL_TOP
name, and <prod> is the name of the product being patched, it backs up:
<PROD>_TOP/<subdir(s)>/<old_file_name>
to
<patch_dir>/backup/<env_name>/<appl_top_name>/ \
<prod>/<subdir(s)>/<old_file_name>
■ Replaces each product’s outdated files with newer files from the patch
directory.
■ Applies changed Java class files and regenerates JAR files as needed.
■ Loads the new object modules into the C libraries.
■ Relinks the Oracle Applications products with the operating system, Oracle
server, and other Oracle products libraries.
■ Copies any specified HTML or media files to their respective destinations.
Database Driver
When applying the database driver, AutoPatch:
■ Determines whether the action was performed in a previous patch.
■ Runs SQL scripts and exec commands, which change Oracle Applications
database objects. By default, AutoPatch does this in parallel.
■ Performs Invoker Rights processing if the patch contains a package command.
AutoPatch performs Invoker Rights processing in serial mode when the patch is
applied serially and in parallel mode when it is applied in parallel.
Generate Driver
When applying the generate driver, AutoPatch generates Oracle forms files, reports
files, and graphics files.
2. Review customizations.
After verifying the successful application of the patch, start all server processes
and allow users to access the system.
Note: If the extent of the patch actions are unknown, shut down
all services and ensure no users are on the system before applying
any portion of the patch. Some patches, such as those that update
online help, do not require any system downtime.
2. Apply the copy driver to node 1 (admin, concurrent processing, and database
servers).
3. Start the concurrent managers.
4. Apply the copy driver to node 2 (forms and web servers).
5. Apply the database driver to node 1.
6. Apply the generate driver to node 1.
7. Apply the generate driver to node 2.
8. Start services and restart the web server, if necessary.
Windows:
C:\> adpatch defaultsfile=%APPL_TOP%\admin\<SID>\def.txt
2. Run AutoPatch up to the point where it asks for the directory where the Oracle
Applications patch has been unloaded. Type abort at this prompt.
3. Verify that the defaults file exists.
Once an AutoPatch defaults file is created, you can run AutoPatch non-interactively.
Here are some examples:
UNIX:
$ adpatch defaultsfile=$APPL_TOP/admin/testdb1/def.txt logfile=123456.log \
patchtop=$APPL_TOP/patch/123456 driver=c123456.drv workers=3 interactive=no
Windows:
C:\> adpatch defaultsfile=%APPL_TOP%\admin\testdb1\def.txt logfile=123456.log \
patchtop=%APPL_TOP%\patch\123456 driver=c123456.drv workers=3 interactive=no
UNIX:
$ adpatch defaultsfile=$APPL_TOP/admin/testdb1/def.txt logfile=patch123456.log \
patchtop=$APPL_TOP/patch/123456 workers=3 interactive=no
Windows:
C:\> adpatch defaultsfile=%APPL_TOP%\admin\testdb1\def.txt \
logfile=patch123456.log patchtop=%APPL_TOP%\patch\123456 \
workers=3 interactive=no
Here is the command line to restart the "Applying a Single Patch Driver File"
example:
UNIX:
$ adpatch defaultsfile=$APPL_TOP/admin/testdb1/def.txt logfile=123456.log \
patchtop=$APPL_TOP/patch/123456 driver=c123456.drv workers=3 \
interactive=no restart=yes
Windows:
C:\> adpatch defaultsfile=%APPL_TOP%\admin\testdb1\def.txt logfile=123456.log \
patchtop=%APPL_TOP%\patch\123456 driver=c123456.drv workers=3 \
interactive=no restart=yes
Merging Patches
The AD Merge Patch (admrgpch) utility merges multiple AutoPatch compatible
patches into a single integrated patch. It is an executable located in AD_TOP/bin.
To merge patches:
1. Review the readme files carefully.
Some patch readme files contain special instructions for applying merged
patches. These may include manual steps.
2. Create directories.
In the patch top area, create a source directory and a destination directory.
Choose any name for these directories.
3. Unzip patches.
Copy all patches to be merged into the source directory and unzip them.
4. Run AD Merge Patch using these arguments:
■ The source directory where the patches to be merged have been unloaded
(<source directory>).
■ The destination directory where the integrated patch will be created
(<destination directory>).
■ The name of the merged patch (-merged_name).
From the patch top area, run AD Merge Patch with the following command:
admrgpch <source directory> <destination directory> \
-merged_name <name>
For example, when merging three patches called 123456, 123457, and 123458
located in the source directory ".../patches/source" to the destination directory
".../patches/destination" and using "merge99" for the name of the merged
patch, use the following command:
UNIX:
$ admrgpch /d01/patches/source /d01/patches/destination \
-merged_name merge99
Windows:
C:\> admrgpch C:\patches\source C:\patches\destination \
-merged_name merge99
to
<patch_dir>/backup/<env_name>/<appl_top_name>/<prod>/<subdir(s)>/ \
<old_file_name>
Use these backup files to restore the files on the Oracle Applications system. If
the patch is large and copied many files, restore the entire file system with the
backup created before applying the patch.
4. Relink files.
If the copy driver includes actions to relink files, determine the files affected
and relink them using AD Administration or, for AD programs, use AD Relink.
5. Restore apps.zip.
If the patch included Java updates, perform the following, where
<copy driver name> is the name of the copy driver. For example, if the copy
driver is c123456.drv, the copy driver name is c123456.
adjava oracle.apps.ad.jri.adjcopy -masterArchive apps.zip \
-deltaArchives <copy driver name>.zip -favorLowRevisions \
-mode APPLY
If a generate driver fails, the best option is to use AD Administration to generate all
files, or just those that were updated by the patch. If AD Administration fails to
generate these files, review the log files to determine the issue. Once isolated, fix the
issue and use AD Administration to generate the files.
This chapter describes how to use the patch history database reports to analyze
patch history information. It contains the following sections:
■ Determining if a Patch was Applied
■ Determining the Actions Performed by a Driver File
■ Determining if a Translation was Applied for a Specific Patch
■ Migrating Patch History Information
2. Enter dates in the Applied between <begin date> and <end date> fields.
For example, when trying to determine the patches that were applied during
the period beginning January 19, 2002 and ending February 19, 2002, enter these
dates in the <begin date> and <end date> fields, and click Submit.
2. Enter the patch number in the Patch field, then click Submit.
Select the radio button adjacent to a driver file and click the Action Summary
button to access the Action Summary report.
5. Review the Action Summary report.
If the driver selected is a copy driver, the Patch Summary report shows the
driver actions, such as copy, libout, and link.
If the driver selected is a database driver, the Patch Summary report shows the
driver actions, such as sql and exec.
Toggling the Hide/Show link in the Details column for a database driver action,
expands the row to show additional driver action details.
If the driver selected is a generate driver, the Patch Summary report shows the
driver actions, such as genform and genrep.
2. Enter the patch number in the Patch field, then click Submit.
Argument Description
P_APPS_SYS_NAME Applications System name
P_APPL_TOP_NAME APPL_TOP name
P_START_DATE Start of date range
(YYYY/DD/MM HH24:MI:SS format. For
example, 2002/01/05 23:06:24)
P_END_DATE End of date range
(YYYY/DD/MM HH24:MI:SS format)
P_BUGNUM Patch number (For example, 2079967)
P_LANG Language for NLS patches (For example, F for
French)
P_MINIPACK Mini-pack level (For example, 11i.AD.F)
P_RELEASE Release (For example, 11.5.7)
P_DRIVER_TYPE Driver type, where C is the copy driver, D is the
database driver, and G is the generate driver. If
specified, it must be C, CD, CG, CDG, D, DG or G
only.
Argument Description
P_REC_ON_RLSE If a release level is specified, the patch history
database records the patches as having been
applied against it, instead of the release level
stored in the source database (For example, P_
REC_ON_REC=11.5.7 would set all patches as
having been applied at 11.5.7, regardless of what
11.5 release they were applied on in the source
system).
Argument Description
P_IMPORT_AT The options are Y or N. Y is the default and
imports the APPL_TOP name and Applications
system name from the source system. Selecting N
allows you to change the APPL_TOP name and
Applications system name according to the target
system.
P_APPL_TOP_NM This argument is required if P_IMPORT_AT is set
to N. It allows you to change the APPL_TOP name
to match that of the target system.
P_APPS_ENV_NM This argument is required if P_IMPORT_AT is set
to N. It allows you to change the Applications
system name to match that of the target system
Throughout the lifecycle of Oracle Applications, you may decide to modify the
system configuration by adding components, products, or languages. This chapter
contains information about modifying the Oracle Applications system
configuration. It contains the following sections:
■ Licensing Components
■ Converting to Multiple Organizations
■ Converting to Multiple Reporting Currencies
■ Adding a Node
Licensing Components
Rapid Install licenses products, country-specific functionalities and languages
during the initial installation of Oracle Applications. To license additional products,
country-specific functionalities, or languages after the installation, use License
Manager.
Windows:
C:\> adlicmgr.cmd
Enter the APPS username, APPS password, and the value of TWO_TASK
(UNIX) or LOCAL (Windows). Click Next.
5. Select operation.
On the Select Operations screen, License Manager provides the option of
reviewing the currently licensed products or licensing additional products.
Select Update your current Licensed Products and click Next.
License Products
Products can be licensed any time after the initial installation. To license products,
perform the following steps:
1. Run License Manager.
2. License products.
After you click "Update your current Licensed Products" in the Select
Operations screen, click Next until you get to the Orderable Products screen.
This screen displays the licensable product families. Click the check box
adjacent to a product family to license that family. Product families that are
shaded are already licensed.
The currently licensed products are checked and grayed out. Products in the list
of licensed products cannot be removed or unlicensed using License Manager.
Select products to license, then click Next.
3. Close License Manager.
Continue clicking Next until you get to the Summary screen. Click Finish.
4. Apply patches.
Check OracleMetaLink for any product-specific patches or mini-packs that are
required for the newly licensed country-specific functionality. Apply these
updates at this time.
5. Generate files.
Since files used by the newly licensed country-specific functionalities may have
been updated, generate all files for products associated with the new
country-specific functionalities.
If files were generated when you applied patches in Step 4, omit this step.
License Languages
Oracle Applications is supported in 30 languages. The default language is American
English. You may decide to use another language in conjunction with the languages
that were licensed and installed during the initial installation. To license languages,
perform the following steps:
1. Run License Manager.
Highlight each new language in the available languages list and click the > to
move it to the list of selected languages. Click OK when finished.
3. Set base language.
Change the base language on the Languages screen, if necessary. Verify that the
enabled languages are compatible with the database character set.
Windows:
C:\> adlicmgr.cmd
You can save the current license information to a text file or print the
information. If you click Print, the contents of this screen is sent to the printer. If
you click Save, License Manager prompts for a location to save the file.
6. Click Finish in the Current License Information screen to close License Manager.
The newprods.txt must contain all the entries shown in the example and they
must be in the exact order listed. The *APPL_TOP* entry for base_product_top
points to the location defined by the APPL_TOP environment variable. Edit the
last four parameters according to the tablespace names used to create the
product tablespaces. For example,
product=zsa
base_product_top=*APPL_TOP*
oracle_schema=zsa
sizing_factor=100
main_tspace=ZSAD
index_tspace=ZSAX
temp_tspace=TEMP
default_tspace=ZSAD
Windows:
C:\> cd %APPL_TOP%\admin
C:\> adsplice
Run AD Splicer for each APPL_TOP and database combination so that the AD
utilities recognize the off-cycle products as valid.
8. Create a new environment file (UNIX) or new Applications environment
subkey in the registry (Windows).
10. (UNIX): Integrate the environment file created by AD Splicer with the existing
environment file. If the existing environment file was not customized, copy the
new version on top of the existing one.
11. Log out and log back in so that the new environment file (UNIX) or
environment subkey in the registry (Windows) is used to set up the
environment.
12. Verify that <PROD>_TOP registry and environment variables are set for the
newly spliced off-cycle products.
13. Run AutoPatch to install files and database objects for the new products.
The patch readme file lists the driver files that need to be run.
Adding a Node
Oracle Applications can operate on any number of nodes. Rapid Install can
configure single-node or multi-node systems during the installation of Oracle
Applications. There may be situations after the initial installation that necessitate
adding an additional node.
For example, an increase in the number of users accessing Oracle Applications
forms can increase the load on the existing forms server and impact performance.
Installing another forms server or web server on a separate node can help balance
load. The additional node can support other servers, for example, an additional
concurrent processing server to take advantage of parallel concurrent processing.
To install an additional node to an existing Oracle Applications system:
1. Select an existing node with the server configuration that the new target node
will resemble.
An option is to select a node with all servers installed.
2. Perform the Cloning a Single-node System to a Multi-node System process,
using the node selected above as the source node.
Term Definition
Source node The machine you are migrating from.
Target node The machine you are migrating to.
Source database The original database on the source node.
Target database The destination database on the target node.
Windows:
C:\> xcopy /s /e /i d:\appl\115\gl e:\appl2\115\gl
Do not use the move command or delete the old files until the migration is
successful.
Windows:
5. Edit topfile.txt.
The topfile.txt file in APPL_TOP/admin contains an entry for each product. The
entry consists of the product abbreviation and the product’s base product top
directory. The base product top directory is the directory under which the
product directory is located. Often the base product top directory is APPL_TOP,
but not always. For example, if GL_TOP is set to /d05/appl2/gl/11.5.0, the
base product top directory for GL is /d05/appl2.
Since the base product top directory for one or more products was changed,
edit topfile.txt to reflect this change.
■ Open topfile.txt in an editor.
■ Find the abbreviation(s) for the product(s) that were moved.
■ Change the corresponding base product top directory entry to match the
new base product top directory.
■ Save the changes and exit the editor.
6. Apply patches.
If patches were applied to the source Oracle Applications file system that is
being replaced, apply the same patches and other platform-specific patches to
the new file system.
7. Reapply customizations.
If there are customizations, reapply, recompile, and regenerate them.
8. Verify Oracle Applications products on the target node.
Verify that the migration is successful by using Oracle Applications with the
files on the target node. When you are satisfied, remove the product files from
the source node.
This chapter contains information about troubleshooting issues that may arise when
using the AD utilities. It contains the following sections:
■ Reviewing Worker Status
■ Determining Worker Errors
■ Handling a Failed Job
■ Interrupting a Hanging Worker Process
■ Restarting a Failed or Terminated Worker
■ Restarting a Terminated Child Process
■ Restarting After a Machine Crash
■ Shutting Down the Manager
■ Reactivating the Manager
Troubleshooting 6-1
Determining Worker Errors
2. Start AD Controller.
adctrl
Status Meaning
Assigned The manager assigned a job to the worker, and the worker has not
started.
Completed The worker completed the job, and the manager has not yet assigned
it a new job.
Failed The worker encountered a problem.
Fixed, Restart You fixed the problem, and the worker should retry whatever failed.
Restarted The worker is retrying a job or has successfully restarted a job (Note
that the status does not change to Running).
Running The worker is running a job.
Wait The worker is idle.
Log in as applmgr from another terminal or terminal window and set the
environment.
Windows:
C:\> copy adwork02.log edit02.log
For large files on UNIX platforms, use the tail command to specify the number
of lines at the end of a large file that you want to copy to a new file. For
example, to write the last 100 lines of the adwork02.log file to short02.log, type:
$ tail -100 adwork02.log > short02.log
AD Worker error:
Unable to compare or correct tables or indexes or keys because of the error
Troubleshooting 6-3
Handling a Failed Job
above
In the example, the worker could not create the index AP_INVOICES_N11
because it reached the maximum number of extents in the temporary
tablespace. To fix the problem, increase the size of the next extent or the
maximum number of extents in the temporary tablespace.
2. Restart the failed job.
Run AD Controller. Choose to review the worker status, and then restart the
job.
Choose Option 1 again. The Status column for the worker that failed should
now say Restarted or Fixed, Restart.
Note: When the manager becomes idle (that is, all workers are in
either Failed or Wait status), it automatically restarts the failed
workers one time. If the workers fail again on the same jobs,
determine the cause of the error and fix them before manually
restarting the workers.
Windows:
Invoke the Task Manager (Ctrl-Alt-Delete) to view processes.
3. Determine what processes the worker has started, if any.
Some worker processes spawn other processes called child processes. A worker
can spawn the following types of child processes:
■ sqlplus (SQL*Plus)
■ addmimp (DataMerge)
Troubleshooting 6-5
Restarting a Failed or Terminated Worker
Windows:
Troubleshooting 6-7
Reactivating the Manager
When the manager becomes idle, it automatically attempts to restart the failed
workers. If the workers fail again on the same jobs, a message like the following will
appear:
ATTENTION: All workers either have failed or are waiting:
ATTENTION: Please fix the above failed worker(s) so the manager can continue.
Choose Option 2 on the AD Controller menu to tell the worker to restart a failed
job. The AD utility automatically reactivates, then restarts the worker processes.
Troubleshooting 6-9
Reactivating the Manager
Index-1
B F
backup files family consolidated upgrade patch, 2-2
AutoPatch, 2-7 family pack, 2-2
file system
migrating, 5-2
C migrating the entire Oracle Applications file
child process system, 5-6
of worker, 6-6 migrating to another platform, 5-5
restarting, 6-5 moving on the same node, 5-3
cloning source database, 5-2
Oracle Applications, 5-7 source node, 5-2
white paper, 5-7 target database, 5-2
cmerged.drv, 2-13 target node, 5-2
concurrent managers FND_HISTOGRAM_COLS table, 1-2
starting and stopping, 1-9 FND_PRODUCT_INSTALLATIONS, 1-2
control files FNDLOAD (Oracle Applications Generic
AD Splicer, 4-13 Loader), 3-9
copy driver, 2-5 form files
cost-based optimization (CBO), 1-1 generating, 1-5
country-specific functionalities Forms Metric client
licensing, 4-6 starting and stopping, 1-8
reviewing licensed, 4-10 Forms Metrics server
starting and stopping, 1-8
D Forms server listener
starting and stopping, 1-8
database
analyzing, 1-1
migrating, 5-1 G
database driver, 2-6 generate driver, 2-6
database objects generating files, 1-5
pinning, 1-3 gmerged.drv, 2-13
dbmerged.drv, 2-13 gnumake, 2-4
defaults file, 2-9 grants and synonyms
creating, 2-9 recreating, 1-3
disk space graphic files
recovering, 1-6 generating, 1-5
docs.oracle.com, x
documentation accessibility, ix
documentation library
H
contents, x HTTP server
driver file starting and stopping, 1-10
determining if applied, 3-3
I
Invoker Rights
Index-2
processing, 2-6 converting to, 4-16
J N
job Net8 listener
handling a failed, 6-4 starting and stopping, 1-11
newprods.txt, 4-13
NLS_LANG, 4-16
L
node
languages adding, 4-17
licensing, 4-7 non-interactive mode
reviewing licensed, 4-10 applying
License Manager (adlicmgr), 4-2 non-standard patch, 2-10
Country-specific Functionalities screen, 4-6 single patch driver, 2-9
Languages screen, 4-7 standard patch, 2-10
base language, 4-7 restarting, 2-12
Licensable Products screen, 4-4 running
licensing AutoPatch in, 2-9
country-specific functionalities, 4-6
languages, 4-7
products, 4-4 O
Orderable Products screen, 4-4 obsolete files
running, 4-1 deleting, 1-6
Select Languages screen, 4-8 off-cycle products
Select Operations screen, 4-2 creating tablespaces for, 4-12
Summary screen, 4-3 licensing, 4-12
loadjava.zip, 2-4 newprods.txt, 4-13
log files prod.txt, 4-14
compressing or deleting, 1-6 product configuration file, 4-13
registering, 4-14
terr.txt, 4-14
M
online education
maintenance pack, 2-3 about, xi
manager operating unit
restarting, 6-8 Multi-Org, 4-15
shutting down, 6-7 Oracle Learning Network
message files about, xi
generating, 1-5 Oracle Support Services
MetaLink contacting, xii
see OracleMetaLink Oracle8i server
mini-pack, 2-2 starting and stopping, 1-12
MKS toolkit, 2-4 OracleMetaLink
Multiple Organizations (Multi-Org) using, xii
converting to, 4-15 oraclestore.oracle.com, x
Multiple Reporting Currencies (MRC) ORG_ID, 4-15
Index-3
output files licensing, 4-4
compressing or deleting, 1-6 reviewing licensed, 4-10
P R
patch history database, 3-1 Real Applications Clusters (RAC), 5-2
Patch Details report, 3-4 report files
Patch Summary report, 3-2, 3-3, 3-8 generating, 1-5
patch history information Report Review Agent
migrating, 3-9 starting and stopping, 1-9
patch subdirectory, 2-7 Reports server
patch types starting and stopping, 1-9
bug fix, 2-1 rule-based optimization (RBO), 1-1
diagnostic, 2-2
interoperability, 2-2
S
new feature, 2-2
translation, 2-2 schema statistics
upgrade, 2-2 gathering, 1-2
patches source database, 5-2
applying, 2-3 source node, 5-2
in a multi-node system, 2-8 synonyms
without password validation, 2-12 recreating, 1-3
backing out, 2-15 System Global Area (SGA), 1-3
copy driver, 2-5
database driver, 2-6 T
determining
if applied, 3-1 tablespaces
if translation was applied, 3-7 creating
family consolidated upgrade patch, 2-2 for off-cycle products, 4-12
family pack, 2-2 target database, 5-2
generate driver, 2-6 target node, 5-2
high-priority, 2-2 topfile.txt, 5-4
maintenance pack, 2-3 training
merged about, xi
destination directory, 2-13 translations
source directory, 2-13 installing, 4-9
merging, 2-13
mini-pack, 2-2 U
readme files, 2-3
updates
standalone, 2-2
patching process see patches
upgrade files
preparing, 2-3
compressing or deleting, 1-6
product JAR files
generating, 1-5
products
Index-4
W
worker
child processes, 6-5
determining errors, 6-2
determining failure, 6-8
interrupting process of, 6-5
log file, 6-2
restarting, 6-6
restarting after a machine crash, 6-7
reviewing status of, 6-1
showing status of, 6-2
Index-5
Index-6