06 January, 2015

Starting and Stoping Instructions for OAG - Oracle API Gateway

I was facing some issues with the OAG 11.1.2.3.0, by using of the Policy Studio.
The IDE was trying to retrieve the status from the OAG Instance, and it never finished.

The solution I found was bouncing the server and nodemanager as well.

Starting instructions

Starting the Node Manager

  • Open a shell terminal at INSTALL_DIR/apigateway/posix/bin/
  • Run the command
           prompt# ./nodemanager
  • If you are using an encryption passphrase, you will be prompted for this passphrase.

Starting the API Gateway

  • Open a shell terminal at INSTALL_DIR/apigateway/posix/bin/
  • Run the command
    startinstance -n "my_server" -g "my_group"
  • Where
    • my_server is the server under the group (my_group) configured into the OAG Installation.

Tip

You can enter the startinstance command without any arguments to display the servers registered on the machine. For example:
INSTALL_DIR\posix\bin$ ./startinstance
usage: "startinstance [[-n instance-name -g group-name [instance-args]] |
[directory-location [instance-args]]]"
The API Gateway instances listed below are available to run on this machine
as follows:
   startinstance -n "my_server1" -g "oaggroup"
   startinstance -n "my_server2" -g "oaggroup"

Stopping instructions

Stopping the API Gateway

To stop the gateway instance you can use the same command used to start the OAG but adding the -k option as follows:

        INSTALL_DIR/apigateway/posix/bin/startinstance -n "my_server" -g "my_group" -k

This will stop (kill) the OAG process.


Stopping the Node Manager

To stop the nodemanager we can use this command:

        INSTALL_DIR/apigateway/posix/bin/nodemanager -k