# /u01/app/11.2.0/grid/OPatch/opatch auto /u01/software/21523375 -oh /u01/app/11.2.0/grid/ -ocmrf /u01/software/ocm.rspExecuting /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /u01/software -patchn 21523375 -oh /u01/app/11.2.0/grid/ -ocmrf /u01/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/opatchauto2015-12-25_10-09-05.logThis 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/opatchauto2015-12-25_10-09-05.report.log2015-12-25 10:09:05: Starting Clusterware Patch Setup Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsStopping CRS... Stopped CRS successfullypatch /u01/software/21523375/21352635 apply successful for home /u01/app/11.2.0/grid patch /u01/software/21523375/21352649 apply successful for home /u01/app/11.2.0/grid patch /u01/software/21523375/21352642 apply successful for home /u01/app/11.2.0/gridStarting CRS... Installing Trace File Analyzer CRS-4123: Oracle High Availability Services has been started.opatch auto succeeded.
4. 检查升级情况
# su - grid$ /u01/app/11.2.0/grid/OPatch/opatch lsinv
(1) Root用户下,重新给PSU补丁包赋予权限cd /u01/software/;chown oracle:oinstall p21523375_112040_Linux-x86-64.zip (2) oracle用户su - oracle cd /u01/software/ unzip p21523375_112040_Linux-x86-64.zip 2. Oracle用户下检查兼容性$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/software/21523375/21352635 -oh $ORACLE_HOME---------------------------------------------------- 示例: Oracle Interim Patch Installer version 11.2.0.3.11 Copyright (c) 2015, Oracle Corporation. All rights reserved.PREREQ sessionOracle 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.11 OUI version : 11.2.0.4.0 Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2015-12-18_16-21-46PM_1.logInvoking prereq "checkconflictagainstohwithdetail"Prereq "checkConflictAgainstOHWithDetail" passed. OPatch succeeded. ----------------------------------------------------
3. 开启自动打补丁 root用户依次节点1,节点2上人执行。
# /u01/app/oracle/product/11.2.0/db_1/OPatch/opatch auto /u01/software/21523375 -oh /u01/app/oracle/product/11.2.0/db_1/ -ocmrf /u01/software/ocm.rspExecuting /u01/app/11.2.0/grid/perl/bin/perl /u01/app/oracle/product/11.2.0/db_1/OPatch/crs/patch11203.pl -patchdir /u01/software -patchn 21523375 -oh /u01/app/oracle/product/11.2.0/db_1/ -ocmrf /u01/software/ocm.rsp -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_paramsThis is the main log file: /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatchauto2015-12-25_10-43-07.logThis file will show your detected configuration and all the steps that opatchauto attempted to do on your system: /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatchauto2015-12-25_10-43-07.report.log2015-12-25 10:43:07: Starting Clusterware Patch Setup Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsStopping RAC /u01/app/oracle/product/11.2.0/db_1 ... Stopped RAC /u01/app/oracle/product/11.2.0/db_1 successfullypatch /u01/software/21523375/21352635 apply successful for home /u01/app/oracle/product/11.2.0/db_1 patch /u01/software/21523375/21352649/custom/server/21352649 apply successful for home /u01/app/oracle/product/11.2.0/db_1Starting RAC /u01/app/oracle/product/11.2.0/db_1 ... Started RAC /u01/app/oracle/product/11.2.0/db_1 successfullyopatch auto succeeded.
Patch 21352635 : applied on Fri Dec 18 17:38:24 CST 2015 Unique Patch ID: 19227862 Patch description: "Database Patch Set Update : 11.2.0.4.8 (21352635)" Created on 1 Sep 2015, 07:49:44 hrs Sub-patch 20760982; "Database Patch Set Update : 11.2.0.4.7 (20760982)" Sub-patch 20299013; "Database Patch Set Update : 11.2.0.4.6 (20299013)" Sub-patch 19769489; "Database Patch Set Update : 11.2.0.4.5 (19769489)" Sub-patch 19121551; "Database Patch Set Update : 11.2.0.4.4 (19121551)" Sub-patch 18522509; "Database Patch Set Update : 11.2.0.4.3 (18522509)" Sub-patch 18031668; "Database Patch Set Update : 11.2.0.4.2 (18031668)" Sub-patch 17478514; "Database Patch Set Update : 11.2.0.4.1 (17478514)" Bugs fixed: ...$ /u01/app/oracle/product/11.2.0/db_1/OPatch/opatch lspatches21352635;Database Patch Set Update : 11.2.0.4.8 (21352635) 21352642;ACFS Patch Set Update : 11.2.0.4.8 (21352642) 21352649;OCW Patch Set Update : 11.2.0.4.8 (21352649) OPatch succeeded.
六、升级数据库数据字典
数据库启动,并加载修改SQL Files到数据库$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Fri Dec 25 11:26:02 2015Copyright (c) 1982, 2013, Oracle. All rights reserved.Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing optionsSQL> select open_mode from v$database;OPEN_MODE -------------------- READ WRITESQL> SQL>SQL> @?/rdbms/admin/catbundle.sql psu applySQL> 执行完后我们可以查到PSU更新信息: SQL>set line 150 col ACTION_TIME for a30 col ACTION for a8 col NAMESPACE for a8 col VERSION for a10 col BUNDLE_SERIES for a5 col COMMENTS for a20 select * from dba_registry_history; ACTION_TIME ACTION NAMESPAC VERSION ID BUNDL COMMENTS ------------------------------ -------- -------- ---------- ---------- ----- -------------------- 24-AUG-13 12.03.45.119862 PM APPLY SERVER 11.2.0.4 0 PSU Patchset 11.2.0.2.0 22-DEC-15 03.53.27.330912 PM APPLY SERVER 11.2.0.4 0 PSU Patchset 11.2.0.2.0 25-DEC-15 11.54.19.486765 AM APPLY SERVER 11.2.0.4 8 PSU PSU 11.2.0.4.83 rows selected.SQL> 小节:自动打还是比较顺利的,没有出现手动打出现的问题,在此记录。Oracle 11g RAC手动打GI PSU补丁(11.2.0.4.8) http://www.linuxidc.com/Linux/2015-12/126771.htm更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12本文永久更新链接地址