Skip Headers

Oracle E-Business Suite Maintenance Guide
Release 12.2
Part Number E22954-22
Go to Table of Contents
Contents
Go to previous page
Previous
Go to next page
Next

Patching Utilities

The adop Utility

You use the adop (AD Online Patching) utility to apply patches to the Oracle E-Business Suite file system or database. You can either allow adop to prompt for the information required to apply a patch, or enter the information without being prompted. Whichever method you choose, adop will then perform the tasks required to apply the patch:

Be aware of the following important points about adop:

adop Parameters

Run from the command line, adop accepts many parameters. Key characteristics include:

adop Parameters
Parameter [Applicable Phase] Purpose Values Comments
skipsyncerror [prepare phase] Enables the user to specify that any synchronization errors in the prepare phase are expected to be fixed automatically in the synchronization that takes place with subsequent patches. yes/no Default value is 'no'. Set the value to 'yes' in order to work around synchronization failures that may occur when patches that failed to apply correctly in a previous patching cycle are synchronized during the prepare phase.
sync_mode [prepare phase] In the prepare phase, specify method of file synchronization. patch/delta Default value is 'patch', where adop will synchronize the file systems by applying patches applied in the previous patching cycle to the patch file system.
As a faster alternative, you can specify the parameter/value pair sync_mode=delta to synchronize the file systems by running a user-specified third-party file synchronization (copy) utility.
The delta_sync_drv.txt file includes examples for setting up synchronization using rsync on UNIX or RoboCopy on Windows.
abandon [apply phase] Specify whether to abandon a previous failed attempt to apply a patch. Use this mode if you want to continue with the online patching actions even though a patch apply has failed.

Note: If there was an error in the previous run, and 'abandon' is not set to 'yes', the same parameters will be re-used that were used in the failed run.

yes/no Default value is 'no'. You cannot set the abandon parameter to 'yes' if the restart parameter is also set to 'yes'.
apply_mode [apply phase] Allows patches to be applied in downtime or hotpatch modes, by adding the relevant option to the adop phase=apply command.
  • online (default)

  • downtime

  • hotpatch

apply_mode=downtime applies the specified patches in downtime mode. When using this mode, you only run the apply phase.
apply_mode=hotpatch applies the specified patches in hotpatch mode. When using this mode, you only run the apply phase.

Important: You must only use the downtime and hotpatch modes when explicitly directed, for example by the patch readme.

flags [apply phase] Used to specify numerous options. To see a full list, enter:
$ adop -examples

The flags typically exist in pairs, such as autoskip/noautoskip
Using the example of autoskip/noautoskip, this pair of flags is used to specify whether adop should quit if there is a driver action failure when applying a patch. Using the example of autoskip/noautoskip: the default is noautoskip (quit processing). You can force processing to continue by specifying flags=autoskip either on the command line or in an input file.
merge [apply phase] Used to merge multiple patches. You can merge the unified driver files into a single driver file that is passed to adop. yes/no If merge is set to the default of 'no', then the patches are applied sequentially in the order listed. You can set the merge parameter to 'yes' in order to merge a base patch with any required corrective patches, so that the corrected merge patch is applied as a single operation.
options [apply phase] Used to specify various options during the apply phase. See the "adop Options" section later in this chapter. option-specific Refer to individual options.
restart [apply phase] Specify if the previous failed patch apply should be restarted. This allows you to retry applying the previous patch from where it left off. This is useful if you were able to correct the cause of the error and want patch application to continue executing. yes/no Default value is 'no'. You cannot set the restart parameter to 'yes' if the abandon parameter is also set to 'yes'.
cm_wait [cutover phase] Can be used when running cutover to specify how long to wait for existing concurrent processes to finish running before shutting down the Internal Concurrent Manager. User-specified integer representing number of minutes to wait.
By default, adop will wait indefinitely for in-progress concurrent requests to finish.
Oracle recommends the following settings:
  • On production systems, do not specify cm_wait, but monitor progress of concurrent tasks and take manual action on them if needed.

  • On non-production systems, specify cm_wait to limit the waiting time before cutover proceeds.

mtrestart [cutover phase] Used to specify whether to restart application tier services after cutover. yes/no Default value is 'yes'. If 'no' is specified, the services can later be restarted with the the adstrtal utility.
cleanup_mode [cleanup phase] Provides control over the extent of cleanup operations.
If no value is specified, cleanup is performed in standard mode, which does the same as quick mode but also drops obsolete code objects.
  • quick

  • full

