12c 新特性 – OPatch Automation Tool – opatchauto

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:620

[color=rgb(85,85,85)]从12c开始,在集群GRID/RAC环境下,通过root用户使用opatchauto命令安装patch
(注:11.2 GRID通过opatch auto)。
[color=rgb(85,85,85)]opatchauto命令详细参数:

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

Usage: opatchauto [ -help ] [ command ]
command := apply
resume
rollback
version
:= -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.

查看 apply 选项的详细输出

$ ./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
/OPatch/opatchauto apply
[-analyze]
[-database
]
[-generateSteps]
[-invPtrLoc
]
[-jre ]
[-norestart ]
[-nonrolling ]
[-ocmrf ]
[-oh
]
[ ]
其中"-analyze"选项可以模拟OPatchauto apply,提前检查所有检查项目,但是运行"-analyze"选项不会真正改变系统。

在安装patch之前请下载最新的OPatch包:patch 6880880 ,以避免一些低版本OPatch包中的已知问题。

opatchauto 安装GI PSU 具体命令:

1. 同时对GI home 和 all Oracle RAC database homes 打psu:
# opatchauto apply /20996835 -ocmrf
2. 只单独对GI home 打psu:
# opatchauto apply /20996835 -oh -ocmrf
3.只单独对RAC database homes 打psu:
# opatchauto apply /20996835 -oh , -ocmrf
[color=rgb(85,85,85)]参考文档:
https://docs.oracle.com/cd/E24628_01/doc.121/e39376/opatchauto_commands.htm#OPTCH586]https://docs.oracle.com/cd/E2462 ... mmands.htm#OPTCH586
https://docs.oracle.com/cd/E2462 ... tching.htm#OPTCH149]https://docs.oracle.com/cd/E2462 ... tching.htm#OPTCH149

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】