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

 

炊烟起了;夕阳下了;细雨来了 多调试,交互式编程体验 记录,独立思考,对比 感谢转载作者 修车 国产化 read and connect 匍匐前进, 讲故事