cleanup_mode=quick performs the minimum necessary cleanup to complete the online patching cycle. Use this mode if you want to start a new online patching cycle as soon as possible.
cleanup_mode=full performs all possible cleanup tasks for maximum recovery of space from unused database editions, objects and columns. Full cleanup is required after aborting an online patching cycle.
phase Used to tell adop which phases it is to run.
  • prepare

  • apply

  • finalize

  • cutover

  • cleanup

  • fs_clone

  • abort

    actualize_all

You can use a comma-separated list to specify multiple phases. For example, 'phase=prepare,apply'

Note: Neither the abort nor fs_clone phases can be specified with any other phase.


If you supply a phase other than those listed, a usage statement will be printed and adop will exit.
loglevel Used to specify the amount of information logged and displayed as adop performs its operations.
  • STATEMENT

  • PROCEDURE

  • EVENT

  • WARNING

  • ERROR

  • UNEXPECTED

  • STATEMENT is only used for debugging.

  • PROCEDURE is only used for debugging high level procedures.

  • EVENT is used to display informational messages in normal processing. This is the default value.

  • WARNING is used to indicate an internal error that is handled by the system and does not affect processing.

  • ERROR indicates an action failed and will need to be reviewed by the user, but the system was able to continue processing.

  • UNEXPECTED indicates an unrecoverable error that halts processing and requires user intervention before processing can continue.

input_file Used to specify the name of the input_file supplied to adop. <path to input_file> Must be an absolute file path.
patches Used to specify the patches adop is to apply. User-specified.
Patches can be specified in two ways:
  • <Patch Number>:

    For example, to apply patch number 123456 you would specify 'patches=123456'.

  • <Patch Directory>: <Patch Driver File>:

    For example, to apply the Korean language translation for patch 123456 you would specify 'patches=123456_KO:u123456.drv'. Note that patch directory is relative to the $PATCH_TOP.

You can use a comma-separated list to specify that multiple patches are to be applied in the same patching operation. The numbered-only and containing-a-colon categories of patch can be mixed.
For example, you would specify patch number 111 and the Korean language version of patch 222 as 'patches=111,222_KO:u222.drv'.
hotpatch Specifies whether the patches are to be applied in hotpatch mode.

Note: This parameter has been superseded by the apply_mode parameter and is only retained for backward compatibility.

yes/no hotpatch=yes applies the specified patches to the run edition while this edition is in active use.

Important: You must only use hotpatch mode when explicitly directed, for example by the patch readme.


You cannot abort application of a patch applied in hotpatch mode.
prompt Specifies whether adop prompts the user whether to continue after warnings. yes/no Default is 'yes' (prompt the user). Set prompt=no to enable fully non-interactive mode, in which adop will continue past warning messages without user confirmation.
workers Used to specify the number of parallel workers to be employed. User-specified integer. If you omit the 'workers' argument, a suitable number of workers will be be chosen automatically.
If you specify more workers than the machine can handle, adop will exit with an error.
defaultsfile Used to specify the path to the custom adop defaults file. User-specified (but has a default value - see next column). Must be an absolute file path. Defaults to $APPL_TOP/admin/$TWO_TASK if not specified by user.
patchtop Used to specify the location where the patches are unloaded. User-specified (but has a default value - see next column). Must be an absolute file path. Defaults to $PATCH_TOP if not specified.
allowcoredump Used to specify that a core dump should be generated if adop crashes. yes/no Default value is 'no'. A value of 'yes' should be specified only if diagnostic information needs to be gathered.
analytics Used to generate reports that can be helpful in debugging certain types of issue. Available with apply, finalize, cutover, and cleanup adop phases. yes/no Default value is 'no'. A value of 'yes' should be specified only if reports specifically need to be generated. This is because of the extra processing overhead involved.

Online Help

To obtain help about the basics of adop operation, enter the command:

adop -help

The help usage statement will also appear if you supply an invalid parameter on the adop command line.

Optionally, you can also display examples of the various adop parameters by entering the command:

adop -examples

The Input File

adop also accepts parameters in an input file. From the command line, you specify an input file by using the parameter input_file=<myinput.txt>, where myinput.txt is the name of your input file.

Input File Parameters

Note: You should always provide the full path to the input file.

Any parameters can be specified in the input file. Parameters must appear in 'name=value' format, with one parameter per line. For example:

phase=apply
patches=123456
workers=8
autoskip=yes

Note: If you supply a parameter to the input file twice (for example, workers is defined on both lines 2 and lines 5 of your input file), the last definition (in this example, on line 5) will be used.

The Defaults File

Parameters can also be passed to adop into adop through a defaults file. From the command line, you can specify a defaults file by using the parameter defaultsfile=<mydefaults.txt>, where mydefaults.txt is the name of your file.

