如果补丁中有online目录就是在线补丁,不需要数据库停机,在线的又分集群和非集群,如下

查看readme可以得知在线补丁打法

$ cat README.txt
Oracle Database 11g Release 11.2.0.3.0
ORACLE DATABASE Patch for Bug# 12834800 for Linux-x86 Platforms (RAC Rolling Installable and Online Installable Patch) (DG Rolling Installable) Released: Sat Jan 28 10:03:32 2012 This document describes how you can install the ORACLE DATABASE combo patch for bug# 12834800 on your Oracle Database 11g Release 11.2.0.3.0. A combo patch is a patch that can be applied either in offline mode or in online mode. For information about offline and online modes of patching, see My Oracle Support note 761111.1 available at:
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=761111.1 (1) Prerequisites
------------------
Before you install or deinstall the patch, ensure that you meet the following requirements:
Note: In case of an Oracle RAC environment, meet these prerequisites on each of the nodes. 1. Ensure that the Oracle Database on which you are installing the patch or from which you are rolling back the patch is Oracle Database 11g Release (11.2.0.3.0). 2. Oracle recommends you to use the latest version of OPatch.
If you do not have the latest version, then follow the instructions outlined in the My Oracle Support note 224346.1 available at:
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=224346.1 3. Ensure that you set the ORACLE_HOME environment variable to the Oracle home of the Oracle Database. 4. Ensure that you set the PATH environment variable to include the location of the unzip executable, and the /bin and the /OPatch directories present in the Oracle home of the Oracle Database. 5. Ensure that you verify the Oracle Inventory because OPatch accesses it to install the patches. To verify the inventory, run the following command. If the command displays some errors, then contact Oracle Support and resolve the issue.
$ opatch lsinventory 6. (Only for Offline Patching) Ensure that you shut down all the services running from the Oracle home. 7. (Only for Online Patching) Ensure that all the services in the Oracle home are up and running. 8. (Only for Online Patching) Ensure that you maintain adequate memory on your system to apply this online patch. To calculate the amount of memory required for this online patch, use the following formula:
Memory Consumed = (Number of Oracle Processes + 1) X (Size of Patched .pch File) Note:
- For UNIX, the number of Oracle processes is determined by checking the parameter "processes" in the database by querying v$parameter. For Microsoft Windows, the number of Oracle processes is always zero (0).
- The .pch file is available under /files/hpatch/ directory. (2) Installation
-----------------
This section describes the following modes you can use to install the combo patch. Use the one that best suits your requirement.
- Installing in Offline Mode
- Installing in Online Mode (2.1) Installing in Offline Mode
-----------------------------------
To install the patch in offline mode, follow these steps:
Note: In case of an Oracle RAC environment, perform these steps on each of the nodes. 1. Maintain a location for storing the contents of the patch ZIP file. In the rest of the document, this location (absolute path) is referred to as . 2. Extract the contents of the patch ZIP file to the location you created in Step (1). To do so, run the following command:
$ unzip -d p12834800_112030_LINUX.zip 3. Navigate to the /12834800 directory:
$ cd /12834800 4. Install the patch by running the following command:
$ opatch apply Note:
When OPatch starts, it validates the patch and ensures that there are no conflicts with the software already installed in the ORACLE_HOME of the Oracle Database. OPatch categorizes conflicts
into the following types:
- Conflicts with a patch already applied to the ORACLE_HOME - In this case, stop the patch installation and contact Oracle Support Services.
- Conflicts with a patch already applied to the ORACLE_HOME that is a subset of the patch you are trying to apply - In this case, continue with the patch installation because the new patch
contains all the fixes from the existing patch in the ORACLE_HOME. The subset patch will automatically be rolled back prior to the installation of the new patch. 5. Start the services from the Oracle home. (2.2) Installing in Online Mode
-----------------------------------
To install the patch in online mode, follow these steps:
Note: In case of an Oracle RAC environment, perform these steps on each of the nodes. 1. Maintain a location for storing the contents of the patch ZIP file. In the rest of the document, this location (absolute path) is referred to as . 2. Extract the contents of the patch ZIP file to the location you created in Step (1). To do so, run the following command:
$ unzip -d p12834800_112030_LINUX.zip 3. Navigate to the /12834800 directory:
$ cd /12834800 4. Install the patch by running the following command:
- For Non-RAC Environments (Standalone Databases):
$ opatch apply online -connectString :::
- For RAC Environments:
$ opatch apply online -connectString :::,:::,::: Note:
- Run the previous command on the first node of the Oracle RAC system, and specify details of each node separated by a comma. In the command, NodeN refers to the different nodes of the
Oracle RAC system. Once the patch is applied on the first node, OPatch automatically moves over and patches the next node you have specified in the comamnd.
- When OPatch starts, it validates the patch and ensures that there are no conflicts with the software already installed in the ORACLE_HOME of the Oracle Database. OPatch categorizes conflicts
into the following types:
- Conflicts with a patch already applied to the ORACLE_HOME that is a subset of the patch you are trying to apply - In this case, continue with the patch installation because the new patch
contains all the fixes from the existing patch in the ORACLE_HOME. The subset patch will automatically be rolled back prior to the installation of the new patch.
- Conflicts with a patch already applied to the ORACLE_HOME - In this case, stop the patch installation and contact Oracle Support Services. 5. Start the services from the Oracle home. (3) Deinstallation
--------------------
This section describes the following modes you can use to deinstall the combo patch. Use the one that best suits your requirement.
- Deinstalling in Offline Mode
- Deinstalling in Online Mode (3.1) Deinstalling in Offline Mode
-------------------------------------
To deinstall the patch in offline mode, follow these steps:
Note: In case of an Oracle RAC environment, perform these steps on each of the nodes. 1. Navigate to the /12834800 directory:
$ cd /12834800 2. Deinstall the patch by running the following command:
$ opatch rollback -id 12834800 3. Start the services from the Oracle home. (3.2) Deinstalling in Online Mode
--------------------------------------
To deinstall the patch in online mode, follow these steps:
Note: In case of an Oracle RAC environment, perform these steps on each of the nodes. 1. Navigate to the /12834800 directory:
$ cd /12834800 2. Deinstall the patch by running the following command:
- For Non-RAC Environments (Standalone Databases):
$ opatch rollback -id 12834800 -connectString :::
- For RAC Environments:
$ opatch rollback -id 12834800 -connectString :::,:::,::: Note:
Run the previous command on the first node of the Oracle RAC system, and specify details of each node separated by a comma. In the command, NODEn refers to the different nodes of the
Oracle RAC system. Once the patch is rolled back from the first node, OPatch automatically moves over and rolls back the patch from the next node you have specified in the comamnd. 3. Start the services from the Oracle home. (4) Bugs Fixed by This Patch
---------------------------------
The following are the bugs fixed by this patch:
12834800: ORA-7445 [QKXRPXFORMUNM()+92] --------------------------------------------------------------------------
Copyright 2012, Oracle and/or its affiliates. All rights reserved.

