'oracle.crs, 11.2.0.4.0': Cannot copy file from 'act_listener.pl' to '/u01/app/grid/product/11.2.0/grid/crs/demo/coldfailover/act_listener.pl'
Copy Action: Source File "/upload/gidir/20485808/20420937/files/crs/demo/coldfailover/act_resgroup.pl" does not exists or is not readable
'oracle.crs, 11.2.0.4.0': Cannot copy file from 'act_resgroup.pl' to '/u01/app/grid/product/11.2.0/grid/crs/demo/coldfailover/act_resgroup.pl'
Copy Action: Source File "/upload/gidir/20485808/20420937/files/crs/demo/demoActionScript" does not exists or is not readable
'oracle.crs, 11.2.0.4.0': Cannot copy file from 'demoActionScript' to '/u01/app/grid/product/11.2.0/grid/crs/demo/demoActionScript'
onewaycopyAction : Source File "/upload/gidir/20485808/20420937/files/crs/install/tfa_setup.sh" does not exists or is not readable
'oracle.crs, 11.2.0.4.0': Cannot copy file from 'tfa_setup.sh' to '/u01/app/grid/product/11.2.0/grid/crs/install/tfa_setup.sh'
Copy Action: Directory is not writeable: "/u01/app/grid/product/11.2.0/grid"
'oracle.crs, 11.2.0.4.0': Cannot copy file from 'libsrvm11.so' to '/u01/app/grid/product/11.2.0/grid/oui/lib/linux/libsrvm11.so'
OPatch failed with error code 1
错误原因均为不能拷贝。查看其中一个文件存在情况。
[grid@NCR-Standby-Asm install]$ ls -l | grep tfa
-rwxr-x--- 1 root root 14530337 Mar 27 23:20 tfa_setup.sh
笔者猜测,系列文件的所有者为root,但是执行过程中却自动切换到grid用户。也许是文件权限出现问题。这种情况下,降低权限也是是不错的选择。
3、问题解决
将补丁包文件夹权限设置为grid,并且修改为755权限类型。
[root@NCR-Standby-Asm gidir]# chown -R grid:oinstall 20485808
[root@NCR-Standby-Asm gidir]# chmod -R 755 20485808/
[root@NCR-Standby-Asm gidir]# ls -l
total 1338920
drwxr-xr-x 5 grid oinstall? ? ? 4096 Mar 27 23:33 20485808
重新尝试auto补丁。
[root@NCR-Standby-Asm OPatch]# ./opatch auto /upload/gidir/20485808 -ocmrf /u01/unconfig.rsp
Executing /u01/app/grid/product/11.2.0/grid/perl/bin/perl ./crs/patch11203.pl -patchdir /upload/gidir -patchn 20485808 -ocmrf /u01/unconfig.rsp -paramfile /u01/app/grid/product/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: /u01/app/grid/product/11.2.0/grid/cfgtoollogs/opatchauto2015-05-25_15-22-24.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/grid/product/11.2.0/grid/cfgtoollogs/opatchauto2015-05-25_15-22-24.report.log
2015-05-25 15:22:24: Starting Oracle Restart Patch Setup
Using configuration parameter file: /u01/app/grid/product/11.2.0/grid/crs/install/crsconfig_params
Stopping RAC /u02/app/oracle/product/11.2.0/dbhome_1 ...
Stopped RAC /u02/app/oracle/product/11.2.0/dbhome_1 successfully
patch /upload/gidir/20485808/20299013? apply successful for home? /u02/app/oracle/product/11.2.0/dbhome_1?
patch /upload/gidir/20485808/20420937/custom/server/20420937? apply successful for home? /u02/app/oracle/product/11.2.0/dbhome_1?
Stopping CRS...
Stopped CRS successfully
patch /upload/gidir/20485808/20299013? apply successful for home? /u01/app/grid/product/11.2.0/grid?
patch /upload/gidir/20485808/20420937? apply successful for home? /u01/app/grid/product/11.2.0/grid?
patch /upload/gidir/20485808/20299019? apply successful for home? /u01/app/grid/product/11.2.0/grid?
Starting CRS...
CRS-4123: Oracle High Availability Services h