03 June, 2015

OAG (Oracle API Gateway) Silent (or unattended) install

There are few options on the official guide, to build a Silent (Unnatended) Install for Oracle API Gateway.
The basic mode to build a Silent Install is:


./OAG-11.1.2.1.0-linux-installer.run --mode unattended 
  --enable-components nodemanager --disable-components analytics,policystudio

Follow a command I have created to just install the APIGateway without any other components of the install:


./OAG_11.1.2.3.0-linux-x86-64-installer.run --optionfile OAG_11.1.2.3.0-linux-x86-64-installer.run.options

Here is the OAG_11.1.2.3.0-linux-x86-64-installer.run.options file content:
prefix=/oracle/middleware/oag_home
mode=unattended
debugtrace=log/debug_install.out
enable-components=apigateway
disable-components=analytics,policystudio,configurationstudio,apitester
setup_type=standard
firstInNewDomain=1
nmHostnameOrIpChoice=127.0.0.1
nmPort=8090
rnmUsername=admin
rnmPassword=changeme
askNmService=0
nmServiceUser=admin
nmServiceUserQuestion=0
configureGatewayQuestion=0
askGwService=0
nmStartupQuestion=0

You can find more tricks to build your options file by using the option --help with the .run file.

References:
https://docs.oracle.com/cd/E39820_01/doc.11121/gateway_install_docs/content/install_gateway.html#p_install_gateway_command
http://docs.axway.com/u/documentation/api_gateway/7.4.0/APIGateway_InstallationGuide_allOS_en.pdf, Page 24