19C打补丁提示Opatch报错
The OPatch being used has version 12.2.0.1.17 while the following patch(es) require higher versions:
Patch 31771877 requires OPatch version 12.2.0.1.19.
Please download latest OPatch from My Oracle Support.
1.去如下网站下载最新的Opatch包
https://updates.oracle.com/download/6880880.html
选择对应的数据库版本以及操作系统平台,点击download
2.下载上传最新Opatch包
3.备份Opatch ,并解压最新Opatch包
cd $ORACLE_HOME
mv OPatch OPatch_2020_bak
unzip /tmp/p6880880_190000_LINUX.zip -d ./
4.Opatch升级到12.2.0.1.23完成,但此时也有坑
执行opatch会报错
opatch version
./opatch: line 839: [: too many arguments
./opatch: line 839: [: too many arguments
Java (1.7) could not be located. OPatch cannot proceed!
OPatch returns with error code = 1
解决方法是将Opatch 的jre删除,将oracle_home下的jdk/jre拷贝到Opatch目录下
rm -rf Opatch/jre
cp -r $ORACLE_HOME/jdk/jre Opatch/
接下来就可以正常打补丁了
./runInstaller -applyRU ./31771877