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

  • 相关阅读:
    43. VUE 脚手架 2 版本 新建项目过程
    42 VUE 脚手架 安装 和 基本使用(创建项目)【命令】
    JDBC 原始缺点分析 和 解决
    39-8 WEBPACK —— 搭建本地服务器
    39-7 WEBPACK — js压缩的Plugin
    14. SpringBoot 更换指定的 日志框架
    39-6 打包html的plugin
    39-5 插件 — 添加版权的Plugin
    【HDU 1027】Ignatius and the Princess II
    【洛谷 1896】互不侵犯_new
  • 原文地址:https://www.cnblogs.com/datalife/p/4749665.html
Copyright © 2011-2022 走看看