下面显示的是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>




Related posts

coded by nessus
分享:  DeliciousGReader鲜果豆瓣CSDN网摘
Trackback

only 1 comment untill now

  1. sight@soprano.satiate” rel=”nofollow”>.…

    ñïñ çà èíôó!…

Add your comment now

无觅相关文章插件