Q: In order to install backup module using ra_install.jar i need the java on the server. But there is no java installed on my database server. Should I install the OS java OR it is possible to use any other java ? For example, java from ORACLE_HOME, from GRID home or from opatch directory ?
A: If there is no OS java I use any other java to run ra_install_jar and have no problem :)
Look:
[root@ed04dbadm01 ~]# find /u01/app -name java
/u01/app/agentHome/agent_13.2.0.0.0/oracle_common/jdk/jre/bin/java
/u01/app/agentHome/agent_13.2.0.0.0/oracle_common/jdk/bin/java
/u01/app/12.2.0.1/grid/OPatch/jre/bin/java
/u01/app/12.2.0.1/grid/jdk/jre/bin/java
/u01/app/12.2.0.1/grid/jdk/bin/java
/u01/app/18.0.0/grid/jdk/jre/bin/java
/u01/app/18.0.0/grid/jdk/bin/java
/u01/app/oracle/product/11.2.0.3/dbhome_1/owb/wf/java
/u01/app/oracle/product/11.2.0.3/dbhome_1/lib/java
/u01/app/oracle/product/11.2.0.3/dbhome_1/xdk/doc/java
/u01/app/oracle/product/11.2.0.3/dbhome_1/sqldeveloper/lib/java
/u01/app/oracle/product/11.2.0.3/dbhome_1/jdk/jre/bin/java
/u01/app/oracle/product/11.2.0.3/dbhome_1/jdk/bin/java
/u01/app/oracle/product/12.2.0.1/dbhome_1/OPatch/jre/bin/java
/u01/app/oracle/product/12.2.0.1/dbhome_1/xdk/doc/java
/u01/app/oracle/product/12.2.0.1/dbhome_1/jdk/jre/bin/java
/u01/app/oracle/product/12.2.0.1/dbhome_1/jdk/bin/java
/u01/app/oracle/product/12.1.0.2/dbhome_1/OPatch/jre/bin/java
/u01/app/oracle/product/12.1.0.2/dbhome_1/xdk/doc/java
/u01/app/oracle/product/12.1.0.2/dbhome_1/sqldeveloper/sqldeveloper/demo/migration/application/exampleSource/java
/u01/app/oracle/product/12.1.0.2/dbhome_1/jdk/jre/bin/java
/u01/app/oracle/product/12.1.0.2/dbhome_1/jdk/bin/java
/u01/app/oracle/product/18.1.0/dbhome_1/xdk/doc/java
/u01/app/oracle/product/18.1.0/dbhome_1/jdk/jre/bin/java
/u01/app/oracle/product/18.1.0/dbhome_1/jdk/bin/java
I tested different javas: from Grid home, from OEM agent, from Oracle Home 12.2 and java from OPatch directory - all these javas work well !
The version of the java must be 1.7+, not 1.5, not 1.6.
[root@ed04dbadm01 ~]# /u01/app/agentHome/agent_13.2.0.0.0/oracle_common/jdk/jre/bin/java -version
java version "1.7.0_111"
Java(TM) SE Runtime Environment (build 1.7.0_111-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.111-b13, mixed mode)
[root@ed04dbadm01 ~]# /u01/app/12.2.0.1/grid/OPatch/jre/bin/java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)[root@ed04dbadm01 ~]# /u01/app/12.2.0.1/grid/OPatch/opatch version
OPatch Version: 12.2.0.1.9
[root@ed04dbadm01 ~]# /u01/app/12.2.0.1/grid/jdk/jre/bin/java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
[root@ed04dbadm01 ~]# /u01/app/oracle/product/12.1.0.2/dbhome_1/jdk/bin/java -version
java version "1.6.0_75"
Java(TM) SE Runtime Environment (build 1.6.0_75-b13)
Java HotSpot(TM) 64-Bit Server VM (build 20.75-b01, mixed mode)
Or you can use the OS java:
$ which java
/usr/bin/java
A: If there is no OS java I use any other java to run ra_install_jar and have no problem :)
Look:
[root@ed04dbadm01 ~]# find /u01/app -name java
/u01/app/agentHome/agent_13.2.0.0.0/oracle_common/jdk/jre/bin/java
/u01/app/agentHome/agent_13.2.0.0.0/oracle_common/jdk/bin/java
/u01/app/12.2.0.1/grid/OPatch/jre/bin/java
/u01/app/12.2.0.1/grid/jdk/jre/bin/java
/u01/app/12.2.0.1/grid/jdk/bin/java
/u01/app/18.0.0/grid/jdk/jre/bin/java
/u01/app/18.0.0/grid/jdk/bin/java
/u01/app/oracle/product/11.2.0.3/dbhome_1/owb/wf/java
/u01/app/oracle/product/11.2.0.3/dbhome_1/lib/java
/u01/app/oracle/product/11.2.0.3/dbhome_1/xdk/doc/java
/u01/app/oracle/product/11.2.0.3/dbhome_1/sqldeveloper/lib/java
/u01/app/oracle/product/11.2.0.3/dbhome_1/jdk/jre/bin/java
/u01/app/oracle/product/11.2.0.3/dbhome_1/jdk/bin/java
/u01/app/oracle/product/12.2.0.1/dbhome_1/OPatch/jre/bin/java
/u01/app/oracle/product/12.2.0.1/dbhome_1/xdk/doc/java
/u01/app/oracle/product/12.2.0.1/dbhome_1/jdk/jre/bin/java
/u01/app/oracle/product/12.2.0.1/dbhome_1/jdk/bin/java
/u01/app/oracle/product/12.1.0.2/dbhome_1/OPatch/jre/bin/java
/u01/app/oracle/product/12.1.0.2/dbhome_1/xdk/doc/java
/u01/app/oracle/product/12.1.0.2/dbhome_1/sqldeveloper/sqldeveloper/demo/migration/application/exampleSource/java
/u01/app/oracle/product/12.1.0.2/dbhome_1/jdk/jre/bin/java
/u01/app/oracle/product/12.1.0.2/dbhome_1/jdk/bin/java
/u01/app/oracle/product/18.1.0/dbhome_1/xdk/doc/java
/u01/app/oracle/product/18.1.0/dbhome_1/jdk/jre/bin/java
/u01/app/oracle/product/18.1.0/dbhome_1/jdk/bin/java
I tested different javas: from Grid home, from OEM agent, from Oracle Home 12.2 and java from OPatch directory - all these javas work well !
The version of the java must be 1.7+, not 1.5, not 1.6.
[root@ed04dbadm01 ~]# /u01/app/agentHome/agent_13.2.0.0.0/oracle_common/jdk/jre/bin/java -version
java version "1.7.0_111"
Java(TM) SE Runtime Environment (build 1.7.0_111-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.111-b13, mixed mode)
[root@ed04dbadm01 ~]# /u01/app/12.2.0.1/grid/OPatch/jre/bin/java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)[root@ed04dbadm01 ~]# /u01/app/12.2.0.1/grid/OPatch/opatch version
OPatch Version: 12.2.0.1.9
[root@ed04dbadm01 ~]# /u01/app/12.2.0.1/grid/jdk/jre/bin/java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
[root@ed04dbadm01 ~]# /u01/app/oracle/product/12.1.0.2/dbhome_1/jdk/bin/java -version
java version "1.6.0_75"
Java(TM) SE Runtime Environment (build 1.6.0_75-b13)
Java HotSpot(TM) 64-Bit Server VM (build 20.75-b01, mixed mode)
Or you can use the OS java:
$ which java
/usr/bin/java
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.