测试环境补丁安装时报错,追踪补丁日志,得到
does not exists or is not readable
发现是补丁文件的权限是root,root 修改权限后,重新打补丁OK
[root@rac1 software]# /picclife/app/11.2.0/grid/OPatch/opatch auto /picclife/software/22191577 Executing /picclife/app/11.2.0/grid/perl/bin/perl /picclife/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /picclife/software -patchn 22191577 -paramfile /picclife/app/11.2.0/grid/crs/install/crsconfig_params This is the main log file: /picclife/app/11.2.0/grid/cfgtoollogs/opatchauto2020-03-11_16-10-07.log This file will show your detected configuration and all the steps that opatchauto attempted to do on your system: /picclife/app/11.2.0/grid/cfgtoollogs/opatchauto2020-03-11_16-10-07.report.log 2020-03-11 16:10:07: Starting Clusterware Patch Setup Using configuration parameter file: /picclife/app/11.2.0/grid/crs/install/crsconfig_params Stopping RAC /picclife/app/oracle/product/11.2.0/db_1 ... Stopped RAC /picclife/app/oracle/product/11.2.0/db_1 successfully patch /picclife/software/22191577/21948347 apply failed for home /picclife/app/oracle/product/11.2.0/db_1 Starting RAC /picclife/app/oracle/product/11.2.0/db_1 ... Started RAC /picclife/app/oracle/product/11.2.0/db_1 successfully opatch auto succeeded. # vi /picclife/app/11.2.0/grid/cfgtoollogs/opatchauto2020-03-11_16-10-07.log Patch 21948347: Copy Action: Source File "/picclife/software/22191577/21948347/21948347/files/sysman/config/emd.properties.template" does not exists or is not readable 'oracle.sysman.agent, 10.2.0.4.5': Cannot copy file from 'emd.properties.template' to '/picclife/app/oracle/product/11.2.0/db_1/sysman/config/emd.properties.template' UtilSession failed: Prerequisite check "CheckApplicable" failed. Log file location: /picclife/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2020-03-11_16-11-06PM_1.log OPatch failed with error code 73 [root@rac1 software]# cd /picclife/app/oracle/product/11.2.0/db_1/sysman/config/ [root@rac1 config]# ls -lrt emd.properties.template -rw-r--r-- 1 oracle oinstall 27839 May 18 2010 emd.properties.template [root@rac1 config]# ls -lrt /picclife/software/22191577/21948347/21948347/files/sysman/config/emd.properties.template -rwxrwx--- 1 root root 28119 Dec 14 2015 /picclife/software/22191577/21948347/21948347/files/sysman/config/emd.properties.template 修改权限! # chown -R grid.oinstall 22191577/ # chmod -R 777 22191577/ 再次补丁安装