报错如下:
# /u01/app/11.2.0/grid/OPatch/opatch auto /u01/setup/31720783/31718723/ -oh /u01/app/11.2.0/grid/
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /u01/setup/31720783 -patchn 31718723 -oh /u01/app/11.2.0/grid/ -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params
/u01/app/11.2.0/grid/OPatch/crs/../../srvm/admin/getcrshome: error while loading shared libraries: libnnz11.so: cannot open shared object file: No such file or directory
This is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2021-01-27_22-23-57.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/opatchauto2021-01-27_22-23-57.report.log
2021-01-27 22:23:57: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Either does not exist or is not readable
Make sure the file exists and it has read and execute access
Clusterware home location does not exist
解决方法:
root用户执行
export LD_LIBRARY_PATH=/u01/app/11.2.0/grid/lib:/u01/app/11.2.0/grid/ctx/lib #/u01/app/11.2.0/grid为GRID用户的$ORACLE_HOME
设置环境变量后,重新执行打补丁命令成功。