oracle 19C rolling patch点滴

2021-09-23 00:00:00 用户 专区 订阅 生产 检查

oracle 19C rolling patch

opatch的小版本12.2.0.1.25

升级OPatch 替换grid_home oracle_home下的OPatch,注意权限和属主不能变。

grid用户解压文件,如果只是打DB补丁,使用oracle用户解压并打补丁
unzip p32895426_190000_Linux-x86-64.zip

冲突检查
grid用户:
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /tmp/32895426/32904851
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /tmp/32895426/32916816
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /tmp/32895426/32915586
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /tmp/32895426/32918050

Oracle用户:
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /tmp/32895426/32904851
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /tmp/32895426/32916816

空间检查
grid用户
% cat /tmp/patch_list_gihome.txt

/tmp/32895426/32904851
/tmp/32895426/32916816
/tmp/32895426/32915586
/tmp/32895426/32918050
% $ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_gihome.txt

Oracle用户
% cat /tmp/patch_list_dbhome.txt
/tmp/32895426/32904851
/tmp/32895426/32916816

% $ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_dbhome.txt


冲突检查 root用户
In case you are applying the patch, run this command:

#GRID_HOME/OPatch/opatchauto apply /tmp/32895426 -analyze
/oracle/asm/OPatch/opatchauto apply /tmp/32895426 -analyze

自动打补丁

/oracle/asm/OPatch/opatchauto apply /tmp/32895426

相关文章