一. 问题描述:
[root@node2 ~]# /u01/app/11.2.0/grid/OPatch/opatch auto /home/grid/software/24436338 -ocmrf /home/grid/software/ocm.rsp
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /home/grid/software -patchn 24436338 -ocmrf /home/grid/software/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/opatchauto2016-11-06_14-02-33.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/opatchauto2016-11-06_14-02-33.report.log
2016-11-06 14:02:33: Starting Oracle Restart Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
The opatch minimum version check for patch /home/grid/software/24436338/24006111 failed for /u01/app/11.2.0/grid
The opatch minimum version check for patch /home/grid/software/24436338/23054319 failed for /u01/app/11.2.0/grid
The opatch minimum version check for patch /home/grid/software/24436338/22502505 failed for /u01/app/11.2.0/grid
Opatch version check failed for oracle home /u01/app/11.2.0/grid
Opatch version check failed
ERROR: update the opatch version for the failed homes and retry
opatch auto failed.
[root@node2 ~]#
二. 原因分析:
2016-11-06 14:02:44: /bin/su successfully executed
2016-11-06 14:02:44: opatch version in oracle home /u01/app/11.2.0/grid is 11.2.0.3.14
2016-11-06 14:02:44: Running as user grid: /u01/app/11.2.0/grid/OPatch/opatch util checkMinimumOPatchVersion -ph /home/grid/software/24436338
/24006111 -version 11.2.0.3.14 -oh /u01/app/11.2.0/grid
2016-11-06 14:02:44: s_run_as_user2: Running /bin/su grid -c ' /u01/app/11.2.0/grid/OPatch/opatch util checkMinimumOPatchVersion -ph /home/gr
id/software/24436338/24006111 -version 11.2.0.3.14 -oh /u01/app/11.2.0/grid '
2016-11-06 14:02:45: Removing file /tmp/filekZ56kX
2016-11-06 14:02:45: Successfully removed file: /tmp/filekZ56kX
2016-11-06 14:02:45: /bin/su exited with rc=73
2016-11-06 14:02:45: The opatch minimum version check for patch /home/grid/software/24436338/24006111 failed for /u01/app/11.2.0/grid
2016-11-06 14:02:45: The opatch version check failed with following error
2016-11-06 14:02:45: Oracle Interim Patch Installer version 11.2.0.3.14
Copyright (c) 2016, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/11.2.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.14
OUI version : 11.2.0.4.0
Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2016-11-06_14-02-45PM_1.log
OPatch failed to lock and get an Inventory Session for the given Oracle Home /u01/app/11.2.0/grid
Possible causes are:
No read or write permission to $ORACLE_HOME, cannot create $ORACLE_HOME/.patch_storage
No read or write permission to $ORACLE_HOME/.patch_storage
OPatch cannot proceed further because system will not be able to backup files, or read the backup area for rollback/restore.
OPatchSession cannot load inventory for the given Oracle Home /u01/app/11.2.0/grid. Possible causes are:
No read or write permission to ORACLE_HOME/.patch_storage
Central Inventory is locked by another OUI instance
No read permission to Central Inventory
The lock file exists in ORACLE_HOME/.patch_storage
The Oracle Home does not exist in Central Inventory
UtilSession failed: IPMRWServices::verifyPatchStorageDirectory() cannot read or write to /u01/app/11.2.0/grid/.patch_storage
OPatch failed with error code 73
2016-11-06 14:02:45: Running as user grid: /u01/app/11.2.0/grid/OPatch/opatch util checkMinimumOPatchVersion -ph /home/grid/software/24436338
/23054319 -version 11.2.0.3.14 -oh /u01/app/11.2.0/grid
2016-11-06 14:02:45: s_run_as_user2: Running /bin/su grid -c ' /u01/app/11.2.0/grid/OPatch/opatch util checkMinimumOPatchVersion -ph /home/gr
id/software/24436338/23054319 -version 11.2.0.3.14 -oh /u01/app/11.2.0/grid '
2016-11-06 14:02:46: Removing file /tmp/filePnrPjY
2016-11-06 14:02:46: Successfully removed file: /tmp/filePnrPjY
2016-11-06 14:02:46: /bin/su exited with rc=73
2016-11-06 14:02:46: The opatch minimum version check for patch /home/grid/software/24436338/23054319 failed for /u01/app/11.2.0/grid
2016-11-06 14:02:46: The opatch version check failed with following error
2016-11-06 14:02:46: Oracle Interim Patch Installer version 11.2.0.3.14
Copyright (c) 2016, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/11.2.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.14
OUI version : 11.2.0.4.0
Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2016-11-06_14-02-46PM_1.log
OPatch failed to lock and get an Inventory Session for the given Oracle Home /u01/app/11.2.0/grid
Possible causes are:
No read or write permission to $ORACLE_HOME, cannot create $ORACLE_HOME/.patch_storage
No read or write permission to $ORACLE_HOME/.patch_storage
OPatch cannot proceed further because system will not be able to backup files, or read the backup area for rollback/restore.
OPatchSession cannot load inventory for the given Oracle Home /u01/app/11.2.0/grid. Possible causes are:
No read or write permission to ORACLE_HOME/.patch_storage
Central Inventory is locked by another OUI instance
No read permission to Central Inventory
The lock file exists in ORACLE_HOME/.patch_storage
The Oracle Home does not exist in Central Inventory
UtilSession failed: IPMRWServices::verifyPatchStorageDirectory() cannot read or write to /u01/app/11.2.0/grid/.patch_storage
OPatch failed with error code 73
2016-11-06 14:02:46: Running as user grid: /u01/app/11.2.0/grid/OPatch/opatch util checkMinimumOPatchVersion -ph /home/grid/software/24436338
/22502505 -version 11.2.0.3.14 -oh /u01/app/11.2.0/grid
2016-11-06 14:02:46: s_run_as_user2: Running /bin/su grid -c ' /u01/app/11.2.0/grid/OPatch/opatch util checkMinimumOPatchVersion -ph /home/gr
id/software/24436338/22502505 -version 11.2.0.3.14 -oh /u01/app/11.2.0/grid '
2016-11-06 14:02:47: Removing file /tmp/filejNCeB2
2016-11-06 14:02:47: Successfully removed file: /tmp/filejNCeB2
2016-11-06 14:02:47: /bin/su exited with rc=73
2016-11-06 14:02:47: The opatch minimum version check for patch /home/grid/software/24436338/22502505 failed for /u01/app/11.2.0/grid
2016-11-06 14:02:47: The opatch version check failed with following error
2016-11-06 14:02:47: Oracle Interim Patch Installer version 11.2.0.3.14
Copyright (c) 2016, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/11.2.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.14
OUI version : 11.2.0.4.0
Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2016-11-06_14-02-46PM_1.log
OPatch failed to lock and get an Inventory Session for the given Oracle Home /u01/app/11.2.0/grid
Possible causes are:
No read or write permission to $ORACLE_HOME, cannot create $ORACLE_HOME/.patch_storage
No read or write permission to $ORACLE_HOME/.patch_storage
OPatch cannot proceed further because system will not be able to backup files, or read the backup area for rollback/restore.
OPatchSession cannot load inventory for the given Oracle Home /u01/app/11.2.0/grid. Possible causes are:
No read or write permission to ORACLE_HOME/.patch_storage
Central Inventory is locked by another OUI instance
No read permission to Central Inventory
The lock file exists in ORACLE_HOME/.patch_storage
The Oracle Home does not exist in Central Inventory
UtilSession failed: IPMRWServices::verifyPatchStorageDirectory() cannot read or write to /u01/app/11.2.0/grid/.patch_storage
OPatch failed with error code 73
2016-11-06 14:02:47: Status of opatch version check for /u01/app/11.2.0/grid is 0
2016-11-06 14:02:47: Opatch version check failed for oracle home /u01/app/11.2.0/grid
2016-11-06 14:02:47: Opatch version check failed
2016-11-06 14:02:47: ERROR: update the opatch version for the failed homes and retry
[root@node2 ~]#
2016-11-06 14:02:44: opatch version in oracle home /u01/app/11.2.0/grid is 11.2.0.3.14
2016-11-06 14:02:44: Running as user grid: /u01/app/11.2.0/grid/OPatch/opatch util checkMinimumOPatchVersion -ph /home/grid/software/24436338
/24006111 -version 11.2.0.3.14 -oh /u01/app/11.2.0/grid
2016-11-06 14:02:44: s_run_as_user2: Running /bin/su grid -c ' /u01/app/11.2.0/grid/OPatch/opatch util checkMinimumOPatchVersion -ph /home/gr
id/software/24436338/24006111 -version 11.2.0.3.14 -oh /u01/app/11.2.0/grid '
2016-11-06 14:02:45: Removing file /tmp/filekZ56kX
2016-11-06 14:02:45: Successfully removed file: /tmp/filekZ56kX
2016-11-06 14:02:45: /bin/su exited with rc=73
2016-11-06 14:02:45: The opatch minimum version check for patch /home/grid/software/24436338/24006111 failed for /u01/app/11.2.0/grid
2016-11-06 14:02:45: The opatch version check failed with following error
2016-11-06 14:02:45: Oracle Interim Patch Installer version 11.2.0.3.14
Copyright (c) 2016, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/11.2.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.14
OUI version : 11.2.0.4.0
Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2016-11-06_14-02-45PM_1.log
OPatch failed to lock and get an Inventory Session for the given Oracle Home /u01/app/11.2.0/grid
Possible causes are:
No read or write permission to $ORACLE_HOME, cannot create $ORACLE_HOME/.patch_storage
No read or write permission to $ORACLE_HOME/.patch_storage
OPatch cannot proceed further because system will not be able to backup files, or read the backup area for rollback/restore.
OPatchSession cannot load inventory for the given Oracle Home /u01/app/11.2.0/grid. Possible causes are:
No read or write permission to ORACLE_HOME/.patch_storage
Central Inventory is locked by another OUI instance
No read permission to Central Inventory
The lock file exists in ORACLE_HOME/.patch_storage
The Oracle Home does not exist in Central Inventory
UtilSession failed: IPMRWServices::verifyPatchStorageDirectory() cannot read or write to /u01/app/11.2.0/grid/.patch_storage
OPatch failed with error code 73
2016-11-06 14:02:45: Running as user grid: /u01/app/11.2.0/grid/OPatch/opatch util checkMinimumOPatchVersion -ph /home/grid/software/24436338
/23054319 -version 11.2.0.3.14 -oh /u01/app/11.2.0/grid
2016-11-06 14:02:45: s_run_as_user2: Running /bin/su grid -c ' /u01/app/11.2.0/grid/OPatch/opatch util checkMinimumOPatchVersion -ph /home/gr
id/software/24436338/23054319 -version 11.2.0.3.14 -oh /u01/app/11.2.0/grid '
2016-11-06 14:02:46: Removing file /tmp/filePnrPjY
2016-11-06 14:02:46: Successfully removed file: /tmp/filePnrPjY
2016-11-06 14:02:46: /bin/su exited with rc=73
2016-11-06 14:02:46: The opatch minimum version check for patch /home/grid/software/24436338/23054319 failed for /u01/app/11.2.0/grid
2016-11-06 14:02:46: The opatch version check failed with following error
2016-11-06 14:02:46: Oracle Interim Patch Installer version 11.2.0.3.14
Copyright (c) 2016, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/11.2.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.14
OUI version : 11.2.0.4.0
Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2016-11-06_14-02-46PM_1.log
OPatch failed to lock and get an Inventory Session for the given Oracle Home /u01/app/11.2.0/grid
Possible causes are:
No read or write permission to $ORACLE_HOME, cannot create $ORACLE_HOME/.patch_storage
No read or write permission to $ORACLE_HOME/.patch_storage
OPatch cannot proceed further because system will not be able to backup files, or read the backup area for rollback/restore.
OPatchSession cannot load inventory for the given Oracle Home /u01/app/11.2.0/grid. Possible causes are:
No read or write permission to ORACLE_HOME/.patch_storage
Central Inventory is locked by another OUI instance
No read permission to Central Inventory
The lock file exists in ORACLE_HOME/.patch_storage
The Oracle Home does not exist in Central Inventory
UtilSession failed: IPMRWServices::verifyPatchStorageDirectory() cannot read or write to /u01/app/11.2.0/grid/.patch_storage
OPatch failed with error code 73
2016-11-06 14:02:46: Running as user grid: /u01/app/11.2.0/grid/OPatch/opatch util checkMinimumOPatchVersion -ph /home/grid/software/24436338
/22502505 -version 11.2.0.3.14 -oh /u01/app/11.2.0/grid
2016-11-06 14:02:46: s_run_as_user2: Running /bin/su grid -c ' /u01/app/11.2.0/grid/OPatch/opatch util checkMinimumOPatchVersion -ph /home/gr
id/software/24436338/22502505 -version 11.2.0.3.14 -oh /u01/app/11.2.0/grid '
2016-11-06 14:02:47: Removing file /tmp/filejNCeB2
2016-11-06 14:02:47: Successfully removed file: /tmp/filejNCeB2
2016-11-06 14:02:47: /bin/su exited with rc=73
2016-11-06 14:02:47: The opatch minimum version check for patch /home/grid/software/24436338/22502505 failed for /u01/app/11.2.0/grid
2016-11-06 14:02:47: The opatch version check failed with following error
2016-11-06 14:02:47: Oracle Interim Patch Installer version 11.2.0.3.14
Copyright (c) 2016, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/11.2.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.14
OUI version : 11.2.0.4.0
Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2016-11-06_14-02-46PM_1.log
OPatch failed to lock and get an Inventory Session for the given Oracle Home /u01/app/11.2.0/grid
Possible causes are:
No read or write permission to $ORACLE_HOME, cannot create $ORACLE_HOME/.patch_storage
No read or write permission to $ORACLE_HOME/.patch_storage
OPatch cannot proceed further because system will not be able to backup files, or read the backup area for rollback/restore.
OPatchSession cannot load inventory for the given Oracle Home /u01/app/11.2.0/grid. Possible causes are:
No read or write permission to ORACLE_HOME/.patch_storage
Central Inventory is locked by another OUI instance
No read permission to Central Inventory
The lock file exists in ORACLE_HOME/.patch_storage
The Oracle Home does not exist in Central Inventory
UtilSession failed: IPMRWServices::verifyPatchStorageDirectory() cannot read or write to /u01/app/11.2.0/grid/.patch_storage
OPatch failed with error code 73
2016-11-06 14:02:47: Status of opatch version check for /u01/app/11.2.0/grid is 0
2016-11-06 14:02:47: Opatch version check failed for oracle home /u01/app/11.2.0/grid
2016-11-06 14:02:47: Opatch version check failed
2016-11-06 14:02:47: ERROR: update the opatch version for the failed homes and retry
[root@node2 ~]#
报错信息虽然是version版本过低,但日志显示很明显,权限不足
三. 问题解决
[grid@node2 software]$ echo $ORACLE_HOME
/u01/app/11.2.0/grid
[grid@node2 software]$
/u01/app/11.2.0/grid
[grid@node2 software]$
[root@node2 ~]# chmod 775 -R /u01/app/11.2.0/grid
[root@node2 ~]#
[root@node2 ~]#
[root@node2 ~]# /u01/app/11.2.0/grid/OPatch/opatch auto /home/grid/software/24436338 -ocmrf /home/grid/software/ocm.rsp
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /home/grid/software -patchn 24436338 -ocmrf /home/grid/software/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/opatchauto2016-11-06_14-08-51.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/opatchauto2016-11-06_14-08-51.report.log
2016-11-06 14:08:51: Starting Oracle Restart Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Stopping CRS...
Stopped CRS successfully
patch /home/grid/software/24436338/24006111 apply successful for home /u01/app/11.2.0/grid
patch /home/grid/software/24436338/23054319 apply successful for home /u01/app/11.2.0/grid
patch /home/grid/software/24436338/22502505 apply successful for home /u01/app/11.2.0/grid
Starting CRS...
CRS-4123: Oracle High Availability Services has been started.
opatch auto succeeded.
[root@node2 ~]#
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /home/grid/software -patchn 24436338 -ocmrf /home/grid/software/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/opatchauto2016-11-06_14-08-51.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/opatchauto2016-11-06_14-08-51.report.log
2016-11-06 14:08:51: Starting Oracle Restart Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Stopping CRS...
Stopped CRS successfully
patch /home/grid/software/24436338/24006111 apply successful for home /u01/app/11.2.0/grid
patch /home/grid/software/24436338/23054319 apply successful for home /u01/app/11.2.0/grid
patch /home/grid/software/24436338/22502505 apply successful for home /u01/app/11.2.0/grid
Starting CRS...
CRS-4123: Oracle High Availability Services has been started.
opatch auto succeeded.
[root@node2 ~]#