Hi,1 person found this helpful
may be your path is wrong. Please check this path : /Oracle_WT1/instances/instance1/bin. There's opmnctl file.
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
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?
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.
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 ]