Oracle OPatch 执行 返回 This command doesn't support System Patch. 解决方法
作者:
dave
执行Oracle 19.6 的RU 升级,按官方文档的Readme,进行空间检查操作。
readme 文档给的步骤:
1.创建/tmp/patch_list_gihome.txt 文件,并添加如下内容:
[grid@www.cndba.cn ~]$ cat /tmp/patch_list_gihome.txt
/u01/software/30501910/30557433
/u01/software/30501910/30489227
/u01/software/30501910/30489632
/u01/software/30501910/
/u01/software/30501910/30655595
[grid@www.cndba.cn ~]$
2.运行opatch命令检查GI HOME下是否有足够的空间:
[root@www.cndba.cn software]# chown grid:oinstall /u01/software/30501910 -R
[grid@www.cndba.cn ~]$ $ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_gihome.txt
Oracle Interim Patch Installer version 12.2.0.1.17
Copyright (c) 2020, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /u01/app/19.3.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/19.3.0/grid/oraInst.loc
OPatch version : 12.2.0.1.17
OUI version : 12.2.0.7.0
Log file location : /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2020-03-12_20-54-32PM_1.log
This command doesn't support System Patch.
OPatch failed with error code 21
[grid@www.cndba.cn ~]$ c
这里返回了:This command doesn’t support System Patch. 的错误,上MOS搜了一下,这个错误是目录不对。
Opatch napply returns ‘This command doesn’t support System Patch’ (Doc ID 2011660.1)
将patch文件修改成如下:
[grid@www.cndba.cn ~]$ cat /tmp/patch_list_gihome.txt
/u01/software/30501910/30557433
/u01/software/30501910/30489227
/u01/software/30501910/30489632
/u01/software/30501910/30655595
[grid@www.cndba.cn ~]$
因为之前配置文件中的/u01/software/30501910 是上级的SYSTEM Patch, 所以导致这里报错。 删除该行内容后,执行成功:
[grid@www.cndba.cn ~]$ $ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_gihome.txt
Oracle Interim Patch Installer version 12.2.0.1.17
Copyright (c) 2020, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /u01/app/19.3.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/19.3.0/grid/oraInst.loc
OPatch version : 12.2.0.1.17
OUI version : 12.2.0.7.0
Log file location : /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2020-03-12_21-54-25PM_1.log
Invoking prereq "checksystemspace"
Prereq "checkSystemSpace" passed.
OPatch succeeded.
[grid@www.cndba.cn ~]$
版权声明:本文为博主原创文章,未经博主允许不得转载。