Your own defaults file will be checked the validity of its contents, and if issues are found an error will be raised. If you do not specify a custom defaults file, adop will use the one that is automatically generated by the system (using AutoConfig).

If adop is being run in hotpatch mode, your own defaults file should be located on the run file system, under $APPL_TOP/admin/$TWO_TASK. Otherwise, the defaults file should be in the same location, but on the patch file system.

Note: Instead of using your own defaults file, it is generally preferable to supply your own parameters via the command line or in an input file. Parameters supplied in either of these ways take precedence over parameters in the the defaults file.

Order of Parameters

If multiple different definitions are specified for a parameter, the following order of precedence is used.

  1. Command Line

  2. Input File

  3. Defaults File

Important: You should never need to edit the defaults file because you can always specify a parameter on the command line (highest precedence) or in the input file (second highest precedence).

Patch Log Files

It is advisable to review the relevant log files after any patching operation. The adop log files are located on the non-editioned file system (fs_ne) in a logical, hierarchical structure, where you drill down to the subdirectory that corresponds to the the action for which you wish to see the activities.

For example, if $NE_BASE (context variable s_ne_base) was /u01/R122_EBS/fs_ne, the top-level directory for the adop log files would be:

/u01/R122_EBS/fs_ne/EBSapps/log/adop

This location is referred to as the $AD_LOG_HOME.

Below this directory is a set of subdirectories, with a structure that depends on the operation.

Case 1: Log files for adop phases

The log directory structure is as follows:

$ADOP_LOG_HOME/<session_id>/<execution_id>/<phase>

The components of this structure are as follows:

So beneath an $ADOP_LOG_HOME you would see a session ID structure that looked something like this

$ADOP_LOG_HOME
 - 100
 - 101
 - 102
 - 155

In this example for patching cycle 155, there were three adop executions two on 27 July 2017 and one on 28 July 2017:

$ADOP_LOG_HOME
- 155
 - 20170727_140633
 - 20170727_154820
 - 20170728_125014

The subdirectory for the first of these executions would have a structure that looked like this:

-155
 - 20170727_140633
   adop.log
   - prepare$ cd 20170727_140633

Continuing this example, the prepare subdirectory will contain files and subdirectories for the adop command (adop prepare) whose running caused the directory to be created. Within this directory you will find further subdirectories that correspond to the the nodes on which the command was run. And within each of those subdirectories will be node-specific log files that you can examine for activities that were performed there.

Case 2: Log files for adop phases with validations

When validations are run as part of adop phase execution, the validation logs will appear in validate directories under the phase directories, with any node-specific directories under the validate directories:

$ADOP_LOG_HOME/<session_id>/<execution_id>/<phase>/validate
$ADOP_LOG_HOME/<session_id>/<execution_id>/<phase>/validate/<node>

Case 3: Log files for adop validations run as independent commands

When validations are run as standalone commands (adop -validate), the absence of a corresponding phase means that the validation logs are placed in validate directories immediately under the execution directories, with any node-specific directories under the validate directories:

$ADOP_LOG_HOME/<session_id>/<execution_id>/validate
$ADOP_LOG_HOME/<session_id>/<execution_id>/validate/<node>

Case 4: Log files for the adop -status command

The output of the adop -status command is directly related to the current adop session, so the output will be placed under the directory for the execution ID:

$ADOP_LOG_HOME/<session_id>/<execution_id>/adzdshowstatus.out

As well as adop log files, other AD log files are created for a variety of purposes: for example, to record all the actions associated with parallel workers. Like the adop log files, these worker log files are also written to the non-editioned file system.

Other AD log files include those shown in the following table:

Non-adop AD Log Files
Log File Used For
adrelink.log Relinking
adlibin.log Moving C object files into the C library of a product
adlibout.log Moving C object files out of the C library of a product
adworkxxx.log Database operations run in parallel
<language>_<filename>_ldt.log Seed data loader files

If adop does not perform an action, it does not generate the log file associated with that type of action.

Note: You can also review log files using the View Log Files feature of OAM Timing Reports. See: View Log Files.

Creation of JAR File List

In the apply phase of an online patching cycle, adop creates a file called jarlist.txt. This file is provided in case you wish to perform your own JAR file signing using a secure certificate. In such cases, you will need to specify the adop command line parameter option=nojarsigning in order to bypass the standard JAR file signing activity that will otherwise performed by AD.

The jarlist.txt file is placed in the same directory as the patch log file. The following example is for patch 13358502, which was applied during a patching session that had ID=14: $NE_BASE/EBSapps/log/adop/14/apply_20130515_125116/testenv_sys3220410/13358502/log/jarlist.txt.

