Linux Oracle 10.2 RAC打补丁patch-8833280的时候,按照README.html文件在执行补丁适用性检查的时候,报告“PrereqSession failed: Invalid patch location”错误,详细错误信息如下:
[oracle@rac1 patch]$ unzip p8833280_10204_Linux-x86.zip [oracle@rac1 patch]$ opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./8833280 Invoking OPatch 10.2.0.4.2 Oracle Interim Patch Installer version 10.2.0.4.2 Copyright (c) 2007, Oracle Corporation. All rights reserved. PREREQ session Oracle Home : /u01/app/oracle/product/10.2.0/db_1 Central Inventory : /u01/app/oracle/oraInventory from : /etc/oraInst.loc OPatch version : 10.2.0.4.2 OUI version : 10.2.0.4.0 OUI location : /u01/app/oracle/product/10.2.0/db_1/oui Log file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2009-12-04_16-43-11PM.log Invoking prereq "checkconflictagainstohwithdetail" The location "./8833280/README.html" is not a directory or a valid patch zip file. Prereq "checkConflictAgainstOHWithDetail" not executed PrereqSession failed: Invalid patch location. OPatch failed with error code 73 |
经过检查,opatch命令参数,发现是readme文件上的命令错误,应该将参数-phBaseDir修改为 -ph,修改后执行成功,过程如下:
[oracle@rac1 patch]$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./8833280 Invoking OPatch 10.2.0.4.2 Oracle Interim Patch Installer version 10.2.0.4.2 Copyright (c) 2007, Oracle Corporation. All rights reserved. PREREQ session Oracle Home : /u01/app/oracle/product/10.2.0/db_1 Central Inventory : /u01/app/oracle/oraInventory from : /etc/oraInst.loc OPatch version : 10.2.0.4.2 OUI version : 10.2.0.4.0 OUI location : /u01/app/oracle/product/10.2.0/db_1/oui Log file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2009-12-04_16-43-18PM.log Invoking prereq "checkconflictagainstohwithdetail" Prereq "checkConflictAgainstOHWithDetail" passed. OPatch succeeded. [oracle@rac1 patch]$ |
使用opatch命令的在线帮助,发现phBaseDir和ph参数的区别如下:
[oracle@oracle opatch]$ opatch prereq --help Invoking OPatch 10.2.0.4.2 Oracle Interim Patch Installer version 10.2.0.4.2 Copyright (c) 2009, Oracle Corporation. All rights reserved. DESCRIPTION This operation runs the prerequisite checks on an ORACLE_HOME. SYNTAX opatch prereq [-invPtrLoc ] [-jdk ] [-jre ] [-oh ] [-property_file ] [-local_node ] [-remote_nodes ] [-ph ] [-phBaseDir ] [-phBaseFile ] [-id ] ...... [oracle@oracle opatch]$ |
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22049049/viewspace-1029400/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22049049/viewspace-1029400/