您的位置:首页 > 数据库 > Oracle

Oracle 11.2.0.4 RAC PSU 升级文档

2018-03-24 20:15 543 查看

Oracle 11.2.0.4 RAC PSU 升级文档

1. 本次服务详细过程

1.1 [b]背景概述[/b]升级数据库PUS,数据库环境,操作系统版本:RedHat6.8 x64,数据库版本Oracle 11.2.0.4 x64 RACGrid: 11.2.0.4,Oracle database: 11.2.0.41.2 [b]安装前准备[/b]-rw-r--r-- 1 oracle oinstall  93376160 Mar 25 11:43 p21948347_112040_Linux-x86-64.zip-rw-r--r-- 1 oracle oinstall 687630001 Mar 25 11:45 p22191577_112040_Linux-x86-64.zip-rw-r--r-- 1 oracle oinstall  52733900 Mar 25 11:45 p6880880_112000_Linux-x86-64.zip(1) Opatch:p6880880_112000_Linux-x86-64.zip(2) GI PSU:p22191577_112040_Linux-x86-64.zip(3) DB PSU: p21948347_112040_Linux-x86-64.zip备注:GI PSU 包括 DB PSU和 CPU,OPatch Version: 11.2.0.3.12GI PSU解压后文件说明:drwxr-xr-x  5 oracle oinstall  4096 Nov 18 16:55 21948355drwxr-xr-x  5 oracle oinstall  4096 Dec 14 15:42 21948348drwxrwxr-x 11 oracle oinstall  4096 Dec 14 19:33 21948347-rw-rw-r--  1 oracle oinstall 68836 Dec 17 05:10 PatchSearch.xml-rw-r--r--  1 oracle oinstall   549 Dec 19 13:30 bundle.xml-rw-r--r--  1 oracle oinstall     0 Dec 19 13:31 README.txt-rw-r--r--  1 oracle oinstall 62889 Jan 19 23:03 README.html(1) 21948355为 ACFS Patch Set(2) 21948348为 OCW Patch Set(3) 21948347为 Database Patch Set1.3 [b]升级Opatch[/b]drwxr-x--- 10 oracle oinstall      4096 Aug 18  2015 OPatch-rw-r--r--  1 oracle oinstall  52733900 Mar 25 11:45 p6880880_112000_Linux-x86-64.zip解压后拷贝到两个节点$GRID_HOME,$ORACLE_HOME 下两个节点Grid 用户Opatch验证[oracle@node2-11gr2 OPatch]$ ./opatch versionOPatch Version: 11.2.0.3.12OPatch succeeded.两个节点Oracle用户Opatch验证[grid@node1-11gr2 OPatch]$ ./opatch versionOPatch Version: 11.2.0.3.12OPatch succeeded.备注:两个节点grid,oracle 下Opatch 都需要验证升级是否成功。1.4 [b]升级GI PSU准备工作[/b](1) 节点1操作,关闭crs以root用户执行:切换到$GRID_HOME 目录/u01/11.2.0/grid/bin/crsctl stop crs(2) root 用户执行以root用户执行:切换到$GRID_HOME 目录/u01/11.2.0/grid/crs/install/rootcrs.pl -unlock(3) 节点2,重复以上两步骤(4) 节点1,节点2 操作,grid用户下测试兼容性su - grid$GRID_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /home/grid/325/22191577/21948347 -oh $GRID_HOME$GRID_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /home/grid/325/22191577/21948348 -oh $GRID_HOME$GRID_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /home/grid/325/22191577/21948355 -oh $GRID_HOME输出结果如下:Oracle Interim Patch Installer version 11.2.0.3.12Copyright (c) 2016, Oracle Corporation.  All rights reserved.PREREQ sessionOracle Home       : /u01/11.2.0/gridCentral Inventory : /u01/app/oraInventoryfrom           : /u01/11.2.0/grid/oraInst.locOPatch version    : 11.2.0.3.12OUI version       : 11.2.0.4.0Log file location : /u01/11.2.0/grid/cfgtoollogs/opatch/opatch2016-03-25_13-37-48PM_1.logInvoking prereq "checkconflictagainstohwithdetail"Prereq "checkConflictAgainstOHWithDetail" passed.1.5 [b]开始升级GI PSU[/b](1) 节点1操作,给GI HOME打补丁,以grid用户执行:/u01/11.2.0/grid/ 为$GRID_HOME 目录su - grid/u01/11.2.0/grid/OPatch/opatch napply -oh $GRID_HOME -local /home/grid/325/22191577/21948347/u01/11.2.0/grid/OPatch/opatch napply -oh $GRID_HOME -local /home/grid/325/22191577/21948348/u01/11.2.0/grid/OPatch/opatch napply -oh $GRID_HOME -local /home/grid/325/22191577/21948355升级过程中按三个Y(2) 节点1执行完成,执行节点2(3) 两个节点执行完验证[grid@node1-11gr2 OPatch]$ ./opatch lspatches21948355;ACFS Patch Set Update : 11.2.0.4.160119 (21948355)21948348;OCW Patch Set Update : 11.2.0.4.160119 (21948348)21948347;Database Patch Set Update : 11.2.0.4.160119 (21948347)OPatch succeeded.[grid@node1-11gr2 OPatch]$ ./opatch lsinvOracle Interim Patch Installer version 11.2.0.3.12Copyright (c) 2016, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/11.2.0/gridCentral Inventory : /u01/app/oraInventory   from           : /u01/11.2.0/grid/oraInst.locOPatch version    : 11.2.0.3.12OUI version       : 11.2.0.4.0Log file location : /u01/11.2.0/grid/cfgtoollogs/opatch/opatch2016-03-25_16-43-33PM_1.logLsinventory Output file location : /u01/11.2.0/grid/cfgtoollogs/opatch/lsinv/lsinventory2016-03-25_16-43-33PM.txt--------------------------------------------------------------------------------Local Machine Information::Hostname: node1-11gr2ARU platform id: 226ARU platform description:: Linux x86-64Installed Top-level Products (1):Oracle Grid Infrastructure 11g                                       11.2.0.4.0There are 1 products installed in this Oracle Home.Interim patches (3) :Patch  21948355     : applied on Fri Mar 25 13:55:28 HKT 2016Unique Patch ID:  19576928Patch description:  "ACFS Patch Set Update : 11.2.0.4.160119 (21948355)"   Created on 18 Nov 2015, 00:55:35 hrs PST8PDT   Bugs fixed:     21369858, 16318126, 19690653, 17503605, 17203009, 17359415, 20140148     17611362, 17164243, 19053182, 17696547, 17488768, 18168684, 21519796     18143006, 21208140, 17428148, 17070158, 20438706, 17510275, 17172303     18610307, 17376318, 17721778, 17699423, 18915417, 18155334, 18321597     19919907, 18185024, 17636008, 17363999, 20681968, 17475946Patch  21948348     : applied on Fri Mar 25 13:52:44 HKT 2016Unique Patch ID:  19576928Patch description:  "OCW Patch Set Update : 11.2.0.4.160119 (21948348)"   Created on 13 Dec 2015, 23:42:28 hrs PST8PDT   Bugs fixed:     19270660, 18328800, 18508710, 18691572, 20038451, 21251192, 21232394     20365005, 17750548, 17387214, 17617807, 14497275, 20219458, 17733927     18180541, 18962892, 17292250, 17378618, 16759171, 20110156, 17843489Patch  21948347     : applied on Fri Mar 25 13:47:49 HKT 2016Unique Patch ID:  19564435Patch description:  "Database Patch Set Update : 11.2.0.4.160119 (21948347)"   Created on 14 Dec 2015, 03:31:48 hrs PST8PDTSub-patch  21352635; "Database Patch Set Update : 11.2.0.4.8 (21352635)"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)"Rac system comprising of multiple nodes  Local node = node1-11gr2  Remote node = node2-11gr2--------------------------------------------------------------------------------OPatch succeeded.1.6 [b]升级RDBMS PSU[/b](1) 执行pre 脚本su – oracle执行DB组件的pre脚本,以oracle用户执行:/home/oracle/325/22191577/21948348/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME/home/oracle/325/22191577/21948348/custom/scripts/prepatch.sh completed successfully.(2) 应用数据库补丁应用DB补丁,以oracle用户执行:cd /u01/app/oracle/product/11.2.0/db_1/OPatch./opatch napply -oh $ORACLE_HOME -local /home/oracle/325/22191577/21948348/custom/server/21948348./opatch napply -oh $ORACLE_HOME -local /home/oracle/325/22191577/21948347(3) 执行post脚本运行DB组件post脚本,以oracle用户执行:/home/oracle/325/22191577/21948348/custom/scripts/postpatch.sh -dbhome $ORACLE_HOMEReading /u01/oracle/product/11.2.0/db_1/install/params.ora..Reading /u01/oracle/product/11.2.0/db_1/install/params.ora..Parsing file /u01/oracle/product/11.2.0/db_1/bin/racgwrapParsing file /u01/oracle/product/11.2.0/db_1/bin/srvctlParsing file /u01/oracle/product/11.2.0/db_1/bin/srvconfigParsing file /u01/oracle/product/11.2.0/db_1/bin/cluvfyVerifying file /u01/oracle/product/11.2.0/db_1/bin/racgwrapVerifying file /u01/oracle/product/11.2.0/db_1/bin/srvctlVerifying file /u01/oracle/product/11.2.0/db_1/bin/srvconfigVerifying file /u01/oracle/product/11.2.0/db_1/bin/cluvfyReapplying file permissions on /u01/oracle/product/11.2.0/db_1/bin/racgwrapReapplying file permissions on /u01/oracle/product/11.2.0/db_1/bin/srvctlReapplying file permissions on /u01/oracle/product/11.2.0/db_1/bin/srvconfigReapplying file permissions on /u01/oracle/product/11.2.0/db_1/bin/cluvfyReapplying file permissions on /u01/oracle/product/11.2.0/db_1/bin/diskmon.binReapplying file permissions on /u01/oracle/product/11.2.0/db_1/bin/lsnodesReapplying file permissions on /u01/oracle/product/11.2.0/db_1/bin/osdbagrpReapplying file permissions on /u01/oracle/product/11.2.0/db_1/bin/rawutlReapplying file permissions on /u01/oracle/product/11.2.0/db_1/srvm/admin/ractransReapplying file permissions on /u01/oracle/product/11.2.0/db_1/srvm/admin/getcrshomeReapplying file permissions on /u01/oracle/product/11.2.0/db_1/bin/gnsdReapplying file permissions on /u01/oracle/product/11.2.0/db_1/bin/crsdiag.plPostpatch completed successfully(4) 添加rdbms并启动crssu – root/u01/11.2.0/grid/rdbms/install/rootadd_rdbms.sh/u01/11.2.0/grid/crs/install/rootcrs.pl -patch其中: /u01/11.2.0/grid 为$GRID_HOME目录(5) 节点2重复以上步骤(6) 两个节点验证DB升级是否成功[oracle@node1-11gr2 OPatch]$ ./opatch  lspatches21948347;Database Patch Set Update : 11.2.0.4.160119 (21948347)21948348;OCW Patch Set Update : 11.2.0.4.160119 (21948348)OPatch succeeded.[oracle@node1-11gr2 OPatch]$ ./opatch lsinventoryOracle Interim Patch Installer version 11.2.0.3.12Copyright (c) 2016, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/11.2.0/db_1Central Inventory : /u01/app/oraInventoryfrom           : /u01/app/oracle/product/11.2.0/db_1/oraInst.locOPatch version    : 11.2.0.3.12OUI version       : 11.2.0.4.0Log file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2016-03-25_17-01-51PM_1.logLsinventory Output file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2016-03-25_17-01-51PM.txt--------------------------------------------------------------------------------Local Machine Information::Hostname: node1-11gr2ARU platform id: 226ARU platform description:: Linux x86-64Installed Top-level Products (1):Oracle Database 11g                                                  11.2.0.4.0There are 1 products installed in this Oracle Home.Interim patches (2) :Patch  21948347     : applied on Fri Mar 25 14:51:30 HKT 2016Unique Patch ID:  19564435Patch description:  "Database Patch Set Update : 11.2.0.4.160119 (21948347)"Created on 14 Dec 2015, 03:31:48 hrs PST8PDTSub-patch  21352635; "Database Patch Set Update : 11.2.0.4.8 (21352635)"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:17288409, 21051852, 18607546, 17205719, 17811429, 17816865, 20506699 17922254, 17754782, 16934803, 13364795, 17311728, 17441661, 17284817Patch  21948348     : applied on Fri Mar 25 14:33:42 HKT 2016Unique Patch ID:  19576928Patch description:  "OCW Patch Set Update : 11.2.0.4.160119 (21948348)"Created on 13 Dec 2015, 23:42:11 hrs PST8PDTBugs fixed: 19270660, 18328800, 18508710, 18691572, 20038451, 21251192, 2123239420365005, 17750548, 17387214, 17617807, 14497275, 20219458, 17733927Rac system comprising of multiple nodesLocal node = node1-11gr2Remote node = node2-11gr2--------------------------------------------------------------------------------OPatch succeeded.1.7 [b]升级数据字典[/b]对于现有的DB 执行升级字典操作,oracle用户执行,在一个节点执行就可以。cd $ORACLE_HOME/rdbms/adminsqlplus /nologSQL> CONNECT / AS SYSDBASQL> STARTUPSQL> @ catbundle.sql psu applySQL> QUIT1.8 [b]编译无效对象[/b]执行utlrp 脚本 并重启DB 变异无效对象SQL> @ ?/rdbms/admin/utlrp1.9 [b]重启数据库,两个节点执行[/b]/u01/11.2.0/grid/bin/crsctl stop crs/u01/11.2.0/grid/bin/crsctl start crs1.10 [b]验证数据字典升级是否成功[/b]set line 150col ACTION_TIME for a30col ACTION for a8col NAMESPACE for a8col VERSION for a10col BUNDLE_SERIES for a5col COMMENTS for a20select * 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.016-NOV-15 08.01.16.766246 PM   APPLY    SERVER   11.2.0.4            0 PSU   Patchset 11.2.0.2.025-MAR-16 03.36.13.857424 PM   APPLY    SERVER   11.2.0.4       160119 PSU   PSU 11.2.0.4.1601191.11 [b]重启应用程序[/b]1.12 [b]参考文档[/b]Oracle Grid Infrastructure 11.2.0.4.x Patch Set Update SUPPLEMENTAL README (文档 ID 1641136.1)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: