Oracle 12c RAC手工打补丁过程

Oracle 12c RAC手工打补丁过程

平台:AIX 7.2 + oracle 12.2.0.1

有时候因为遭遇BUG或者其他一些原因,需要在集群没起来的时候打补丁。简单记录下步骤:

1.先拿到版本匹配的Opatch和PSU补丁;
2.通过emocmrsp创建OCM响应文件;
3.停集群软件,unlock Grid_HOME
# /u01/app/12.2.0.1/grid/crs/install/rootcrs.pl -prepatch
4.手工逐个打GI补丁

$ /u01/app/12.2.0.1/grid/OPatch/opatch apply -oh $GRID_HOME -local /media/GI_PSU -silent -ocmrf /home/grid/ocm.rsp

5.准备打DB补丁
$ /media/DB_PSU/custom/scripts/prepatch.sh -dbhome /u01/app/oracle/product/12.2.0/dbhome_1

6.手工逐个打DB补丁
$ /u01/app/oracle/product/12.2.0/dbhome_1/OPatch/opatch apply -oh /u01/app/oracle/product/12.2.0/dbhome_1 -local /media/DB_PSU/ -silent -ocmrf /home/oracle/ocm.rsp

7.使用oracle用户运行postpatch.sh
$ /media/GI_PSU/custom/scripts/postpatch.sh -dbhome /u01/app/oracle/product/12.2.0/dbhome_1

8.使用root用户运行rootadd_rdbms.sh和rootcrs,lock GRID_HOME并起集群
# /u01/app/12.2.0.1/grid/rdbms/install/rootadd_rdbms.sh
# /u01/app/12.2.0.1/grid/crs/install/rootcrs.pl -postpatch

posted @ 2021-10-18 15:40  曹翼宾的自留地  阅读(811)  评论(0编辑  收藏  举报