转 OUI and OPatch Do Not Recognize JDK/JRE on Windows

issue 1:

新覆盖的opatch 提示,无法opatch 报错 此时不应有1.6

 

D:\app\Administrator\product\11.2.0\dbhome_1\OPatch\ocm\bin\emocmrsp.bat 提示java_home环境变量配置有问题。

 

 

1.从如下2方面着手

1).将uat 的PATH,jave_home.JAVA* 变量copy 到prod.

 

2).根据文档OUI and OPatch Do Not Recognize JDK/JRE on Windows

Symptoms

 Errors are reported when starting Oracle Universal Installer (OUI) and/or OPatch on Microsoft Windows.

Below are some examples:

Starting OUI

setup.exe -jreLoc C:\Program Files\Java\jrockit-jdk1.6.0_24-R28.1.3-4.0.1
Java program was not found in C:\Program\bin

Starting OPatch

%ORACLE_HOME%\OPatch\opatch lsinventory -jdk C:\Program Files\Java\jdk1.6.0_33
File Not Found
Java could not be located. OPatch cannot proceed!

 

In both cases above, the absolute path to JDK specified (for "jreLoc" and "-jdk" paramerters) are valid and correct.

Changes

Attempting to install a product using the OUI or patch a product using OPatch.

Cause

 Problem is with the blank space in the folder/directory name(s) specified in the absolute path to JDK.

Solution

 Use the short name of the folder/directory in the absolute path.

To identify the short name, open DOS prompt (window) and execute the directory command with the "X" flag as below:

C:\> dir /X


You will see an output similar to this:

08/10/2012  08:10 AM    <DIR>          PROGRA~1     Program Files


In the output above, "PROGRA~1" is the directory's short name.
Navigate to the Java directory as follows:

C:\> cd PROGRA~1\Java


Execute the directory command again with the "X" flag

C:\PROGRA~1\Java> dir /X

Make a note of the short name for "jrockit-jdk1.6.0_24-R28.1.3-4.0.1". It will be similar to this:

08/10/2012  12:00 PM    <DIR>          JROCKI~1.1   jrockit-jdk1.6.0_24-R28.1.3-4.0.1


Using the information above, update the command as follows and restart the similar:

setup.exe -jreLoc C:\PROGRA~1\Java\JROCKI~1.1

or

setup.exe -jreLoc C:\PROGRA~1\Java\jrockit-jdk1.6.0_24-R28.1.3-4.0.1

 

Similarly, you may execute the OPatch as follows:

%ORACLE_HOME%\OPatch\opatch lsinventory -jdk C:\PROGRA~1\Java\jdk1.6.0_33

 

转载于:https://www.cnblogs.com/feiyun8616/p/6373398.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值