打个补丁

$ /u01/app/oracle/product/11.2.0/db_1/OPatch/opatch apply online -connectString PROD4:sys:oracle:
Invoking OPatch 11.2.0.1.7 Oracle Interim Patch Installer version 11.2.0.1.7
Copyright (c) 2011, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/product/11.2.0/db_1
Central Inventory : /u01/app/oraInventory
from : /etc/oraInst.loc
OPatch version : 11.2.0.1.7
OUI version : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2019-04-01_16-45-58PM.log The patch should be applied/rolled back in '-all_nodes' mode only.
Converting the RAC mode to '-all_nodes' mode.
Applying interim patch '12834800' to OH '/u01/app/oracle/product/11.2.0/db_1'
Verifying environment and performing prerequisite checks... Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Backing up files... Patching component oracle.rdbms, 11.2.0.3.0...
The patch will be installed on active database instances.
Installing and enabling the online patch 'bug12834800.pch', on database 'PROD4'. Patch 12834800 successfully applied
Log file location: /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2019-04-01_16-45-58PM.log OPatch succeeded.
$ /u01/app/oracle/product/11.2.0/db_1/OPatch/opatch lsinventory
Invoking OPatch 11.2.0.1.7 Oracle Interim Patch Installer version 11.2.0.1.7
Copyright (c) 2011, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/product/11.2.0/db_1
Central Inventory : /u01/app/oraInventory
from : /etc/oraInst.loc
OPatch version : 11.2.0.1.7
OUI version : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2019-04-01_16-48-44PM.log Lsinventory Output file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2019-04-01_16-48-44PM.txt --------------------------------------------------------------------------------
Installed Top-level Products (1): Oracle Database 11g 11.2.0.3.0
There are 1 products installed in this Oracle Home. Interim patches (1) : Patch (online) 12834800: applied on Mon Apr 01 16:47:17 CST 2019
Unique Patch ID: 14522435
Created on 28 Jan 2012, 10:16:59 hrs PST8PDT
Bugs fixed:
12834800 -------------------------------------------------------------------------------- OPatch succeeded.