If there is an existing jarlist.txt file, it will be renamed jarlist.bak (overwriting any previous jarlist.bak) and replaced by the newly-created jarlist.txt.

Sessions

The adop utility maintains a session for each online patching cycle. A new session is created when you run the prepare phase. Each session is given a numeric ID number. The session is used to maintain the state of the online patching cycle across the various adop phases and commands. You can only run one adop session at a time on a particular Oracle E-Business Suite system.

Patch Directory (Patchtop)

The directory where the patch files have been unzipped is referred to as the patchtop. The default patch top directory is $NE_BASE/EBSapps/patch, which is pointed to by the $PATCH_TOP environment variable.

If specifying your own choice of directory, you must supply the full path, and the operating system user that is running adop must have write permissions to that directory. Oracle recommends using the default $PATCH_TOP direcotory.

Note: On a shared file system, the patch only needs to be downloaded on the primary node. You only need to download to a secondary node if the file system is non-shared.

If you want to merge patches before applying them, you need to download and unzip all the individual patches in the same location as that of the merged driver file. For example, if you merge patches 111, 222, and 333 (using AD Merge Patch), and the merged patch driver file location is $PATCH_TOP/mergetest/mergetest.drv, you should then download and unzip the individual patches as $PATCH_TOP/patch/mergetest/111, $PATCH_TOP/mergetest/222, and $PATCH_TOP/mergetest/333.

Patch Driver File

The unified driver, named u<patchnum>.drv, contains the commands necessary to change files and database objects, and to generate new objects. It contains copy, database, and generate portions and performs the copy, database, and generate actions in the stated order. The adop utility runs the unified driver on all APPL_TOPs, but only performs the specific actions that are actually required for each APPL_TOP.

Copy Portion of a Unified Driver

When the copy portion of a unified driver runs, adop performs the following actions:

Database Portion of a Unified Driver

When the database portion of a driver runs, adop performs these actions:

Generate Portion of a Unified Driver

When the generate portion of a driver runs, adop performs these actions:

Number of Parallel Workers

By default, adop runs database updates and file generation commands in parallel using multiple workers. The default number of workers is computed based on the system hardware configuration, but the number can be specified explicitly using the 'workers' parameter. Tasks are assigned to workers, the workers run the tasks to completion, and adop assigns new tasks.

adop runs (adop) all database actions based on phase order, a grouping of actions in the database portion of the patch that minimizes dependencies. This order is not necessarily the order in which the commands are listed in the database portion of the patch driver.

Note: For more information, see Using Parallel Processing in the Maintenance section of this book.

Customized Files

adop reviews the AD_FILES table to determine if any customized files (Register Flagged Files) will be replaced by the patch. If so, it displays a message listing the customized files it will replace.

Note: For more information, see Customization Standards, Oracle E-Business Suite Developer's Guide, and Register Flagged Files.

NLS

If the patch you are applying has an NLS-related version, and if you are an NLS customer, adop prompts you about the NLS-related version of the patch before allowing you to continue.

Principles of Non-Interactive Patching

Non-interactive patching saves time by automating the patching process. It is used with all the major phases of adop, including the apply phase.

The adop utility runs non-interactively by default. You must specify all required parameters for each adop command, either on the command line or in an input file.

After the patching actions are complete, you perform any post-patching steps listed in the patch readme file.

Messages

adop generates several types of messages. Each message is recorded in a log file. See Log Files for a list and descriptions.

Informational Messages

Informational messages are written to the informational message file. This log file uses the same base file name as the main adop log file, but substitutes a .lgi extension for the .log extension. For example, if the adop log file is named u1234567.log, the adop informational log file is named u1234567.lgi.

For example, adop writes information pertaining to the files not updated because they are up-to-date in the informational log file.

File will not be copied to destination.

Version check:
/slot03/appmgr/prodappl/ad/12.2/xml/oam/patch/history/SearchFiles.uix
version is equal to or lower than
/slot03/appmgr/prodcomn/html/oam/patch/history/SearchFiles.uix.
File will not be copied to destination.

Version check:
/slot03/appmgr/prodappl/ad/12.2/xml/oam/patch/history/SearchFilesCriteriaAdvanced.uix
version is equal to or lower than

/slot03/appmgr/prodcomn/html/oam/patch/history/SearchFilesCriteriaAdvanced.uix

Error Messages

When adop is using parallel processing and an error occurs, the job fails. Review the main adop log file and the adworkxxx.log file to determine the source of the error, resolve the issues and continue. Restart adop using the adctrl command.

Note: See Monitoring and Controlling Parallel Processing, , for details on using the adctrl command.

If you cannot resolve the issue, you must:

