Tuesday, May 22, 2012

opmnctl

So what really is opmn? Here is a nice link that explains it.


OPMN stands for Oracle Process Manager and Notification Server.


In our Exalytics system (Oracle Enterprise Linux), when I type


opmnctl status
we get this.

Processes in Instance: instance1
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
coreapplication_obiccs1          | OracleBIClusterCo~ |   15105 | Alive
coreapplication_obisch1          | OracleBIScheduler~ |   15104 | Alive
coreapplication_obijh1           | OracleBIJavaHostC~ |   15103 | Alive
coreapplication_obips1           | OracleBIPresentat~ |   15102 | Alive
coreapplication_obis1            | OracleBIServerCom~ |   15101 | Alive


BTW opmnctl is actually a Perl script in case you did not know.

A couple of things to notice.
1.) The pid is the UNIX process id. You can actually confirm that by typing ps -fe | grep 15105 to get the actual process.
2.) The process-type has been abbreviated. They are listed below.

So given this, how do you start and stop individual BI components which are
1.) OracleBIClusterControllerComponent - coreapplication_obiccs1
2.) OracleBISchedulerComponent - coreapplication_obisch1
3.) OracleBIJavaHostComponent - coreapplication_obijh1
4.) OracleBIPresentationServicesComponent - coreapplication_obips1 
5.) OracleBIServerComponent - coreapplication_obis1

Of course, you can start and stop them with "opmnctl startall" and "opmnctl stopall" respectively. One of the challenges I encountered was that sometimes the presentation service would not start and you had start it seperately.

So here are the commands to start the process individually. The order is also listed below.
opmnctl startproc ias-component=coreapplication_obiccs1
opmnctl startproc ias-component=coreapplication_obis1
opmnctl startproc ias-component=coreapplication_obijh1
opmnctl startproc ias-component=coreapplication_obips1
opmnctl startproc ias-component=coreapplication_obisch1


So here are the commands to stop the process individually.
opmnctl stopproc ias-component=coreapplication_obisch1
opmnctl stopproc ias-component=coreapplication_obips1
opmnctl stopproc ias-component=coreapplication_obijh1
opmnctl stopproc ias-component=coreapplication_obis1
opmnctl stopproc ias-component=coreapplication_obiccs1


No comments:

Post a Comment