标题: 给gi打PSU补丁报:unable to get oracle owner for [打印本页] 作者: 郑全 时间: 2016-11-16 17:54 标题: 给gi打PSU补丁报:unable to get oracle owner for 本帖最后由 郑全 于 2016-11-16 17:57 编辑
给gi打PSU补丁报:unable to get oracle owner for
问题现场:
# /u01/app/grid/product/11.2.0/grid/OPatch/opatch auto /setup/psu/23274134/ -ocmrf /setup/psu/ocm.rsp
..
unable to get oracle owner for
一种是加上 -oh
如:
# /u01/app/grid/product/11.2.0/grid/OPatch/opatch auto /setup/psu/23274134/ -ocmrf /setup/psu/ocm.rsp -oh /u01/app/grid/product/11.2.0/grid
# /u01/app/grid/product/11.2.0/grid/OPatch/opatch auto /setup/psu/23274134/ -ocmrf /setup/psu/ocm.rsp -oh /u01/app/oracle/product/11.2.0/db_1
另一种办法:
修改LANG=C
再去执行,就不会抱错了。
附 :执行正确的结果:
[root@hisdg ~]# /u01/app/grid/product/11.2.0/grid/OPatch/opatch auto /setup/psu/23274134/ -ocmrf /setup/psu/ocm.rsp
Executing /u01/app/grid/product/11.2.0/grid/perl/bin/perl /u01/app/grid/product/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /setup/psu -patchn 23274134 -ocmrf /setup/psu/ocm.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/opatchauto2016-11-16_17-41-45.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/opatchauto2016-11-16_17-41-45.report.log
2016-11-16 17:41:45: Starting Oracle Restart Patch Setup
Using configuration parameter file: /u01/app/grid/product/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 /setup/psu/23274134/23054359 apply successful for home /u01/app/oracle/product/11.2.0/db_1
patch /setup/psu/23274134/23054319/custom/server/23054319 apply successful for home /u01/app/oracle/product/11.2.0/db_1
Stopping CRS...
Stopped CRS successfully
patch /setup/psu/23274134/23054359 apply successful for home /u01/app/grid/product/11.2.0/grid
patch /setup/psu/23274134/23054319 apply successful for home /u01/app/grid/product/11.2.0/grid
patch /setup/psu/23274134/22502505 apply successful for home /u01/app/grid/product/11.2.0/grid
Starting CRS...
CRS-4123: Oracle High Availability Services has been started.
Oracle Home : /u01/app/grid/product/11.2.0/grid
Central Inventory : /u01/app/grid/oraInventory
from : /u01/app/grid/product/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.10
OUI version : 11.2.0.4.0
Log file location : /u01/app/grid/product/11.2.0/grid/cfgtoollogs/opatch/opatch2016-11-16_17-56-11下午_1.log
--------------------------------------------------------------------------------
Local Machine Information::
Hostname: hisdg
ARU platform id: 226
ARU platform description:: Linux x86-64
Oracle Home : /u01/app/oracle/product/11.2.0/db_1
Central Inventory : /u01/app/grid/oraInventory
from : /u01/app/oracle/product/11.2.0/db_1/oraInst.loc
OPatch version : 11.2.0.3.10
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2016-11-16_17-58-36下午_1.log
--------------------------------------------------------------------------------
Local Machine Information::
Hostname: hisdg
ARU platform id: 226
ARU platform description:: Linux x86-64