If the message indicates that a worker has failed its job, you can fix the problem and restart the worker while the manager is running. Some failed jobs are deferred (not immediately reassigned) by the manager. These jobs do not cause the manager or other workers to stop.

See: Managing Worker Processes in this book.

Successful Completion Message

adop displays a success message when processing is complete. If you do not see a such a completion message, you should investigate and identify the reason.

Backup Directory

When adop runs, a backup directory is created in the directory where you unzip the patch. The old version of each file updated by the patch is copied into the backup directory. When applying large patches (such as release update packs, product family RUPs, and pre-upgrade patches), ensure there is enough disk space on the system where you unzip the patch, or the patching process may fail. We recommend having at least twice the amount of disk space as the unzipped patch file uses.

Tip: When there is no patching cycle in progress, you can if desired delete the files in the backup directory to free the space.

adop Patching Modes

The adop utility is normally used to apply patches in an online patching cycle. It can also be used:

Each of these is described further below.

Test Mode

In test mode, adop does not apply the patch. Instead, it lists each file it would have copied, relinked, executed, or generated, and shows exactly what actions it would have performed had it applied the patch. It also runs AutoConfig in test mode to determine any impending changes to the configuration files. This allows you to see the effects of a patch on your system before you apply it.

To run adop in test mode, add the apply=no parameter to the adop command you would use if you were actually going to apply the patch. In test mode, adop will go through the process of applying the patch but will not perform any of the following actions:

Downtime Mode

To optimize the process of upgrading to Oracle E-Business Suite Release 12.2, support is provided for the capability to apply Oracle E-Business Suite patches in downtime mode. When applying patches in this mode, adop will first confirm that the application tier services are down, and will then proceed to apply the patch to the run edition of the Oracle E-Business Suite database and file system. Downtime mode patching does not use an online patching cycle. The process of applying a patch in downtime mode completes more quickly than in online mode, but at the cost of increased system downtime.

To run adop in downtime mode, you use the following command line options. In this example, patch 123456 is applied in downtime mode:

$ adop phase=apply patches=123456 apply_mode=downtime

Important: Be aware that:

Preinstall Mode

Preinstall mode is generally used during the upgrade process to update AD utilities, apply pre-upgrade patches, or work around other patching issues. adop asks all startup questions except those relating to the database.

Important: Run adop in preinstall mode only if the patch readme instructs you to do so.

To run adop in preinstall mode, include preinstall=y on the adop command line. It performs the following actions:

Because adop does not read driver files in preinstall mode, it copies all product files in the patch to the APPL_TOP directory. Additionally, even if a file in the patch should be both in the APPL_TOP and in another directory (such as in $OA_HTML), adop copies the file only to the APPL_TOP.

In preinstall mode, adop validates codelevels against the files Preinstall_Codelevel_AD.txt and Preinstall_Codelevel_MP.txt. These files are located in the $APPL_TOP/admin directory, and contain codelevel information about AD and other products registered in the database tables.

Since no database connection is available in preinstall mode, adop tries to validate whether the current patch should be applied based on the codelevel information in these two files, as follows:

Note the following restrictions when applying a patch in preinstall mode:

adop Command Line Arguments

You can adjust the way adop operates by supplying arguments to the various parameters that adop recognizes. Arguments can be passed either directly on the command line or through an input file. adop is non-interactive (except for passwords), so all required arguments must be specified when entering an adop command.

An input file is specified as follows:

$ adop phase=apply input_file=<input_file.txt> 

Arguments are specified on the command line or input file in "name=value" format, where "name" is the adop parameter name and "value" is your specified value. Parameter names are specified in lower case, and parameter values should be assumed to be case-sensitive.

You can enter more than one 'parameter=value' argument on a single command line by separating them with a single space, as in the following example.

printdebug=y flags=hidepw

In some cases, you can include more than one value for a token. When doing so, you separate the values with commas and no spaces. For example:

flags=nohidepw,trace

is valid, but

flags=nohidepw, trace

is not valid.

adop Options

The "options" argument is used to pass options that control how the patch is applied. It takes the form of a comma-separated list. Enter a single option, or a comma-separated list of options such as adop options=nocopyportion,nogenerateportion.

Note: As with adop arguments, there must be no space after the comma.

