8 Replies Latest reply: Oct 26, 2011 6:10 AM by Dalia.Sarey RSS

    Problem realted to java version

    Dalia.Sarey
      CT installed DMU Oracle Tool (1.0.2) on Unix server.starting dmu.sh, it gives the following error.

      ctbdb02:oracle# ./dmu.sh

      Database Migration Assistant for Unicode
      Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.

      Error: This product requires a Java(TM) Platform 5.0 runtime.
      You are using 1.4.2_14-b05 from /sans01/app_rac/oracle/product/10.2/jdk/jre
      ctbdb02:oracle#

      ctbdb02:oracle# java -version
      java version "1.6.0_27"
      Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
      Java HotSpot(TM) Server VM (build 20.2-b06, mixed mode)


      tried to set JAVA_HOME and PATH but they both didn't work. I also tried to find .dmu_jdk file but it doesn't exist. Also I didn't find any line item SetJavaHome in dmu.conf file.

      Tried to unset all env variables related to java on both path and JAVA_HOME but gives same error:

      ATH=/usr/ccs/bin:/opt/sfw/bin:/usr/ucb:/etc:/usr/openwin/bin:/opt/local/bin:/usr/local/bin:/opt/soe/local/bin:/opt/VRTS/bin:/OPatch:.

      ctbdb02:oracle# echo $JAVA

      ctbdb02:oracle#

      ctbdb02:oracle# /usr/bin/which java
      no java in /usr/ccs/bin /opt/sfw/bin /usr/ucb /etc /usr/openwin/bin /opt/local/bin /usr/local/bin /opt/soe/local/bin /opt/VRTS/bin /OPatch .

      ctbdb02:oracle# ./dmu.sh

      Database Migration Assistant for Unicode
      Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.

      Error: This product requires a Java(TM) Platform 5.0 runtime.
      You are using 1.4.2_14-b05 from /sans01/app_rac/oracle/product/10.2/jdk/jre
      ctbdb02:oracle#
        • 1. Re: Problem realted to java version
          Srini Chavali-Oracle
          >
          You are using 1.4.2_14-b05 from /sans01/app_rac/oracle/product/10.2/jdk/jre
          >

          Pl post output of the following command just before you invoke dmu.sh
          env | sort
          HTH
          Srini
          • 2. Re: Problem realted to java version
            Dalia.Sarey
            Here is the output as requested:


            ctbdb02:oracle# env|sort
            EDITOR=/usr/bin/vi
            HOME=/home/oracle
            LOGNAME=oracle
            MAIL=/usr/mail/oracle
            OLDPWD=/home/oracle
            ORACLE_BASE=/sans01/app_rac/oracle
            ORACLE_HOME=/sans01/app_rac/oracle/product/10.2
            ORACLE_PATH=/home/oracle/osm/historical:/home/oracle/osm/interactive:
            ORACLE_SID=itst2
            OSM_BASE=/home/oracle/osm
            PATH=/usr/bin:/usr/ccs/bin:/opt/sfw/bin:/usr/ucb:/etc:/usr/openwin/bin:/bin:/opt/local/bin:/usr/local/bin:/opt/soe/local/bin:/opt/VRTS/bin:/OPatch:.:/sans01/app_rac/oracle/product/10.2/bin
            PS1=ctbdb02:oracle#
            PWD=/sans01/app_rac/oracle/product/10.2/dmu
            SHELL=/usr/bin/bash
            SHLVL=1
            SUDO_COMMAND=/usr/bin/bash -c cd $HOME && exec -a "-bash" $BASH --login
            SUDO_GID=10
            SUDO_UID=5280
            SUDO_USER=exispi
            TERM=xterm
            TZ=Australia/NSW
            USER=oracle
            USERNAME=oracle
            _=/usr/bin/env
            ctbdb02:oracle# export PATH=/usr/ccs/bin:/opt/sfw/bin:/usr/ucb:/etc:/usr/openwin/bin:/opt/local/bin:/usr/local/bin:/opt/soe/local/bin:/opt/VRTS/bin:/OPatch:.
            ctbdb02:oracle# env|sort
            EDITOR=/usr/bin/vi
            HOME=/home/oracle
            LOGNAME=oracle
            MAIL=/usr/mail/oracle
            OLDPWD=/home/oracle
            ORACLE_BASE=/sans01/app_rac/oracle
            ORACLE_HOME=/sans01/app_rac/oracle/product/10.2
            ORACLE_PATH=/home/oracle/osm/historical:/home/oracle/osm/interactive:
            ORACLE_SID=itst2
            OSM_BASE=/home/oracle/osm
            PATH=/usr/ccs/bin:/opt/sfw/bin:/usr/ucb:/etc:/usr/openwin/bin:/opt/local/bin:/usr/local/bin:/opt/soe/local/bin:/opt/VRTS/bin:/OPatch:.
            PS1=ctbdb02:oracle#
            PWD=/sans01/app_rac/oracle/product/10.2/dmu
            SHELL=/usr/bin/bash
            SHLVL=1
            SUDO_COMMAND=/usr/bin/bash -c cd $HOME && exec -a "-bash" $BASH --login
            SUDO_GID=10
            SUDO_UID=5280
            SUDO_USER=exispi
            TERM=xterm
            TZ=Australia/NSW
            USER=oracle
            USERNAME=oracle
            _=/usr/local/bin/env
            • 3. Re: Problem realted to java version
              Srini Chavali-Oracle
              >
              PATH=/usr/bin:/usr/ccs/bin:/opt/sfw/bin:/usr/ucb:/etc:/usr/openwin/bin:/bin:/opt/local/bin:/usr/local/bin:/opt/soe/local/bin:/opt/VRTS/bin:/OPatch:.:/sans01/app_rac/oracle/product/10.2/bin
              >

              You PATH variable contains ORACLE_HOME/bin (ORACLE_HOME=/sans01/app_rac/oracle/product/10.2), which has a 1.4 install of Java which is being picked up.

              Are you following the implementation steps ? http://www.oracle.com/technetwork/database/globalization/dmu/learnmore/start-334681.html

              Srini
              • 4. Re: Problem realted to java version
                Sergiusz Wolicki-Oracle
                The issue is not with the PATH variable but with the fact that the DMU has been installed in the Oracle Home. It will try to pick Java from that Home.

                To workaround this issue, set (and export) the environment variable $OIDE_JAVA_HOME to the correct JDK 1.6 home.


                -- Sergiusz
                • 5. Re: Problem realted to java version
                  Dalia.Sarey
                  Please see the error below.

                  ctbdb02:oracle# which java
                  /usr/bin/java
                  ctbdb02:oracle# java -version
                  java version "1.6.0_27"
                  Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
                  Java HotSpot(TM) Server VM (build 20.2-b06, mixed mode)
                  ctbdb02:oracle# export OIDE_JAVA_HOME=/usr/bin/java
                  ctbdb02:oracle# export DISPLAY=164.97.55.210:0.0
                  ctbdb02:oracle# ./dmu.sh

                  Database Migration Assistant for Unicode
                  Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.

                  Error: This product requires a Java(TM) Platform 5.0 runtime.
                  You are using 1.4.2_14-b05 from /sans01/app_rac/oracle/product/10.2/jdk/jre
                  ctbdb02:oracle# env|grep OIDE
                  OIDE_JAVA_HOME=/usr/bin/java
                  • 6. Re: Problem realted to java version
                    375957
                    "/usr/bin/java" should be a link instead of a valid JAVA_HOME. An example is if you install JDK6 under $HOME/jdk6, then you should set OIDE_JAVA_HOME as "$HOME/jdk6" instead of "$HOME/jdk6/bin/java".

                    If it still does not work, create file $HOME/.dmu_jdk manully like the following (my jdk6 was installed under /scratch/nli/jdk6):

                    /scratch/nli/jdk6
                    • 7. Re: Problem realted to java version
                      Sergiusz Wolicki-Oracle
                      $OIDE_JAVA_HOME should point to the Java Home, not the java executable. Therefore, in this case, OIDE_JAVA_HOME=/usr should work better. But as /usr/bin/java is probably a symbolic link, as mentioned by Nian, you should set the variable to the actual Java Home. The startup script will follow the symbolic link anyway.


                      -- Sergiusz
                      • 8. Re: Problem realted to java version
                        Dalia.Sarey
                        Thank you ,that worked and solved out the issue