7 SPB usage Instructions
To run the SPBAT utility, navigate to the
IDM_SPB_12.2.1.4_<VERSION>/tools/spbat/generic/SPBAT/
directory.
The SPBAT utility usage and execution steps are as follows:
-
To get usage details on the command line, enter:
[Unix] ./spbat.sh[Windows] spbat.bat -
To obtain SPBAT utility version, enter:
./spbat.sh -version -
To apply the patches using SPBAT utility, enter:
[Unix] ./spbat.sh -type <install_type> -phase <phase> -mw_home <mw_home> -spb_download_dir <spb_download_dir> -log_dir <log_dir>[Windows] spbat.bat -type <install_type> -phase <phase> -mw_home <mw_home> -spb_download_dir <spb_download_dir> -log_dir <log_dir>Here: -install_type:The install type or IDM component, such as oam/oig/oud/oid.-phase:The various phases of applying the patch, such as PreStop/Downtime/PostStart.-mw_home:The path to Oracle Home directory. -spb_download_dir:The path to IDM_SPB_12.2.1.4_<VERSION> stage location directory. -log_dir (optional):The path to log_dirdirectory, this is where you want logs to go on your file system. The default directory is created underIDM_SPB_<VERSION>/tools/spbat/generic/SPBAT/logslocation, or you can set your own location which exists and has "write" access.-verbose (optional):To be set to "true" or "false" value. This is to display additional information on the default output stream (STDOUT). -force (optional and applicable for PreStop phase):To be set to "true" or "false" value. When set to "true", it forces performing all the validations. -
To know the status of SPBAT anytime once the patching has started, enter:
[Unix] ./spbat.sh -status report -type <install_type> -mw_home <mw_home> -log_dir <log_dir>[Windows] spbat.bat -status report -type <install_type> -mw_home <mw_home> -log_dir <log_dir>Here: -report:is a constant implying status report. -install_type:refers to install type, such as oam/oig/oud/oid. -mw_home:is the path to Oracle Home directory. -log_dir (optional):The path to log_dirdirectory, this is where you want logs to go on your file system. The default directory is created underIDM_SPB_<VERSION>/tools/spbat/generic/SPBAT/logslocation, or you can set your own location which exists and has "write" access.
Important Note for Windows users: Please open the Command Prompt as Administrator and execute the spbat.bat script for patching.