重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1339|回复: 0
打印 上一主题 下一主题

[补丁] 11G 打补丁遇到:unable to get oracle owner for

[复制链接]
跳转到指定楼层
楼主
发表于 2022-3-1 18:44:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 郑全 于 2022-3-1 18:49 编辑

/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_params

This is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2018-05-30_16-02-48.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_16-02-48.report.log

2018-05-30 16:02:48: 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导致,这应该算是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 LANG=C
[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.




分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-28 15:38 , Processed in 0.081176 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表