zoukankan      html  css  js  c++  java
  • Linux 11g rac PSU

    PSU补丁:p22191577_112040_Linux-x86-64.zip
    OPATCH工具:p6880880_112000_LINUX.zip

    解压OPATCH工具 覆盖到/u01/11.2.0/grid/和/u01/app/oracle/product/11.2.0/db_1这两个目录。(两上节点都执行)

    生成OCM file(grid用户)
    /u01/11.2.0/grid/OPatch/ocm/bin
    ./emocmrsp

    先升GI:两个节点执行:
    root执行:
    unzip p22191577_112040_Linux-x86-64.zip
    chown -R grid:oinstall 22191577
    chmod -R 775 22191577
    /u01/11.2.0/grid/OPatch/opatch auto /soft/orcapp/22191577 -oh /u01/11.2.0/grid/ -ocmrf /u01/11.2.0/grid/OPatch/ocm/bin/ocm.rsp

    再升DB 两个节点执行:
    root执行:
    chown -R oracle:oinstall 22191577
    chmod -R 775 22191577
    /u01/11.2.0/grid/OPatch/opatch auto /soft/orcapp/22191577 -oh /u01/app/oracle/product/11.2.0/db_1/ -ocmrf /u01/11.2.0/grid/OPatch/ocm/bin/ocm.rsp


    grid用户查看GI版本:

    /u01/11.2.0/grid/OPatch/opatch lsinventory

    oracle用户查看DB版本:
    /u01/app/oracle/product/11.2.0/db_1/OPatch/opatch lsinventory

    更新dba_registry_history视图信息

    [oracle@rac1 ~]$ sqlplus / as sysdba

    SQL> @?/rdbms/admin/catbundle.sql psu apply

    确认升级后的dba_registry_history视图:

    查看补丁

    col ACTION_TIME for a10
    col ACTION for a10
    col NAMESPACE for a10
    col VERSION for a10
    col COMMENTS for a40
    set linesize 250
    select * from dba_registry_history;

    su - oracle
    opatch lsinv


    For each database instance running on the Oracle home being patched, connect to the database using SQL*Plus. Connect as SYSDBA and run the catbundle.sql script as follows:

    cd $ORACLE_HOME/rdbms/admin
    sqlplus /nolog
    SQL> CONNECT / AS SYSDBA
    SQL> STARTUP
    SQL> @catbundle.sql psu apply
    SQL> QUIT

  • 相关阅读:
    OK335xS-Android mkmmc-android-ubifs.sh hacking
    OK335xS-Android pack-ubi-256M.sh hacking
    OK335xS Ubuntu 12.04.1 版本 Android 开发环境搭建
    Qt Quick Hello World hacking
    Qt QML referenceexamples attached Demo hacking
    QT 5.4.1 for Android Ubuntu QtWebView Demo
    I.MX6 working note for high efficiency
    QT 5.4.1 for Android Windows环境搭建
    mkbootimg hacking
    Generate And Play A Tone In Android hacking
  • 原文地址:https://www.cnblogs.com/datalife/p/4749665.html
Copyright © 2011-2022 走看看