opatch

环境:
OGG版本:12.3.0.4
db:11.2.0.4

 

1.使用opatch的时候报如下错误
[oracle@ora11g OPatch]$ ./opatch -version -jre /usr/local/java/jdk1.8.0_301

OPatch Version : 12.2.0.1.6
OUI Version : 11.2.0.4.0
The OPatch version is not applicable for current OUI version.

Since OUI Version starts with 11.2, Please go to ‘My Oracle Support‘ and get right OPatch 11.2.*.*.* based on patch 6880880, release version 11.2.0.0.0 and appropriate platform.

OPatch failed with error code 19
[oracle@ora11g OPatch]$ pwd
/goldengate12c_bak/OPatch

2.下载跟数据库版本一致的opatch
下载地址
https://updates.oracle.com/download/6880880.html
根据数据库的版本选择相应的版本
我这里下载的是p6880880_112000_LINUX.zip

 

3.拷贝到数据库相应目录
[oracle@ora11g aa]$ cp p6880880_112000_LINUX.zip /goldengate12c_bak/

 

4.备份原来的目录
[oracle@ora11g goldengate12c_bak]$ mv OPatch OPatch_bak

 

5.解压
[oracle@ora11g goldengate12c_bak]$ unzip p6880880_112000_LINUX.zip

 

6.查看
[oracle@ora11g OPatch]$ ./opatch version -jre /usr/local/java/jdk1.8.0_301
OPatch Version: 11.2.0.3.29

OPatch succeeded.

 

opatch

上一篇:RocketMQ-ACL权限管理


下一篇:C# 获取页面Post过来的数据