In an earlier version of EBS (R12 and 11i) – restarting middle-tier services is quite simple though application running in multiple nodes. Starting from EBS 12.2, OACORE, FORMS and OAFM services are coming under weblogic as managed servers. So restarting middle-tier services is painful and needed lot of manual effort.
During development phase, we had a tough time to restart Middle tier services (Apache and OACORE services) multiple times by logging into all application servers and restart OACORE and APACHE services manually.
We have an option to restart all oacore managed servers from Weblogic admin console but to restart Apache still, you need to login into each server and execute it.
We thought of writing an automated script to restart Middle tier services without any manual intervention, perhaps we have to do some initial setups.
- Script –
- will construct admin console URL
- will fetch the oacore server name from all the application servers (including master and slave servers)
- will check if Admin server is running or not, if admin server is down then script will exit
- will check if required input files are exists or not, if files don’t exist then the script will exit
- will login into each server and restart Apache
- will get the oacore managed servers list from config file for restart.
- will login into admin console via wlst and restart the managed servers.
Resources:
https://github.com/doyensysgit/bouncemiddetier_ebs122