OPATCH在线补丁的更多相关文章

  1. 【opatch打补丁】oracle10.2.0.5.0升级10.2.0.5.9 for linux

    https://wenku.baidu.com/view/c38702b56edb6f1afe001f59.html    这篇文章也不错,可参考 任务:oracle 10.2.0.5.0 打补丁升级 ...

  2. 因为.patch_storage目录丢失,导致opatch打补丁失败

    一套新装的ORACLE Restart环境(11.2.0.3.0),计划最新的PSU,在使用opath auto方式安装补丁时报错,表面上的错误信息提示opatch工具不满足版本要求: [root@d ...

  3. 使用opatch工具 打补丁Patch 21352635 -(Database Patch Set Update 11.2.0.4.8)

    Patch 21352635 - Database Patch Set Update 11.2.0.4.8 一.OPatch工具检查及升级 OPatch工具包,在安装目录$ORACLE_HOME下,P ...

  4. opatch on-line patch and standby-fisrt patch

    opatch on-line patch and standby-fisrt patch on-line patch 有缺陷,不建议使用,standby-fisrt patch 可以考虑使用 #### ...

  5. Oracle 11.2.0.4 RAC安装最新PSU补丁

    环境:两节点RAC(RHEL 6.4 + GI 11.2.0.4 + Oracle 11.2.0.4) 需求:安装最新PSU补丁11.2.0.4.7 1.下载补丁和最新OPatch 2.检查数据库当前 ...

  6. ORACLE opatch命令学习实践

      opatch 是ORACLE开发的用来安装,卸载,检测patch冲突.管理ORACLE所有已经安装的补丁的工具,当然这是一个命令工具.opatch命令工具一般位于$ORACLE_HOME/OPat ...

  7. Windows下oracle打补丁步骤

    1.Oracle官网下载对应的补丁文件(需要oracle支持账号才能下载) 2.设置ORACLE_HOME set oracle_home=F:\oracle\product\11.2.0\dbhom ...

  8. 11.2.0.3.7 PSU补丁升级

    说明:这是新上线主机,还没有建库的.如果库已经存在,那么最后还要进行刷库操作呢! 环境:SUSE Linux Enterprise Server 11 sp1 (x86_64) 要求将数据库从11.2 ...

  9. Opatch使用细则

    Patch 21352635 - Database Patch Set Update 11.2.0.4.8 一.OPatch工具检查及升级 OPatch工具包,在安装目录$ORACLE_HOME下,P ...

随机推荐

  1. Docker常用命令(五)

    一.帮助命令 docker version docker info # 重要 docker --help 可以使用docker COMMAND --help 查看某个命令具体如何使用. 二.镜像命令 ...

  2. 深度学习accuracy

    accuracy=(1+3)/(1+2+3+4),即在所有样本(例子)中做出正确预测的的比例,或者说正确预测的样本数占总预测样本数的比值. precision=(1)/(1+2),指的是正确预测的正样 ...

  3. testcontainers 基本使用

    以下是一个简单的基于testcontainers 的测试(基于java 项目) 预备环境 因为testcontainers 基于docker 运行,所以需要安装docker 引擎 项目准备 项目结构 ...

  4. A1037 Magic Coupon (25 分)

    一.技术总结 这也是一个贪心算法问题,主要在于想清楚,怎么解决输出和最大,两个数组得确保符号相同位相乘,并且绝对值尽可能大. 可以用两个vector容器存储,然后排序从小到大或是从大到小都可以,一次从 ...

  5. java的GUI之SWT框架 配置开发环境(包含但不限于WindowBuilder完整教程,解决Unknown GUI toolkit报错,解决导入SWT包错误)

    官网(资料挺多的,API文档截图以及示例都有):https://www.eclipse.org/swt/ 克隆官方仓库 git clone --depth=1 git://git.eclipse.or ...

  6. 部署WP程序到自己的手机

    参考的地址 http://www.cnblogs.com/zigzagPath/p/3313831.html

  7. 开源基于Canal的开源增量数据订阅&消费中间件

    CanalSync canal 是阿里巴巴开源的一款基于数据库增量日志解析,提供增量数据订阅&消费,目前主要支持了MySQL(也支持mariaDB). 我开发的这个CanalSync项目 ht ...

  8. Visual Studio 调试系列8 查找导致程序崩溃的 DLL(使用模块窗口)

    系列目录     [已更新最新开发文章,点击查看详细] 如果应用程序在调用系统 DLL 或他人的代码时崩溃,则需要找出在崩溃发生时处于活动状态的 DLL. 如果在自己的程序之外的 DLL 中遇到崩溃, ...

  9. PDMan-2.1.0 正式发布:用心开源,免费的国产数据库建模工具 PowerDesigner

    PDMan是一款开源免费的数据库模型建模工具,支持Windows,Mac,Linux等操作系统,是PowerDesigner之外,更好的免费的替代方案.他具有颜值高,使用简单的特点.包含数据库建模,灵 ...

  10. Qt Quick 常用元素:Textinput 与 TextEdit 文本编辑框

    一.Textinput Textinput 用于编辑一行文本,类似于 QLineEdit. font 分组属性允许你设置 Textlnput 元素所用字体的各种属性,包括字体族(family).大 小 ...