4 Replies Latest reply: Jul 5, 2013 12:22 AM by SrikanthGH RSS

    opmnctl: ORACLE_INSTANCE is not set.

    967020
      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
          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

            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

              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

                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 ]