Parameter parsing of opatch command
[oracle@slient ~] $opatch
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation. All rights reserved.
Syntax Error... No command specified.
Usage: opatch [- help] [- report] [command]
Command: = apply
Lsinventory
Lspatches
Napply
Nrollback
Rollback
Query
Version
Prereq
Util
: =-help Displays the help message for the command.
-report Print the actions without executing.
Example:
'opatch-help'
'opatch-help-fmw'
'opatch auto-help'
'opatch apply-help'
'opatch lsinventory-help'
'opatch lspatches-help'
'opatch napply-help'
'opatch nrollback-help'
'opatch rollback-help'
'opatch prereq-help'
'opatch util-help'
OPatch failed with error code 14
[oracle@slient ~] $
[oracle@slient ~] $opatch auto-help
Usage:
:
: opatch auto-h # to see this message
:
: This command must be run as root user and needs Opatch version
: 10.2.0.4.7 or above.
: Case 1-On each node of the CRS cluster in case of Non Shared CRS Home.
: Case 2-On any one node of the CRS cluster is case of Shared CRS home.
:
:
: PARAMETERS
:
: Patch Location
: Path to the location for the patch. If the patch
: location is not specified, then the current directory
: is taken as the patch location
: OPTIONS
:
:-rollback The patch will be rolled back, not applied
:
:
:-oh comma seperated list of Oracle homes to patch
: The default is all applicable Oracle Homes.
: use this option to patch RDBMS homes where
: no database is registered.
:
:-och Path of Oracle Clusterware home.
: use this option to patch only clusterware home
: with stack down.Do not use this option with CRS
: stack up. This only patches the Clusterware home
:
:
: Suggested mode of operation:
:
: # 1. Apply the patch with the unzipped patch location
: This applies the patch to all applicable homes on the machine
:
: opatch auto
:
: # 2. Rollback the patch.
: This rolls back the patch from all the applicable homes on the machine
:
: opatch auto-rollback
:
: # 3. Apply the patch with-oh option
: This option allows to apply patch on selective list of oracle homes
:
: opatch auto-oh / ora/oh2,/ora/oh3,/ora/oh4
:
: # 4. Apply the patch with-och option
: This option is used to only patch the CRS home when
: Clusterware stack is down.
:
: opatch auto-och / ora/ora_crs_home
:
[oracle@slient ~] $
[oracle@slient ~] $opatch apply-help
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation. All rights reserved.
DESCRIPTION
This operation applies an interim patch to an ORACLE_HOME from
The current directory. The patch location can specified using
The parameter patch_location.
SYNTAX
Opatch apply [- connectString]
[- delay] [- force] [- force_conflict]
[- init [- opatch_init_end]]
[- invPtrLoc]
[- jre] [- local] [- local_node]
[- minimize_downtime] [- no_bug_superset] [- no_inventory]
[- no_relink] [- no_sysmod] [- ocmrf]
[- oh]
[- post [- opatch_post_end]]
[- pre [- opatch_pre_end]]
[- profile_mask]
[- property_file]
[- ptlConnect]
[- ptlPassword]
[- ptlSchema]
[- remote_nodes]
[- retry