把LANG=en_US 变量加入grid与oracle .bash_profile中
[root@newrac1 ~]# vim /home/grid/.bash_profile
[root@newrac1 ~]# vim /home/oracle/.bash_profile
[root@newrac1 ~]# /u01/app/11.2.0/grid/OPatch/opatch auto /u01/install/patch/27282436/27107360/ -ocmrf /u01/app/11.2.0/grid/OPatch/ocm/bin/ocm.rsp
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch21203.pl -patchdir /u01/install/patch/27282436 -patchn 27107360 -ocmrf /u01/app/11.2.0/grid/OPatch/ocm/bin/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-01-31_14-39-30.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-01-31_14-39-30.report.log
2018-01-31 14:39:30: 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 /u01/install/patch/27282436/27107360/26925576 apply successful for home /u01/app/oracle/product/11.2.0/db_1
patch /u01/install/patch/27282436/27107360/26609929/custom/server/26609929 apply successful for home /u01/app/oracle/product/11.2.0/db_1
Stopping CRS...
Stopped CRS successfully
patch /u01/install/patch/27282436/27107360/26925576 apply successful for home /u01/app/11.2.0/grid
patch /u01/install/patch/27282436/27107360/26609929 apply successful for home /u01/app/11.2.0/grid
patch /u01/install/patch/27282436/27107360/22502505 apply successful for home /u01/app/11.2.0/grid
Starting CRS...
Installing Trace File Analyzer
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.
节点2:
root@newrac2 ~]# export LANG=en_US
把LANG=en_US 变量加入grid与oracle .bash_profile中
[root@newrac2 ~]# vim /home/grid/.bash_profile
[root@newrac2 ~]# vim /home/oracle/.bash_profile
[root@newrac2 ~]# /u01/app/11.2.0/grid/OPatch/opatch auto /u01/install/patch/27282436/27107360 -ocmrf /u01/app/11.2.0/grid/OPatch/ocm/bin/ocm.rsp
[root@newrac2 ~]# /u01/app/11.2.0/grid/OPatch/opatch auto /u01/install/patch/27282436/27107360 -ocmrf /u01/app/11.2.0/grid/OPatch/ocm/bin/ocm.rsp
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch21203.pl -patchdir /u01/install/patch/27282436 -patchn 27107360 -ocmrf /u01/app/11.2.0/grid/OPatch/ocm/bin/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-01-31_17-47-28.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-01-31_17-47-28.report.log
2018-01-31 17:47:28: 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 /u01/install/patch/27282436/27107360/26925576 apply successful for home /u01/app/oracle/product/11.2.0/db_1
patch /u01/install/patch/27282436/27107360/26609929/custom/server/26609929 apply successful for home /u01/app/oracle/product/11.2.0/db_1
Stopping CRS...
Stopped CRS successfully
patch /u01/install/patch/27282436/27107360/26925576 apply successful for home /u01/app/11.2.0/grid
patch /u01/install/patch/27282436/27107360/26609929 apply successful for home /u01/app/11.2.0/grid
patch /u01/install/patch/27282436/27107360/22502505 apply successful for home /u01/app/11.2.0/grid
Starting CRS...
Installing Trace File Analyzer
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.
9. Loading Modified SQL Files into the Database
perform these steps on only one node.
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> QUIT
dba_registry_history
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> @utlrp.sql
Patch Deinstallation-
如遇异常可按照如下步骤回滚
As root user, execute the following command on each node of the cluster.
[root@newrac1 ~]# export LANG=en_US
[root@newrac1 ~]# /u01/app/11.2.0/grid/OPatch/opatch auto /u01/install/patch/27282436/27107360 -rollback -ocmrf /u01/app/11.2.0/grid/OPatch/ocm/bin/ocm.rsp
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch21203.pl -patchdir /u01/install/patch/27282436 -patchn 27107360 -rollback -ocmrf /u01/app/11.2.0/grid/OPatch/ocm/bin/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-01-31_15-39-27.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-01-31_15-39-27.report.log
2018-01-31 15:39:27: 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 26925576 rollback successful for home /u01/app/oracle/product/11.2.0/db_1
patch 26609929 rollback successful for home /u01/app/oracle/product/11.2.0/db_1
Stopping CRS...
Stopped CRS successfully
patch 26925576 rollback successful for home /u01/app/11.2.0/grid
patch 26609929 rollback successful for home /u01/app/11.2.0/grid
patch 22502505 rollback successful for home /u01/app/11.2.0/grid
Starting CRS...
Installing Trace File Analyzer
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
1. Ensure that the following Oct2014 or greater to be already installed prior to installing this patch:
Database PSU 11.2.0.4.4 (Oct2014) (Patch number: 19121551)
Database SPU 11.2.0.4 (CPUOct2014)
Database patch for Exadata 11.2.0.4.12 (Oct2014)
2. You must use the OPatch utility version 11.2.0.3.5 or later to apply this patch.
3. Ensure that the $PATH definition has the following executables: make, ar, ld and nm
节点1:
[oracle@newrac1 ~]$ which make ar ld nm
/usr/bin/make
/usr/bin/ar
/usr/bin/ld
/usr/bin/nm
节点2:
[oracle@newrac2 ~]$ which make ar ld nm
/usr/bin/make
/usr/bin/ar
/usr/bin/ld
/usr/bin/nm
4. opatch lsinventory
5. verify conflict with this patch 26925532
每个节点上操作.
$ cd 26925532
$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./
节点1:
[oracle@newrac1 ~]$ cd /u01/install/patch/27282436/26925532/
[oracle@newrac1 26925532]$ /u01/app/oracle/product/11.2.0/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version 11.2.0.3.17
Copyright (c) 2018, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /u01/app/oracle/product/11.2.0/db_1
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/db_1/oraInst.loc
OPatch version : 11.2.0.3.17
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch3018-01-31_23-10-02PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
节点2:
oracle@newrac2 ~]$ cd /u01/install/patch/27282436/26925532/
[oracle@newrac2 26925532]$ /u01/app/oracle/product/11.2.0/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version 11.2.0.3.17
Copyright (c) 2018, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /u01/app/oracle/product/11.2.0/db_1
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/db_1/oraInst.loc
OPatch version : 11.2.0.3.17
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/pr