美创科技技术社区

注册

 

发新话题 回复该主题

快速手动打11.2.0.x以上的GI的PSU [复制链接]

1#

下面显示的是2个节点的rac

    具体只要把相应的<>中的内容进行替换即可使用,node1,node2代表执行节点的编号

    <ORACLE_HOME>
    <GI_HOME>
    <UNZIPPED_PATCH_LOCATION>
    <GI_components_number>
    <DB_PSU_number>
    <status file location>
    <node name1>
    <node name2>

    1.oracle用户
    node1 $ <ORACLE_HOME>/bin/srvctl stop home -o <ORACLE_HOME> -s <status file location> -n <node name1>
    node2 $ <ORACLE_HOME>/bin/srvctl stop home -o <ORACLE_HOME> -s <status file location> -n <node name2>

    2.root用户
    node1 # <GI_HOME>/crs/install/rootcrs.pl -unlock
    node2 # <GI_HOME>/crs/install/rootcrs.pl -unlock

    3.grid用户
    node1 $ <GI_HOME>/OPatch/opatch napply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/<GI_components_number>
    node1 $ <GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/<DB_PSU_number>

    node2 $ <GI_HOME>/OPatch/opatch napply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/<GI_components_number>
    node2 $ <GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/<DB_PSU_number>

    4.oracle用户
    node1 $ <UNZIPPED_PATCH_LOCATION>/<GI_components_number>/custom/server/<GI_components_number>/custom/scripts/prepatch.sh -dbhome <ORACLE_HOME>
    node2 $ <UNZIPPED_PATCH_LOCATION>/<GI_components_number>/custom/server/<GI_components_number>/custom/scripts/prepatch.sh -dbhome <ORACLE_HOME>

    5.oracle用户
    node1 $ <ORACLE_HOME>/OPatch/opatch napply -oh <ORACLE_HOME> -local <UNZIPPED_PATCH_LOCATION>/<GI_components_number>/custom/server/<GI_components_number>
    node1 $ <ORACLE_HOME>/OPatch/opatch apply -oh <ORACLE_HOME> -local <UNZIPPED_PATCH_LOCATION>/<DB_PSU_number>

    node2 $ <ORACLE_HOME>/OPatch/opatch napply -oh <ORACLE_HOME> -local <UNZIPPED_PATCH_LOCATION>/<GI_components_number>/custom/server/<GI_components_number>
    node2 $ <ORACLE_HOME>/OPatch/opatch apply -oh <ORACLE_HOME> -local <UNZIPPED_PATCH_LOCATION>/<DB_PSU_number>

    6.oracle用户
    node1 $ <UNZIPPED_PATCH_LOCATION>/<GI_components_number>/custom/server/<GI_components_number>/custom/scripts/postpatch.sh -dbhome <ORACLE_HOME>
    node2 $ <UNZIPPED_PATCH_LOCATION>/<GI_components_number>/custom/server/<GI_components_number>/custom/scripts/postpatch.sh -dbhome <ORACLE_HOME>

    7.root用户
    node1 # <GI_HOME>/rdbms/install/rootadd_rdbms.sh
    node1 # <GI_HOME>/crs/install/rootcrs.pl -patch

    node2 # <GI_HOME>/rdbms/install/rootadd_rdbms.sh
    node2 # <GI_HOME>/crs/install/rootcrs.pl -patch

    8.oracle用户
    node1 $ <ORACLE_HOME>/bin/srvctl start home -o <ORACLE_HOME> -s <status file location> -n <node name1>
    node2 $ <ORACLE_HOME>/bin/srvctl start home -o <ORACLE_HOME> -s <status file location> -n <node name2>

分享 转发
TOP
发新话题 回复该主题