• 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

  • 相关阅读:
    1592:【例 1】国王
    状态压缩类动态规划笔记
    1300:鸡蛋的硬度
    1263:【例9.7】友好城市
    第四部分-并发编程案例分析4:高性能数据库连接池HikariCP
    容器基础3:容器镜像
    第四部分-并发编程案例分析3:高性能队列Disruptor
    容器基础2:隔离与限制
    第四部分-并发编程案例分析1:限流Guava RateLimiter
    容器基础1:进程
  • 原文地址:https://www.cnblogs.com/datalife/p/4749665.html
Copyright © 2020-2023  润新知