Oracle-OPatch工具执行命令时提示不能加载OUI库
2021/7/12 19:07:49
本文主要是介绍Oracle-OPatch工具执行命令时提示不能加载OUI库,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
参考链接
OPatch Cannot Continue Because it Would not be Able to Load OUI Platform Dependent Library from the Directory "$ORACLE_HOME/oui/lib/linux" (Doc ID 2102647.1)
原因
Wrong java version used, 32 bit JDK was installed in 64 bit Oracle Home, executing opatch in debug mode shows opatch is considering OS as 32 bit OS.
$export OPATCH_DEBUG=true $opatch version OPatch was not able to set FMW_COMPONENT_HOME by itself. Machine Info: Linux Test 3.0.101-0.47.55-xen #1 SMP Thu May 29 08:25:11 UTC 2015 (dc083ee) x86_64 x86_64 x86_64 GNU/Linux **_osArch is i386 ( pay attention to this line)** _javaVMSpecVersion is 1.0 _javaVMSpecVendor is Sun Microsystems Inc. _javaVMSpecName is Java Virtual Machine Specification _javaVMVendor is Sun Microsystems Inc. _javaJRESpecVersion is 1.5
处理
First verify that you are using correct version of opatch and then Verify the "$ORACLE_HOME/oui/lib/" directory as shown below:
#For 32 bit Oracle Home , you will see below output $ls -lart $ORACLE_HOME/oui/lib/ linux #For 64 bit Oracle Home , you will see below output $ls -lart $ORACLE_HOME/oui/lib/ linux64
Opatch is expecting linux folder but you will see a linux64 bit folder, which means Opatch is considering OS as 32 bit
Check Java version used in Oracle Home with below command
$ORACLE_HOME/jdk/bin/java -version java version "1.5.0_51" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_51-b10) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_51-b10, mixed mode)
Above output shows 64 bit Java version , if you dont see 64 bit Java installed , Install 64 bit JDK
You can also copy the $ORACLE_HOME/jdk/ from any other working server with the same Java version and bit.
Or alternatively you can use below command to use JDK from alternate location:
opatch lsinventory -jdk <path_to_64_bit_jdk>
这篇关于Oracle-OPatch工具执行命令时提示不能加载OUI库的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-12-23DevExpress 怎么实现右键菜单(Context Menu)显示中文?-icode9专业技术文章分享
- 2024-12-22怎么通过控制台去看我的页面渲染的内容在哪个文件中呢-icode9专业技术文章分享
- 2024-12-22el-tabs 组件只被引用了一次,但有时会渲染两次是什么原因?-icode9专业技术文章分享
- 2024-12-22wordpress有哪些好的安全插件?-icode9专业技术文章分享
- 2024-12-22wordpress如何查看系统有哪些cron任务?-icode9专业技术文章分享
- 2024-12-21Svg Sprite Icon教程:轻松入门与应用指南
- 2024-12-20Excel数据导出实战:新手必学的简单教程
- 2024-12-20RBAC的权限实战:新手入门教程
- 2024-12-20Svg Sprite Icon实战:从入门到上手的全面指南
- 2024-12-20LCD1602显示模块详解