adop Options
Option Description
actiondetails Purpose: Tells adop to print details of actions taken in a patching operation.
Default: actiondetails
Specify options=noactiondetails if you do not want the details to be printed.
Comments: It is generally preferable to accept the default, as the action details can be useful in understanding adop operations and diagnosing issues.
autoconfig Purpose: Tells adop to run AutoConfig automatically.
Default: autoconfig
Use options=noautoconfig if you are applying a number of patches in sequence and want to run AutoConfig once, after applying the last patch of the sequence.
Comments: The dual file system in Release 12.2 means that there is no need to shut down application tier services before running AutoConfig.
checkfile Purpose: Tells adop to either skip running EXEC, SQL, and EXECTIER commands if they are recorded as already run, or to record them as having run after running them.
Default: checkfile
Use options=nocheckfile to turn off the checkfile feature.
Comments: This option is currently not supported unless explicitly documented in the patch readme.
If you are reapplying a patch with options=nocheckfile and the patch contains a call for a seed table upgrade (AD_ZD_SEED.UPGRADE), you may receive the error message "ORA-20001: Cannot upgrade existing table from Patch Edition". You can safely ignore this message if the table already contains the column 'ZD_EDITION_NAME'.
compiledb Purpose: Tells adop to automatically compile invalid objects in the database after running actions normally found in the database portion of the driver.
Default: compiledb for standard patches. nocompiledb for standard patch translations, documentation patches, and documentation patch translations.
Use options=nocompiledb to save time when multiple non-merged patches are applied in the same patching operation.
Comments: Merging multiple patches and applying a single merged patch is usually a better strategy.
compilejsp Purpose: Tells adop whether to automatically compile out-of-date JSP files. JSP files are only compiled if the patch contains copy actions for at least one JSP file.
Default: compilejsp for standard patches. nocompilejsp for standard patch translations, documentation patches, and documentation patch translations.
Use options=nocompilejsp to save time when multiple non-merged patches are applied in a maintenance window.
Comments: Merging multiple patches and applying a single merged patch is usually a better strategy.
copyportion Purpose: Tells adop whether to run commands normally found in the copy portion of the driver.
Default: copyportion
Comments: Use options=nocopyportion to tell adop not to perform copy actions of the driver.
databaseportion Purpose: Tells adop whether to run commands normally found in the database portion of the driver.
Default: databaseportion
Comments: Use options=nodatabaseportion to tell adop not to perform database-related driver actions.
forceapply Purpose: Tells adop to reapply a patch that has already been applied.
Default: noforceapply
Comments: Use the nocheckfile option in conjunction with forceapply to rerun files which may already have been executed.
If you try to apply a patch that has already been applied and do not specify the forceapply parameter, adop will display an error like this:
 [WARNING] Skipping the application of patch
14125999_AR since it has been already applied
[WARNING]  Hint: Patches can be applied again by
specifying options=forceapply when invoking adop 
generateportion Purpose: Tells adop whether to run commands normally found in the generate portion of the driver.
Default: generateportion
Use options=nogenerateportion to tell adop not to perform generate actions of the driver.
integrity Purpose: Tells adop whether to verify that the version of each file referenced in a copy action matches the version present in the patch.
Default: nointegrity
Comments: Using options=nointegrity is safe and avoids some adop overhead.
parallel Purpose: Tells adop whether to run actions that update the database in parallel (such as SQL) and actions that generate files in parallel (such as genform).
Default: parallel
Comments: Oracle does not recommend changing the default, as Oracle E-Business Suite patches are fully tested using this option.
phtofile Purpose: Tells adop where to place patch history information after applying the patch.
Default: nophtofile
Use options=phtofile to tell adop to write patch history information to the patch information files in the file system ($APPL_TOP/admin/$TWO_TASK) instead of uploading it to the database.
Comments: Using phtofile allows you to defer the uploading of patch history information to the database until after the system downtime.
validate Purpose: Tells adop whether to connect to all registered Oracle E-Business Suite schemas at the start of the patch.
Default: novalidate
Use options=validate to validate password information for all Oracle E-Business Suite schemas.
Comments: Useful for finding problems with incorrectly registered Oracle E-Business Suite schemas or schemas with invalid passwords.

The adop Interface

The adop utility is run from the command line. It prompts for required passwords, but expects all other input parameters to be specified on the command line or in an input file.

Running adop

The following is a summary of the steps you use to run adop. For a complete procedural description of all the steps, see Creating Customized Instructions for Patching Using PAA.

Step 1: Set the environment

You must set the environment to apply the configuration parameters that define your system. This task is common to many AD utilities, and is performed using the following command:

$ . <EBS_ROOT>/EBSapps.env run

<EBS_ROOT> represents the Oracle E-Business Suite base install directory, such as /u01/oracle. There is no associated environment variable.

Note: The EBSapps.env file is provided by the AD-TXK release update packs.

Step 2: Unzip the patch

Download and unzip the patch into the patch top directory, which is identified by the $PATCH_TOP environment variable.

Step 3: Review the information in the readme file

