Sunday, May 20, 2012

Ho to Create adpatch defaultsfile :

How to apply patches in future ?

adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/defaults.txt

Now any future patches you apply non interactive using defaults file like

adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/defaults.txt logfile=6241631.log patchtop=/nfs/patches/6241631 driver=u6241631.drv interactive=no


adpatch Non-Interactive mode
               [defaultsfile=<$APPL_TOP/admin/SID/defaultsfile>]
               [logfile=<logfile>][interactive=y|n][workers=<workers>]
               [patchtop=<patchtop>][driver=<driver_file>][restart=y|n]
               [abandon=y|n][wait_on_failed_job=y|n][stdin=y|n]
               [maxworkers=<maxworkers>]




Note:

help=y      - Prints help information about adpatch options.
* preinstall  - To run adpatch in Pre-Install Mode.   Default - No.

* apply       - To run adpatch in Test Mode.          Default - Yes.

* uploadph    - To upload the patch history from the filesystem to the
                database and exit. This feature can be used when the system
                is not in maintenance mode.    Default - No.

* interactive - Invokes adpatch in Non-Interactive mode when
               "interactive=no" is specified.       Default - Yes.
Following are usually specified in Non-Interactive Mode, however not all
  are compulsory. Some are also valid for interactive mode.

    * defaultsfile         - Defaults file name. Default - none. No default file read or written.
    * stdin            - If "stdin=y" then password will be prompted.   Default - No.
    * logfile          - Adpatch log file name. Default - none. Adpatch prompts for this value.
    * workers       - Specifies the number of workers to run. Default - none. Adpatch prompts for this value.
    * maxworkers           - Specifies the maximum number of workers allowed to run.
                             Default - computed dynamically based on database parameters.
    * patchtop             - Top-level directory for the current patch.
                             Default - none. Adpatch prompts for this value.
    * driver               - Name of the patch driver file.
                             Default - none. Adpatch prompts for this value.
    * backup           - Absolute Path for backup. Default - patchtop.
    * restart            To restart an existing session.   Default - none. Adpatch prompts for this value.
    * abandon         To abandon the previous failed session.   Default - No.
    * wait_on_failed_job   - To prevent adpatch from exiting, when all
                             workers have failed in Non-Interactive Mode.  Default - No.

adpatch help=y
options = Generic options passed to adpatch.
checkfile,compiledb,compilejsp,copyportion,databaseportion,generateportion,integrity,parallel,prereq,validate,hotpatch & maintenancemode 


No comments:

Post a Comment