Focus On Oracle

Installing, Backup & Recovery, Performance Tuning,
Troubleshooting, Upgrading, Patching

Oracle Engineered System


当前位置: 首页 » 技术文章 » Oracle 12c+

12c新特性-OPatch Automation Tool(opatchauto)

集群GRID/RAC环境下,从12c开始我们可以通过root用户使用opatchauto命令安装patch。

opatchauto参数:

$ cd $ORACLE_HOME/OPatch
$ opatchauto -help

OPatch Automation Tool
Copyright (c) 2015, Oracle
Corporation. All rights reserved.

Usage: opatchauto [ -help ] [ command ]
command := apply
resume
rollback
version
<global_arguments> := -help Displays the help message for the
command.
example:
'opatchauto -help'
'opatchauto -h'
'opatchauto apply -help'
'opatchauto resume -help'
'opatchauto rollback -help'
'opatchauto version -help'

opatchauto succeeded.

$ opatchauto apply -help
OPatch Automation Tool
Copyright (c) 2015, Oracle
Corporation. All rights reserved.

DESCRIPTION
Apply a System Patch to Oracle Home. User specified the patch
location or the current directory will be taken as the patch location.
opatchauto must run from the GI Home as root user.
SYNTAX
<GI_HOME>/OPatch/opatchauto apply
[-analyze]
[-database
<database names> ]
[-generateSteps]
[-invPtrLoc
<Path to oraInst.loc> ]
[-jre <LOC> ]
[-norestart ]
[-nonrolling ]
[-ocmrf <OCM
response file location> ]
[-oh
<OH_LIST> ]
[ <Patch
Location> ]


在安装patch之前请下载最新的OPatch包:patch6880880 ,以避免一些低版本OPatch包中的已知问题。
其中"-analyze"选项可以模拟OPatchauto apply,提前检查所有检查项目,不会真正改变系统。

opatchauto 安装GI PSU 具体命令:

1. 同时对GI home 和 all Oracle  RAC database homes 打psu:
# opatchauto apply  <UNZIPPED_PATCH_LOCATION> -ocmrf<ocm response file>


2. 只单独对GI home 打psu:
# opatchauto apply  <UNZIPPED_PATCH_LOCATION>  -oh<GI_HOME> -ocmrf <ocm response file>


3.只单独对RAC database  homes 打psu:
# opatchauto apply  <UNZIPPED_PATCH_LOCATION>  -oh <oracle_home1_path>,<oracle_home2_path> -ocmrf <ocmresponse  file>


参考文档:
https://docs.oracle.com/cd/E24628_01/doc.121/e39376/opatchauto_commands.htm#OPTCH586
https://docs.oracle.com/cd/E24628_01/doc.121/e39376/configuration_patching.htm#OPTCH149


关键词:12c patch 

相关文章

关于max_string_size
在Oracle数据库19c中使用JSON
保障业务连续性的神器
Oracle事务卫士(Transaction Guard)和应用连续性(Application Continuity)
容器数据库(CDB)和可插拔数据库(PDB)概述
How to generate AWR on PDB and ADG(12.2 afterwards)
在12c上使用wm_concat
Exadata with database 12.2
如何在oracle 12c中正确的应用补丁?
在OEL6.8上安装12.2 RAC
Oracle Database 12.2 Hands-On Lab
How to create single physical standby for RAC
Top