grid:
grid@yzh-rac1:/oracle/app/12.1.0/grid> OPatch/opatch version
OPatch Version: 12.1.0.1.3
升级opatch
grid@yzh-rac1:/oracle/app/12.1.0/grid> $ mv OPatch/ OPatch_old
grid@yzh-rac1:/oracle/app/12.1.0/grid> unzip /tmp/p6880880_121010_Linux-x86-64.zip -d ./
grid@yzh-rac1:/oracle/app/12.1.0/grid> OPatch/opatch version
OPatch Version: 12.2.0.1.9
ps:The OPatch utility prior to 12.2.0.1.5 will prompt for your OCM (Oracle Configuration Manager) response file when it is run
不需要ocm应答文件了
如果没权限创建目录或者改名
yzh-rac1:/tmp # chown grid /oracle/app/12.1.0/grid/
其他节点也同样升级。
oracle:
oracle@yzh-rac1:/oracle/app/oracle/product/12.1.0/dbhome_1> OPatch/opatch version
OPatch Version: 12.1.0.1.3
oracle@yzh-rac1:/oracle/app/oracle/product/12.1.0/dbhome_1> mv OPatch/ OPatch_old
oracle@yzh-rac1:/oracle/app/oracle/product/12.1.0/dbhome_1> unzip /tmp/p6880880_121010_Linux-x86-64.zip -d ./
OPatch Version: 12.2.0.1.9
其他节点也同样升级。
打psu:
root:(每个节点分别执行即可)
export PATH=$PATH:/oracle/app/12.1.0/grid/OPatch
To patch the GI home and all Oracle RAC database homes of the same version:
yzh-rac1:/tmp/grid/25434003 # opatchauto apply /tmp/grid/25434003
OPatchauto session is initiated at Tue Jun 27 23:21:37 2017
System initialization log file is /oracle/app/12.1.0/grid/cfgtoollogs/opatchautodb/systemconfig2017-06-27_11-21-45PM.log.
Session log file is /oracle/app/12.1.0/grid/cfgtoollogs/opatchauto/opatchauto2017-06-27_11-22-32PM.log
The id for this session is AH4S
Executing OPatch prereq operations to verify patch applicability on home /oracle/app/12.1.0/grid
Executing OPatch prereq operations to verify patch applicability on home /oracle/app/oracle/product/12.1.0/dbhome_1
Patch applicability verified successfully on home /oracle/app/12.1.0/grid
Patch applicability verified successfully on home /oracle/app/oracle/product/12.1.0/dbhome_1
Verifying SQL patch applicability on home /oracle/app/oracle/product/12.1.0/dbhome_1
lSQL patch applicability verified successfully on home /oracle/app/oracle/product/12.1.0/dbhome_1
Preparing to bring down database service on home /oracle/app/oracle/product/12.1.0/dbhome_1
Successfully prepared home /oracle/app/oracle/product/12.1.0/dbhome_1 to bring down database service
Bringing down CRS service on home /oracle/app/12.1.0/grid
Prepatch operation log file location: /oracle/app/12.1.0/grid/cfgtoollogs/crsconfig/crspatch_yzh-rac2_2017-06-27_11-30-20PM.log
CRS service brought down successfully on home /oracle/app/12.1.0/grid
Performing prepatch operation on home /oracle/app/oracle/product/12.1.0/dbhome_1
Perpatch operation completed successfully on home /oracle/app/oracle/product/12.1.0/dbhome_1
Start applying binary patch on home /oracle/app/oracle/product/12.1.0/dbhome_1
Binary patch applied successfully on home /oracle/app/oracle/product/12.1.0/dbhome_1
Performing postpatch operation on home /oracle/app/oracle/product/12.1.0/dbhome_1
Postpatch operation completed successfully on home /oracle/app/oracle/product/12.1.0/dbhome_1
Start applying binary patch on home /oracle/app/12.1.0/grid
Binary patch applied successfully on home /oracle/app/12.1.0/grid
Starting CRS service on home /oracle/app/12.1.0/grid
Postpatch operation log file location: /oracle/app/12.1.0/grid/cfgtoollogs/crsconfig/crspatch_yzh-rac2_2017-06-27_11-55-26PM.log
CRS service started successfully on home /oracle/app/12.1.0/grid
Preparing home /oracle/app/oracle/product/12.1.0/dbhome_1 after database service restarted
No step execution required.........
Prepared home /oracle/app/oracle/product/12.1.0/dbhome_1 successfully after database service restarted
Trying to apply SQL patch on home /oracle/app/oracle/product/12.1.0/dbhome_1
SQL patch applied successfully on home /oracle/app/oracle/product/12.1.0/dbhome_1
OPatchAuto successful.
--------------------------------Summary--------------------------------
Patching is completed successfully. Please find the summary as follows:
Host:yzh-rac2
RAC Home:/oracle/app/oracle/product/12.1.0/dbhome_1
Summary:
==Following patches were SKIPPED:
Patch: /tmp/25434003/21436941
Reason: This patch is not applicable to this specified target type - "rac_database"
Patch: /tmp/25434003/25363750
Reason: This patch is not applicable to this specified target type - "rac_database"
==Following patches were SUCCESSFULLY applied:
Patch: /tmp/25434003/25171037
Log: /oracle/app/oracle/product/12.1.0/dbhome_1/cfgtoollogs/opatchauto/core/opatch/opatch2017-06-27_23-33-05PM_1.log
Patch: /tmp/25434003/25363740
Log: /oracle/app/oracle/product/12.1.0/dbhome_1/cfgtoollogs/opatchauto/core/opatch/opatch2017-06-27_23-33-05PM_1.log
Host:yzh-rac2
CRS Home:/oracle/app/12.1.0/grid
Summary:
==Following patches were SUCCESSFULLY applied:
Patch: /tmp/25434003/21436941
Log: /oracle/app/12.1.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2017-06-27_23-39-21PM_1.log
Patch: /tmp/25434003/25171037
Log: /oracle/app/12.1.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2017-06-27_23-39-21PM_1.log
Patch: /tmp/25434003/25363740
Log: /oracle/app/12.1.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2017-06-27_23-39-21PM_1.log
Patch: /tmp/25434003/25363750
Log: /oracle/app/12.1.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2017-06-27_23-39-21PM_1.log
OPatchauto session completed at Wed Jun 28 00:01:51 2017
Time taken to complete the session 40 minutes, 15 seconds