OPATCH線上補丁

来源:https://www.cnblogs.com/yongestcat/archive/2019/08/27/11413431.html
-Advertisement-
Play Games

如果補丁中有online目錄就是線上補丁,不需要資料庫停機,線上的又分集群和非集群,如下查看readme可以得知線上補丁打法$ cat README.txt Oracle Database 11g Release 11.2.0.3.0ORACLE DATABASE Patch for Bug# 12... ...


如果補丁中有online目錄就是線上補丁,不需要資料庫停機,線上的又分集群和非集群,如下

image查看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.

您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • Linux(常用)命令 [TOC] 系統信息 關機 (系統的關機、重啟以及登出 ) 文件和目錄 文件搜索 掛載一個文件系統 磁碟空間 用戶和群組 文件的許可權 使用 "+" 設置許可權,使用 " " 用於取消 打包和壓縮文件 RPM 包 (Fedora, Redhat及類似系統) shell rpm i ...
  • Linux 基礎學習2 [TOC] 文件目錄結構 文件和目錄被組織成一顆倒置的樹狀結構 文件系統從根開始,“/” 文件名稱嚴格區分大小寫 隱藏文件以"."開頭 路徑的分隔符為"/" 文件命名規範 文件字元最長為255個字元 包括路徑在內文件名稱最長為4095個 顏色表示 藍色文件 目錄 綠色文件 可 ...
  • vim是linux和mac中常用到的編輯器。 其分為4種模式: normal模式:普通模式,瀏覽作用 insert模式: i(insert) 在當前游標處進行插入 a(append) 在當前游標後進行插入 o(open a line below) 在當前行下進行插入 I 在當前行首進行插入 A 在當 ...
  • 分區的基礎知識: 模式:mbr分區: 1、最多支持四個主分區 2、系統只能安裝主分區 3、擴展分區要占一個主分區 4、MBR最大隻支持2TB,但擁有最好的相容性 gtp分區: 1、支持無限多個主分區(但操作系統可能限制,比如windows下最多128個分區) 2、最大支持18EB的大容量(EB=10 ...
  • DATEPART() 函數用於返回日期/時間的單獨部分,比如年、月、日、小時、分鐘等等。 DATEDIFF() 函數返回兩個日期之間的時間差。 計算兩個時間差 相差年數:SELECT DATEDIFF(YEAR,'2017-07-01 11:25:52','2018-07-02 12:25:52') ...
  • 一、Phoenix簡介 是 HBase 的開源 SQL 中間層,它允許你使用標準 JDBC 的方式來操作 HBase 上的數據。在 之前,如果你要訪問 HBase,只能調用它的 Java API,但相比於使用一行 SQL 就能實現數據查詢,HBase 的 API 還是過於複雜。 的理念是 ,即你可以 ...
  • 腳本: 腳本運行結果: ...
  • 一、前言 本文主要介紹 Hbase 常用的三種簡單的容災備份方案,即 CopyTable 、 Export / Import 、 Snapshot 。分別介紹如下: 二、CopyTable 2.1 簡介 CopyTable 可以將現有表的數據複製到新表中,具有以下特點: 支持時間區間 、row 區間 ...
一周排行
    -Advertisement-
    Play Games
  • 移動開發(一):使用.NET MAUI開發第一個安卓APP 對於工作多年的C#程式員來說,近來想嘗試開發一款安卓APP,考慮了很久最終選擇使用.NET MAUI這個微軟官方的框架來嘗試體驗開發安卓APP,畢竟是使用Visual Studio開發工具,使用起來也比較的順手,結合微軟官方的教程進行了安卓 ...
  • 前言 QuestPDF 是一個開源 .NET 庫,用於生成 PDF 文檔。使用了C# Fluent API方式可簡化開發、減少錯誤並提高工作效率。利用它可以輕鬆生成 PDF 報告、發票、導出文件等。 項目介紹 QuestPDF 是一個革命性的開源 .NET 庫,它徹底改變了我們生成 PDF 文檔的方 ...
  • 項目地址 項目後端地址: https://github.com/ZyPLJ/ZYTteeHole 項目前端頁面地址: ZyPLJ/TreeHoleVue (github.com) https://github.com/ZyPLJ/TreeHoleVue 目前項目測試訪問地址: http://tree ...
  • 話不多說,直接開乾 一.下載 1.官方鏈接下載: https://www.microsoft.com/zh-cn/sql-server/sql-server-downloads 2.在下載目錄中找到下麵這個小的安裝包 SQL2022-SSEI-Dev.exe,運行開始下載SQL server; 二. ...
  • 前言 隨著物聯網(IoT)技術的迅猛發展,MQTT(消息隊列遙測傳輸)協議憑藉其輕量級和高效性,已成為眾多物聯網應用的首選通信標準。 MQTTnet 作為一個高性能的 .NET 開源庫,為 .NET 平臺上的 MQTT 客戶端與伺服器開發提供了強大的支持。 本文將全面介紹 MQTTnet 的核心功能 ...
  • Serilog支持多種接收器用於日誌存儲,增強器用於添加屬性,LogContext管理動態屬性,支持多種輸出格式包括純文本、JSON及ExpressionTemplate。還提供了自定義格式化選項,適用於不同需求。 ...
  • 目錄簡介獲取 HTML 文檔解析 HTML 文檔測試參考文章 簡介 動態內容網站使用 JavaScript 腳本動態檢索和渲染數據,爬取信息時需要模擬瀏覽器行為,否則獲取到的源碼基本是空的。 本文使用的爬取步驟如下: 使用 Selenium 獲取渲染後的 HTML 文檔 使用 HtmlAgility ...
  • 1.前言 什麼是熱更新 游戲或者軟體更新時,無需重新下載客戶端進行安裝,而是在應用程式啟動的情況下,在內部進行資源或者代碼更新 Unity目前常用熱更新解決方案 HybridCLR,Xlua,ILRuntime等 Unity目前常用資源管理解決方案 AssetBundles,Addressable, ...
  • 本文章主要是在C# ASP.NET Core Web API框架實現向手機發送驗證碼簡訊功能。這裡我選擇是一個互億無線簡訊驗證碼平臺,其實像阿裡雲,騰訊雲上面也可以。 首先我們先去 互億無線 https://www.ihuyi.com/api/sms.html 去註冊一個賬號 註冊完成賬號後,它會送 ...
  • 通過以下方式可以高效,並保證數據同步的可靠性 1.API設計 使用RESTful設計,確保API端點明確,並使用適當的HTTP方法(如POST用於創建,PUT用於更新)。 設計清晰的請求和響應模型,以確保客戶端能夠理解預期格式。 2.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...