ITPub博客

首页 > 数据库 > Oracle > psu遇到The opatch minimum version

psu遇到The opatch minimum version

原创 Oracle 作者:zhangsharp20 时间:2017-05-05 14:13:36 0 删除 编辑
现象:
[root@ora1 OPatch]# ./opatch auto /software/psu/21523375/ -ocmrf /software/ocm.rsp 
Executing /u01/app/11.2.0/grid/perl/bin/perl ./crs/patch11203.pl -patchdir /software/psu -patchn 21523375 -ocmrf /software/ocm.rsp -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params


This is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2017-03-20_20-37-00.log


This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/11.2.0/grid/cfgtoollogs/opatchauto2017-03-20_20-37-00.report.log


2017-03-20 20:37:00: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
The opatch minimum version  check for patch /software/psu/21523375/21352635 failed  for /u01/app/oracle/product/11.2.0/dbhome_1
The opatch minimum version  check for patch /software/psu/21523375/21352649/custom/server/21352649 failed  for /u01/app/oracle/product/11.2.0/dbhome_1
Opatch version check failed for oracle home  /u01/app/oracle/product/11.2.0/dbhome_1
The opatch minimum version  check for patch /software/psu/21523375/21352635 failed  for /u01/app/11.2.0/grid
The opatch minimum version  check for patch /software/psu/21523375/21352649 failed  for /u01/app/11.2.0/grid
The opatch minimum version  check for patch /software/psu/21523375/21352642 failed  for /u01/app/11.2.0/grid
Opatch version check failed for oracle home  /u01/app/11.2.0/grid
Opatch version  check failed
ERROR: update the opatch version for the failed homes and retry


分析:查看/u01/app/11.2.0/grid/cfgtoollogs/opatchauto2017-03-20_20-37-00.log和/u01/app/11.2.0/grid/cfgtoollogs/opatchauto2017-03-20_20-37-00.report.log



2017-03-20 20:37:19: Running as user grid: /u01/app/11.2.0/grid/OPatch/opatch util checkMinimumOPatchVersion -ph /software/psu/21523375/21352649 -version 11.2.0.3.15 -oh /u01/app/11.2.0/grid
2017-03-20 20:37:19: s_run_as_user2: Running /bin/su grid -c ' /u01/app/11.2.0/grid/OPatch/opatch util checkMinimumOPatchVersion -ph /software/psu/21523375/21352649 -version 11.2.0.3.15 -oh /u01/app/11.2.0/grid '
2017-03-20 20:37:20: Removing file /tmp/fileCabGsg
2017-03-20 20:37:20: Successfully removed file: /tmp/fileCabGsg
2017-03-20 20:37:20: /bin/su exited with rc=73


2017-03-20 20:37:20: The opatch minimum version  check for patch /software/psu/21523375/21352649 failed  for /u01/app/11.2.0/grid
2017-03-20 20:37:20: The opatch version check failed with following error
2017-03-20 20:37:20: Oracle Interim Patch Installer version 11.2.0.3.15
 Copyright (c) 2017, Oracle Corporation.  All rights reserved.
 
可见在用grid执行命令时/u01/app/11.2.0/grid没有权限访问


查看/u01/app/11.2.0/grid/cfgtoollogs/opatchauto2017-03-20_20-37-00.report.log发现

[root@ora1 11.2.0]# cat /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2017-03-20_20-37-00.report.log
***********  Configuration Data  ***********
* It shows only those targets that will be patched in this session *




crs_home=/u01/app/11.2.0/grid      owner=grid      opatch_ver=11.2.0.3.15
rac_home=/u01/app/oracle/product/11.2.0/dbhome_1      owner=oracle      opatch_ver=11.2.0.3.4


*********** Steps to be executed as owner unless specified as root ***********

/u01/app/11.2.0/grid属主应该属于grid

解决方案:修改/u01/app/11.2.0/grid属主为grid:oinstall即可


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29802484/viewspace-2138534/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-08-12

  • 博文量
    382
  • 访问量
    801421