[重慶思莊每日技術分享]-11G 打補丁遇到:unable to get oracle owner for

xianhua_33發表於2022-03-07

/u01/app/11.2.0/grid/OPatch/opatch auto /tmp/27475913 -ocmrf /home/grid/ocm.rspExecuting

/u01/app/11.2.0/grid/perl/bin/perl

/u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /tmp -patchn

27475913 -ocmrf /home/oracle/ocm.rsp -paramfile

/u01/app/11.2.0/grid/crs/install/crsconfig_paramsThis is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2018-05-30_16-02-48.logThis 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/opatchauto2018-05-30_16-02-48.report.log2018-05-30 16:02:48: Starting Clusterware Patch SetupUsing configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params

unable to get oracle owner for

這個錯誤的主要原因是LANG環境變數為中文導致opatch不能準確的獲取ORACLE_HOME導致,這應該算是opatch的一個BUG了,但Oracle認為這只是個PROBLEM。

OPATCH AUTO Fails with "unable to get oracle owner for" in Multi-Byte Language Environment [ID 1325256.1]

[root@rac1 tmp]# [root@rac1 tmp]# ll /u01/app/11.2.0/grid/crs/install/crsconfig_params-rwxr-xr-x 1 grid oinstall 4179 5月  27 20:25 /u01/app/11.2.0/grid/crs/install/crsconfig_params

[root@rac1 tmp]#

[root@rac1 tmp]# echo $LANG

zh_CN.UTF-8

[root@rac1 tmp]#

[root@rac1 tmp]#export

[root@rac1 tmp]# /u01/app/11.2.0/grid/OPatch/opatch auto /tmp/27475913

Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /tmp -patchn 27475913 -ocmrf /home/grid/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/opatchauto2018-05-30_17-03-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/opatchauto2018-05-30_17-03-07.report.log

2018-05-30 17:03:07: Starting Clusterware Patch SetupUsing 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 /tmp/27475913/27338049  apply failed  for home  /u01/app/oracle/product/11.2.0/db_1

Stopping CRS...Stopped CRS successfully

patch /tmp/27475913/27338049  apply successful for home  /u01/app/11.2.0/grid patch /tmp/27475913/27441052  apply successful for home  /u01/app/11.2.0/grid patch /tmp/27475913/22502505  apply failed  for home  /u01/app/11.2.0/grid

Starting CRS...Installing Trace File AnalyzerCRS-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.


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69950318/viewspace-2865618/,如需轉載,請註明出處,否則將追究法律責任。

相關文章