`
helloyesyes
  • 浏览: 1326839 次
  • 性别: Icon_minigender_2
  • 来自: 武汉
文章分类
社区版块
存档分类
最新评论

How to install a patch on clusterware 11.2.0.1 into grid infrastructure home

阅读更多

When applying a needed patch to the Grid Infrastructure Home for ASM or CRS the opatch utility may error out with the messages:

ApplySession failed: ApplySession failed to prepare the system. ApplySession was not able to create the patch_storage area: /oragrid/rdb_v112/.patch_storage/<patch#_date>
System intact, OPatch will not attempt to restore the system

OPatch failed with error code 73

These errors can be found in the opatch<date_time>.log file in grid_home/cfgtoollogs/opatch directory.
The reason for these messages are the permissions of the Grid Infrastructure Home.
The grid home needs to be unlocked before a patch can be applied.


Solution


The needed command to unlock the grid home is described in

Oracle® Grid Infrastructure Installation Guide
11g Release 2 (11.2) for Linux (or other platform)
Part Number E10812-03
Chapter 5.4 Modifying Oracle Clusterware Binaries After Installation


After installation, if you need to modify the Oracle Clusterware configuration, then you must unlock the Grid home. Please check this chapter for more detailed instructions.

The basic steps needed are:

Unzip the the patch file into a patch location on all nodes. This is becuase we will do a rolling patch by
stopping processes patching the homes and starting processes one node at a time using the -local flag.

1. Stop the CRS managed resources running from DB homes ( as the DB_HOME owner ) using

$DB_HOME/bin/srvctl stop home -o <DB_HOME> -s <status file location> -n
<node name>



note the status file is created by the process

2. As root user change directory to the path Grid_home/crs/install, where Grid_home is the path to the Grid home, and unlock the Grid home using the command rootcrs.pl -unlock -crshome Grid_home, where Grid_home is the path to your Grid infrastructure home. For example, with the grid home /u01/app/11.2.0/grid, enter the following command:

# cd /u01/app/11.2.0/grid/crs/install
# perl rootcrs.pl -unlock -crshome /u01/app/11.2.0/grid


3. change user to grid software owner and apply the patch according its readme


/u01/app/11.2.0/grid/OPatch/opatch napply -oh <CRS_HOME> -local <path to patch>



4. if requested in readme file of patch run the pre script for DB component of the patch using (As DB Home Privilige User)

patch location/custom/server/patch id/custom/scripts/prepatch.sh -dbhome <DB_HOME>


5. Apply the DB patch using (As DB Home Privilige User) (if needed and stated in readme file. This example is for a bundle patch containing a CRS portion and a RDBMS portion)

<DB_HOME>/OPatch/opatch napply -oh <DB_HOME> -local <path to bundle patch>/custom/server/<patch_id>

Note here the sub-directory of the patch.

6. . Run the post script for DB component of the patch using (As DB Home Privilige User) (if requested in readme file)

patch location/custom/server/patch id/custom/scripts/postpatch.sh -dbhome <DB_HOME>


7. Run the post script (As Root Privilege User)

# cd /u01/app/11.2.0/grid/crs/install
# perl rootcrs.pl -patch



8. Start the CRS managed resources that were earlier running from DB homes using

<DB_HOME>/bin/srvctl start home -o <DB_HOME> -s <status file location> -n <node name>



9. Repeat steps 1 through 8 on each cluster member node.

These are the general commands to apply a patch to grid home. Make sure to read the readme file of the patch You are going to apply as additional steps may be needed.
The rootcrs.pl script to unlock and patch grid home may not be mentioned in the particular readme.

From Oracle

-------------------------------------------------------------------------------------------------------

Blog http://blog.csdn.net/tianlesoftware

Email: dvd.dba@gmail.com

DBA1 群:62697716(); DBA2 群:62697977() DBA3 群:62697850()

DBA 超级群:63306533(); DBA4 群: 83829929 DBA5群: 142216823

聊天 群:40132017 聊天2群:69087192

--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请

分享到:
评论

相关推荐

    oracle11.2.0.1升级11.2.0.3

    在这个场景中,我们讨论的是将Oracle 11.2.0.1版本升级到11.2.0.3的过程,这是一个常规的数据库软件更新。Oracle 11g是Oracle数据库的第11个主要版本,提供了许多增强功能和修复了早期版本中的问题。 首先,升级...

    OracleLinux6.1+Oracle11.2.0.1RAC+ASM安装过程.pdf

    - **Grid Infrastructure的安装**:RAC数据库依赖于Oracle Grid Infrastructure,其中包括了Clusterware和ASM。Clusterware负责提供集群服务、监控和管理集群资源。在安装RAC之前,先要安装Clusterware。 - **监听...

    AIX6.1+RAC 11.2.0.1+ASM安装手记

    ### AIX6.1 + RAC 11.2.0.1 + ASM 安装指南及要点 #### 一、环境描述 本章节详细介绍了用于安装 Oracle Real Application Clusters (RAC) 11.2.0.1 与 Oracle Automatic Storage Management (ASM) 的环境需求。 #...

    Oracle 11.2.0.1 install on AIX 安装手册

    ### Oracle 11.2.0.1 在 AIX 上的安装手册 #### 一、环境准备 在开始安装 Oracle 11.2.0.1 数据库之前,需要确保 AIX 操作系统的环境符合安装要求。以下是安装前的一些基本准备步骤: 1. **安装 AIX 6.1:** 首先...

    oracle v-11.2.0.4.0 Oracle 11.2.0.4 For Windows 64bit+32bit 数据库

    这个版本提供了多种组件和服务,以满足不同用户的需求,包括数据库服务器、Grid Infrastructure、客户端、Gateway软件、示例文件以及卸载工具。 1. **Database (1、2)**: 这部分是Oracle数据库的核心,包含了安装和...

    AIX6.1+RAC 11.2.0.1+ASM安装手册

    2. **Oracle Grid Infrastructure安装**:Oracle Grid Infrastructure(GI)是RAC的基础,包括Clusterware和Automatic Storage Management (ASM)。GI负责集群的管理、监控和故障恢复。安装过程中,会涉及创建全局...

    升级11.2.0.3到11.2.0.4

    ### 升级Oracle Grid Infrastructure和RAC从11.2.0.3到11.2.0.4 #### 大概步骤 在进行Oracle Grid Infrastructure (GI) 和 RAC 的版本升级之前,需要对整个升级过程有一个大致的了解。升级流程可以分为三个主要...

    在Vmware workstation Redhat6 中安装Oracle11.2.0.4 的RAC群集

    3. 安装Grid Infrastructure:在所有节点上安装Oracle Grid Infrastructure软件,这将包含Clusterware、ASM和OCR(Oracle Cluster Registry)等组件。执行`./runInstaller`,选择“安装网格基础设施并创建集群”。 ...

    ORACEL 10.2.0.1 RAC FOR redhat5.4(64bit)

    1、 安装环境 1 2、 安装前系统配置 1 2.1 存储规划 1 2.2 IP地址规划 2 2.3 创建用户、组(所有节点) 2 2.4 配置环境变量 3 2.5 系统参数调整 3 2.5.1 配置NTP服务(所有节点) 3 2.5.2 系统内核调整 3 ...

    Solaris11.1+Grid11.2.0.4+Oracle11.2.0.4 RAC安装部署手册

    Grid Infrastructure 11.2.0.4,也称为Oracle Clusterware,是Oracle RAC的基础组件,提供了集群服务和管理功能。它负责监控和管理集群节点间的通信,确保高可用性和负载均衡。安装Grid Infrastructure时,需要规划...

    oracle linux7.2 安装oracle 11.2.0.4全过程图文附各种bug解决方案

    首先,确保你拥有足够的系统资源,包括至少6.5GB的空间用于Oracle Grid Infrastructure(Grid home),以及至少1GB的临时目录空间。Oracle Clusterware、Oracle ASM以及相关的日志文件都将占用这部分空间。 在安装...

    Oracle_11gR2_RAC+DG_11.2.0.4的安装与配置(DELL_R910_RHEL_6.5) .docx

    接下来是Oracle软件的安装、ASM (Automatic Storage Management) 的配置、OCR (Oracle Cluster Registry) 和 Voting Disks的创建、Grid Infrastructure的安装以及数据库实例的创建。在每个步骤中,都要确保所有节点...

    oracle 11.2.0.2 for aix 安装过程可能出现的问题

    在Oracle 11.2.0.2 for AIX的安装过程中,可能会遇到一系列问题,这些问题不仅考验着数据库管理员的专业技能,还可能严重影响系统的稳定性和可用性。以下是对标题、描述以及部分内容中提及的关键问题的深入解析,...

    大牛出手Oracle 11.2.0.3 RAC 基于生产环境安装手册

    接着,安装前需要准备Oracle Grid Infrastructure(GI),它是Oracle RAC的基础,包含了Clusterware和Automatic Storage Management (ASM)。Clusterware负责管理集群的资源和服务,而ASM则提供自动化的存储管理功能...

    一步一步在Linux上部署11.2.0.3 RAC+Dataguard.rar

    2. **安装Grid Infrastructure**:这是Oracle RAC的基础,包含Clusterware和Automatic Storage Management (ASM)。Grid Infrastructure负责集群的管理和协调,而ASM则提供统一的存储管理。 3. **创建ASM磁盘组**:...

    ORACLE 10.2.0.1 RAC for RedHat AS4 安装(详解)

    《ORACLE 10.2.0.1 RAC for RedHat AS4 安装详解》 本指南详细阐述了如何在Red Hat Enterprise Linux AS 4 Update 2 X86_64环境下安装Oracle 10.2.0.1 Real Application Clusters (RAC)。整个过程分为两大部分:...

    11.2.0.4rac增删节点详细操作.docx

    这个过程会检查必要的文件,初始化卸载过程,并检查Oracle Home、Oracle Base、中央库存储位置以及Oracle Grid Infrastructure home的是否存在。 4. **确认和执行卸载**:工具会进一步检查集群的网络配置,确保有...

    Oracle Database 11g Release 2 (11.2.0.3.0) RAC On Oracle Linux 6.3

    8. **安装 Grid Infrastructure**:Grid Infrastructure 包括 Clusterware 和 Automatic Storage Management (ASM),它们是 RAC 的基础组件,负责集群的管理和数据存储。 9. **安装数据库**:在每个 RAC 节点上安装...

Global site tag (gtag.js) - Google Analytics