While cloning a 12.1.3 environment using the Rapid Clone option "dbtechstack", the following error occurs when Rapid Clone runs "ouicli.pl":
$ cd $ORACLE_HOME/appsutil/clone/bin
$ perl adcfgclone.pl dbTier
Running "perl ouicli.pl" from "$ORACLE_HOME/appsutil/clone", the script exists very quickly and shows the same "return code: 16777215".
Symptom #1
The perl program "ouicli.pl" is unable to locate the JDK installation.
There is no JDK/JRE installed under the "<RDBMS ORACLE_HOME>/appsutil/jre/bin" directory.
There is no JDK/JRE installed under the "<RDBMS ORACLE_HOME>/appsutil/jre/bin" directory.
SOLUTION
1. Ensure there is a working "java" executable under "<RDBMS ORACLE_HOME>/appsutil/jre/bin":
$ cd $ORACLE_HOME/appsutil/jre/bin
$ ./java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)
$ ./java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)
If the version information is returned, the JDK/JRE is working. This "java" executable file should be referenced directly in the Context File, as noted in
step #2.
2. Check the value of "s_adjvaprg" in the Context File:
2. Check the value of "s_adjvaprg" in the Context File:
$ cd $ORACLE_HOME/appsutil/
$ grep s_adjvaprg *.xml (assumes there is only 1 ".xml" file)
<ADJVAPRG oa_var="s_adjvaprg" osd="UNIX">/d01/R1211/db/tech_st/11.1.0/appsutil/jre/bin/java</ADJVAPRG>
$ grep s_adjvaprg *.xml (assumes there is only 1 ".xml" file)
<ADJVAPRG oa_var="s_adjvaprg" osd="UNIX">/d01/R1211/db/tech_st/11.1.0/appsutil/jre/bin/java</ADJVAPRG>
Note that the value of "s_adjvaprg" points to the full path to the java executable and includes the name of the executable, "java", as well.
3. If there is no "java" under "<RDBMS ORACLE_HOME>/appsutil/jre/bin", you will need to replace the "jre" directory and all sub-directories with a full JDK/JRE installation. Generally, you can find this under "$ORACLE_HOME/jdk"
$ cp -r $ORACLE_HOME/jdk/ $ORACLE_HOME/appsutil/jre/
4. If any changes have been made, now re-try the "adcfgclone.pl" command.
No comments:
Post a Comment