This discussion is archived
4 Replies Latest reply: Jul 4, 2013 10:22 PM by SrikanthGH RSS

opmnctl: ORACLE_INSTANCE is not set.

967020 Newbie
Currently Being Moderated
Hello !!
I want to start webcache services and want to see webcache status(opmnctl status).
When I run the opmnctl of /Oracle_WT1/opmn/bin, I got the following message.


bash-3.2$ ./opmnctl status
opmnctl: ORACLE_INSTANCE is not set.

opmnctl status requires that ORACLE_INSTANCE be correctly set in your
environment.

Make sure you are using ORACLE_INSTANCE/bin/opmnctl, or set ORACLE_INSTANCE
in your environment.

Can anyone guide how to solve this?
Please help me.
  • 1. Re: opmnctl: ORACLE_INSTANCE is not set.
    973210 Newbie
    Currently Being Moderated
    Hi,

    may be your path is wrong. Please check this path : /Oracle_WT1/instances/instance1/bin. There's opmnctl file.
  • 2. Re: opmnctl: ORACLE_INSTANCE is not set.
    PhillipDudley Newbie
    Currently Being Moderated

    I am also having issues this sort of thing, but I'm using Oracle_BI1

     

    my directory is '/u01/app/oracle/product/fmw/Oracle_BI1/opmn/bin/' and from there I try to run './opmnctl status' and I get that error message. Even when I use the absolute path, I still get that message.

     

    opmnctl: ORACLE_INSTANCE is not set.

     

     

    opmnctl status requires that ORACLE_INSTANCE be correctly set in your

    environment.

     

     

    Make sure you are using ORACLE_INSTANCE/bin/opmnctl, or set ORACLE_INSTANCE

    in your environment.

    Wouldn't it work, and not rely on the $PATH if I did the absolute path to the command?

  • 3. Re: opmnctl: ORACLE_INSTANCE is not set.
    PhillipDudley Newbie
    Currently Being Moderated

    On my my MyBI servers, I have to be sure to run it as the user 'obi' and not 'root'. Even then, we have a script that sets all those variables, and then goes on. I would say check your user, then your environment variables. Even if you do use the absolute path like I did, the opmnctl command, uses the environment variable its talking about to do other things.

  • 4. Re: opmnctl: ORACLE_INSTANCE is not set.
    SrikanthGH Newbie
    Currently Being Moderated

    Hi,

     

    Instead of working on the file in Bin, you can go ahead and set the Oracle Instance on your own.

    Use the below command

    set ORACLE_INSTANCE= <your path to your instance> [ For ex: D:\Middleware\instances\instance1 ]

Legend

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