In the directory where you unzipped the patch, you will find a README.txt file and a README.html file. Review either readme file for information about the patch and for instructions on using Oracle Patch Application Assistant (PAA) to generate customized instructions for your system.

Step 4: Run Oracle Patch Application Assistant

Run PAA (admsi.pl) to generate customized instructions for your system. Follow the steps in the customized instructions to start the patching process.

Step 5: Run adop

The customized instructions generated by PAA describe how to run adop using the adop command.

Note: You can add arguments on the command line to refine the way adop runs. See adop Modes and Command Line Arguments.

A simple example of the commands to execute a complete online patching cycle for patch 123456 is as follows:

$ . <EBS_ROOT>/EBSapps.env run
$ adop phase=prepare
$ adop phase=apply patches=123456
$ adop phase=finalize
$ adop phase=cutover
$ . <EBS_ROOT>/EBSapps.env run
$ adop phase=cleanup

Monitoring Status

You can obtain a brief report for the current patching session by running the command:

$ adop -status

This will display information that includes phases completed and the time taken. In the example below, the current patching session ID is 5:

Current Patching Session ID: 5
Node Name       Node Type       Phase       Status          Started          
              Finished                       Elapsed
 --------------- --------------- ----------- ---------------
 ------------------------------ ------------------------------ ------------
 patchtest1      master          PREPARE     COMPLETED       06-MAY-13
 11:31:38 -07:00      07-MAY-13 12:27:51 -07:00      0:56:13
                                 APPLY       COMPLETED       07-MAY-13
 04:19:17 -07:00      07-MAY-13 04:43:12 -07:00      0:23:55
                                 CUTOVER     COMPLETED       07-MAY-13
 05:54:03 -07:00      07-MAY-13 05:57:57 -07:00      0:03:54
                                 CLEANUP     COMPLETED       07-MAY-13
 09:14:33 -07:00      07-MAY-13 09:22:46 -07:00      0:08:13

The output is also recorded in a log or output file.

Two additional options with this command are as follows.

Aborting an Online Patching Cycle

If a patching cycle is failing and the issue cannot be resolved quickly, it is possible to abort the patching cycle and return to normal runtime operation. The patch edition will be dropped.

You can abandon a patching cycle (without applying any patches) by running the command:

$ adop phase=abort

Important: This abort command can only be used before successful completion of the cutover phase. After cutover, the system is running on the new edition, and abort is no longer possible for that patching cycle.

Aborting a patching cycle will drop the patch edition, but you must then run the cleanup and fs_clone phases before starting a new patching cycle. The cleanup must be a full cleanup.

For example:

$ adop phase=prepare
$ adop phase=apply patches=123456
[Patch application encounters problems and you want to abort]
$ adop phase=abort
$ adop phase=cleanup cleanup_mode=full
$ adop phase=fs_clone

Optionally, you can combine the abort and cleanup commands as follows:

$ $ adop phase=abort,cleanup cleanup_mode=full

Note: You cannot abort application of a patch applied in hotpatch mode or downtime mode.

Restarting adop

If you have shut down the workers, or if adop quits while performing processing actions, it saves all the actions completed up to that point in restart files. Investigate and resolve the problem that caused the failure, then restart adop. After you restart adop, it will ask if you want to continue with the previous session (at the point where the processing stopped), or start a new session.

Note: A difference from adpatch is that adop restart behavior is controlled by the abandon=yes/no and restart=yes/no options in the input_file that can be passed to the adop command in the apply phase.

You have several options when restarting (or abandoning) application of individual patches, as follows.

See: Restarting a Utility in this book.

AD Merge Patch

Important: The functionality of AD Merge Patch is now included in the adop tool (described in the next section). If you want adop to merge patches, you must explicitly specify merge=yes when invoking the tool. AD Merge Patch is still supported, however, and its usage is described in this section.

When a series of patches are applied individually, some patching actions (such as linking executables) may need to be performed repeatedly, which can take a lot of time. Also, in some special cases a corrective patch must be merged with a base patch in order to have the desired effect. In both these scenarios it is beneficial to merge multiple patches into a single merged patch, and then apply the merged patch.

An alternative is to use AD Merge Patch. This utility merges multiple patches into a single patch, allowing you to reduce patch application time by eliminating the tasks you would otherwise have to have performed for each individual patch.

When merging compatible patches, AD Merge Patch bases its actions on metadata. It removes duplicate driver lines from the database portions of the driver. When merging two or more patches that have manual steps, the steps and readme files of both patches are also merged.

Source and Destination Directories

You extract the patches to be merged from the source directory. The destination directory is where the merged patch is created. AD Merge Patch reads the patch driver files for each patch in the source directory and merges them to create patch driver files in the destination directory. If a file exists in more than one source patch, only the highest revision of the file is copied to the destination directory.

