This discussion is archived
9 Replies Latest reply: Nov 23, 2012 8:41 PM by 888865 RSS

Oracle dbconsole 11gr2 doesn't start in VirtualBox

888865 Newbie
Currently Being Moderated
Hi, I use Oracle VM virtualBox

When I enter "emctl start dbconsole"

There is something wrong.

It shows:
[oracle@orvm-674-2012-02 ~]$ emctl start dbconsole
The following exception occurred:
java.net.UnknownHostException: orvm-674-2012-02.local: orvm-674-2012-02.local
at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
at oracle.sysman.emd.targetIntg.agent.AgentTargetInstaller.getLocalHost(AgentTargetInstaller.java:4282)
at oracle.sysman.emd.targetIntg.agent.AgentTargetInstaller.printLocalHost(AgentTargetInstaller.java:4252)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.sysman.emd.targetIntg.Util$DefaultIntegrationMethod.execute(Util.java:598)
at oracle.sysman.emd.targetIntg.TargetInstaller.execute_(TargetInstaller.java:167)
at oracle.sysman.emd.targetIntg.TargetInstaller.execute(TargetInstaller.java:155)
at oracle.sysman.emSDK.conf.TargetInstaller.printLocalHost(TargetInstaller.java:2364)
at oracle.sysman.emSDK.conf.TargetInstaller.main(TargetInstaller.java:3290)
Although there was an exception it might be possible for the program to continue.
OC4J Configuration issue. /home/oracle/app/oracle/product/11.2.0/dbhome_2/oc4j/j2ee/OC4J_DBConsole_null_orcl not found.

How to fix this?????

Please help me.
  • 1. Re: Oracle dbconsole 11gr2 doesn't start in VirtualBox
    Balazs Papp Expert
    Currently Being Moderated
    make sure your hostname is set correctly at OS level, and listed in /etc/hosts with its IP address
    you can also set the ORACLE_HOSTNAME enviroment variable to the proper value before invoking emctl
  • 2. Re: Oracle dbconsole 11gr2 doesn't start in VirtualBox
    888865 Newbie
    Currently Being Moderated
    How to check my hostname?? Sorry I am new to VirtualBox

    I didn't see /etc/hosts

    How to set the ORACLE_HOSTNAME enviroment variable?
  • 3. Re: Oracle dbconsole 11gr2 doesn't start in VirtualBox
    888865 Newbie
    Currently Being Moderated
    Sorry, I think my hostname is null.
  • 4. Re: Oracle dbconsole 11gr2 doesn't start in VirtualBox
    EdStevens Guru
    Currently Being Moderated
    885862 wrote:
    How to check my hostname?? Sorry I am new to VirtualBox
    It's an OS question, not a VirtualBox question. You didn't state your os, so I'll assume Oracle Linux.

    Google 'set hostname in linux'. There are about a bazillion hits on it.
    I didn't see /etc/hosts
    Where were you looking?

    How to set the ORACLE_HOSTNAME enviroment variable?
    in your /home/.bash_profile, put this line:
    export ORACLE_HOSTNAME=<whatever value is appropriate'
    
    Edited by: EdStevens on Nov 19, 2012 2:54 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
  • 5. Re: Oracle dbconsole 11gr2 doesn't start in VirtualBox
    sb92075 Guru
    Currently Being Moderated
    885862 wrote:
    How to check my hostname?? Sorry I am new to VirtualBox

    I didn't see /etc/hosts

    How to set the ORACLE_HOSTNAME enviroment variable?
    AFAIK, nothing & nobody uses ORACLE_HOSTNAME variable
  • 6. Re: Oracle dbconsole 11gr2 doesn't start in VirtualBox
    jgarry Guru
    Currently Being Moderated
    I can never quite figure it out, but I think using emctl to start dbconsole puts together oracle_hostname and oracle_unqname to create the directory name appended to oc4j_dbconsole. This is very confusing, and the error messages tend to only mention oracle_unqname, so when people are flopping around trying to make this stuff work, you'll find directories with and without oracle_hostname. In other words, doing things from the installer and from the command line aren't exactly the same because of this variable. If I understand it, which is certainly debatable.
  • 7. Re: Oracle dbconsole 11gr2 doesn't start in VirtualBox
    Osama_Mustafa Oracle ACE
    Currently Being Moderated
    Check Your
    ORACLE_HOME
    ORACLE_SID
    Hostname


    And After this
    emca -deconfig dbcontrol db -repos drop
    emca -config dbcontrol db -repos create
  • 8. Re: Oracle dbconsole 11gr2 doesn't start in VirtualBox
    Balazs Papp Expert
    Currently Being Moderated
    ORACLE_HOSTNAME is optional, but takes precedence over the configured OS hostname

    for example hostnames with underscore characters ('_') are not supported
    but emctl/emca will pick them from OS, and dbconsole wont start
    *Why EMCA Fails When Hostname Has An Underscore '_' And How To Workaround This? [ID 393430.1]*
    in that case you could set ORACLE_HOSTNAME to an alias or even the actual IP address

    ORACLE_UNQNAME is required for example when you have a RAC database, where the SID != db_unique_name


    now back to original topic:

    this is an OS configuration issue which should be resolved
    ORACLE_HOSTNAME is just a workaround
  • 9. Re: Oracle dbconsole 11gr2 doesn't start in VirtualBox
    888865 Newbie
    Currently Being Moderated
    I have corrected by myself.

    I typed in
    $ export ORACLE_BASE=/home/oracle/app/oracle
    $ export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
    $ export ORACLE_SID=orcl
    $ mkdir -p $ORACLE_BASE/admin/$ORACLE_BASE/wallet
    $ sqlplus / as sysdba

    SQL> alter system set encryption key identified by "ora11g";

    The system operates.

    Thanks, guys. Thanks for your help.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points