19.3 GI DB打补丁19.8概要记录

p31305339_190000_Linux-x86-64/README.html
根据如上补丁集自带文档大致操作步骤概要如下。

■■GIHOME、DBHOME替换已有的opatch工具
unzip p6880880_190000_Linux-x86-64.zip -d $ORACLE_HOME
$ORACLE_HOME/OPatch/opatch lsinventory -detail -oh $ORACLE_HOME

■■1.2.1.4 Run OPatch Conflict Check
---For Grid Infrastructure Home, as home user:
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/soft/patch/31305339/31281355
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/soft/patch/31305339/31305087
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/soft/patch/31305339/31304218
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/soft/patch/31305339/31335188
---For Database home, as home user:
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/soft/patch/31305339/31281355
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/soft/patch/31305339/31305087

■■1.2.1.5 Run OPatch SystemSpace Check
---For Grid Infrastructure Home, as home user:
Create file /tmp/patch_list_gihome.txt with the following content:
cat > /tmp/patch_list_gihome.txt << EOF
/u01/soft/patch/31305339/31281355
/u01/soft/patch/31305339/31305087
/u01/soft/patch/31305339/31304218
/u01/soft/patch/31305339/31335188
EOF
Run the opatch command to check if enough free space is available in the Grid Infrastructure Home:
$ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_gihome.txt
---For Database home, as home user:
Create file /tmp/patch_list_dbhome.txt with the following content:
cat > /tmp/patch_list_dbhome.txt << EOF
/u01/soft/patch/31305339/31281355
/u01/soft/patch/31305339/31305087
EOF
Run opatch command to check if enough free space is available in the Database Home:
$ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_dbhome.txt

■■opatchauto
Use root user to do this:
export PATH=$PATH:/u01/app/12.2.0/grid/OPatch

To patch the GI home and all Oracle RAC database homes of the same version:

opatchauto apply /u01/soft/patch/31305339

To patch only the GI home:

opatchauto apply /u01/soft/patch/31305339 -oh /u01/app/12.2.0/grid

To patch one or more Oracle RAC database homes:

opatchauto apply /u01/soft/patch/31305339 -oh /u01/app/oracle/product/12.2.0/db_1

To roll back the patch from the GI home and each Oracle RAC database home:

opatchauto rollback /u01/soft/patch/31305339 -oh /u01/app/12.2.0/grid

■■下附apply过程

发表评论

电子邮件地址不会被公开。 必填项已用*标注