The source and destination directories should be created under the same parent directory. For example, if the parent directory is named <top>, both the source and destination directories should be subdirectories of <top>. The source and the destination directories cannot be child or parent directories of each other.

Directory Structure for Source and Destination Directories - Basic Example

the picture is described in the document text

The source directory must have all patches to be merged as immediate child directories. The patch directories cannot be in a lower directory. For example, a directory structure for merging four patches would look like this:

Directory Structure for Source and Destination Directories - Merging Four Patches

the picture is described in the document text

Naming the Merged Patch

You should indicate the name of the merged patch on the command line, using the -merge_name option to provide a meaningful name. If you do not use this option, the patch will be given the default name of merged.

Merging Zipped Patches

The manifest file is a text file in which you document the location and names of the patch zip files. The contents of a manifest file resemble the following:

/d01/prodappl/patches/p3903945_12_GENERIC.zip
/d01/prodappl/patches/p3892799_12_GENERIC.zip
/d01/prodappl/patches/p3874740_12_LINUX.zip

You can use the -manifest option to create a manifest file. AD Merge Patch references this file, and unzips the patches listed. It copies the unzipped files into the source directory and includes them, along with any other files in the source directory, in the merged patch.

The AD Merge Patch Interface

You run AD Merge Patch and supply the information it needs from the command line. There are no menus or input screens.

Running AD Merge Patch

AD Merge Patch is located in the AD_TOP/bin directory. However, you run it from the parent directory (<top>) of the source directory. The following is a summary of the steps you use to run AD Merge Patch.

Step 1: Set the environment

You must set the environment to indicate the location of the configuration parameters that define your system. This task is common to many AD utilities.

Step 2: Run AD Merge Patch

From the parent directory (<top>), run AD Merge patch using the admrgpch command.

Using AD Merge Patch With adop

You can use AD Merge Patch to merge patches, and then apply them with adop. Refer to the next section for details of the relevant adop commands and options.

In this example, patches 111 and 222 are to be applied after merging. The two patches are staged in <FS_NE>/patch.

$ admrgpch -s <source_directory> -d <destination_directory>
$ pwd
/u01/R122_EBS/fs_ne/EBSapps/patch
$ admrgpch -s /u01/R122_EBS/fs_ne/EBSapps/patch \
-d /u01/R122_EBS/fs_ne/EBSapps/patch/test                   

Now patches 111 and 222 have been merged, and the merged patch's patchtop is /u01/R122_EBS/fs_ne/EBSapps/patch/test:

$ pwd
/u01/R122_EBS/fs_ne/EBSapps/patch/test
$ ls
fnd  u_merged.drv

You can then apply this patch:

$ adop phase=apply

During the next prepare phase, the synchronization steps expect the individual patches (111, 222) to be present under the merged patch's patchtop; in this example, /u01/R122_EBS/fs_ne/EBSapps/patch/test. You therefore need to move 111 and 222 to under /u01/R122_EBS/fs_ne/EBSapps/patch/test before running the next prepare:

$ pwd
$ /u01/R122_EBS/fs_ne/EBSapps/patch
$ mv 111 /u01/R122_EBS/fs_ne/EBSapps/patch/test
$ mv 222 /u01/R122_EBS/fs_ne/EBSapps/patch/test
$ cd /u01/R122_EBS/fs_ne/EBSapps/patch/test
$ ls
111  222  fnd  u_merged.drv

Oracle Patch Application Assistant

For patches that have manual steps, the patch readme file instructs you to use Oracle Patch Application Assistant (PAA) by running the admsi.pl script. For merged patches, PAA automatically merges the contents of the individual patch readme files.

The Oracle Patch Application Assistant Interface

The Patch Application Assistant is started from the command line, and collects your input in a graphical user interface.

Running Oracle Patch Application Assistant

The following is a summary of the steps you use to run Patch Application Assistant. For a complete description of all the steps, see Creating Customized Instructions for Patching Using PAA.

Step 1: Set the environment

You must set the environment to apply the configuration parameters that define your system. This task is common to many AD utilities.

Step 2: Unzip the patch

Download the patch into the patch top directory ($PATCH_TOP) and unzip it.

Step 3: Review the information in the readme file

In the directory where you unzipped the patch, you will find a README.txt file and a README.html file. Review either of these files for information about the patch and for instructions on using Oracle Patch Application Assistant to generate customized instructions for your system.

Step 4: Run Oracle Patch Application Assistant

Run PAA (admsi.pl) to generate customized instructions for your system. Follow the steps in the customized instructions to complete the patching process.