Oracle RAC 11.2.0.4安装PSU补丁,出现unable to get oracle owner for 错误。
[root@his1 ~]# /u01/app/11.2.0/grid/OPatch/opatch auto /home/soft/24436338/ -ocmrf /home/grid/gridocm0326.rsp
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /home/soft -patchn 24436338 -ocmrf /home/grid/gridocm0326.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/opatchauto2021-03-26_23-40-03.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-03-26_23-40-03.report.log
2021-03-26 23:40:03: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
unable to get oracle owner for
这个错误的主要原因是LANG环境变量为中文导致opatch不能准确的获取ORACLE_HOME导致。详情参考OMS:OPATCH AUTO Fails with “unable to get oracle owner for” in Multi-Byte Language Environment [ID 1325256.1]
打补丁之前先export 语言环境变量:
[root@his1 ~]# export LANG=C
[root@his1 ~]# /u01/app/11.2.0/grid/OPatch/opatch auto /home/soft/24436338/ -ocmrf /home/grid/gridocm0326.rsp
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /home/soft -patchn 24436338 -ocmrf /home/grid/gridocm0326.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/opatchauto2021-03-26_23-43-07.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-03-26_23-43-07.report.log
2021-03-26 23:43:07: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Stopping RAC /u01/app/oracle/product/11.2.0/db_1 ...
Stopped RAC /u01/app/oracle/product/11.2.0/db_1 successfully
patch /home/soft/24436338/24006111 apply successful for home /u01/app/oracle/product/11.2.0/db_1
patch /home/soft/24436338/23054319/custom/server/23054319 apply successful for home /u01/app/oracle/product/11.2.0/db_1
Stopping CRS...
Stopped CRS successfully
patch /home/soft/24436338/24006111 apply successful for home /u01/app/11.2.0/grid
patch /home/soft/24436338/23054319 apply successful for home /u01/app/11.2.0/grid
patch /home/soft/24436338/22502505 apply successful for home /u01/app/11.2.0/grid
Starting CRS...
Installing Trace File Analyzer
ACFS driver install actions failed
CRS-4123: Oracle High Availability Services has been started.
Starting RAC /u01/app/oracle/product/11.2.0/db_1 ...
Started RAC /u01/app/oracle/product/11.2.0/db_1 successfully
opatch auto succeeded.
....
补丁安装正常。