* Starts up the Oracle instances.
*/
@Start public void startup() {
for (int i = 0; i < myServers.length; i++) {
logger.fine("Starting oracle on " + myServers[i]);
Command startCmd = new Command(oracleStartCmd);
startCmd.setEnvironment(env);
logger.fine("Starting oracle with: " + oracleStartCmd);
startCmd.setSynchronous(false); // to run in bg
try {
// Run the command in the background
if ( !checkServerStarted(i)) {
serverHandles[i] = RunContext.exec(myServers[i], startCmd);
logger.fine("Completed Oracle server startup " +
"successfully on" + myServers[i]);
}
} catch (Exception e) {
logger.log(Level.WARNING, "Failed to start Oracle server.", e);
}
if(ctx.getProperty("includes").equalsIgnoreCase("true")) {
logger.fine("Starting listner");
Command listerCmd = new Command(oracleBin + "lsnrctl start");
listerCmd.setSynchronous(false); // to run in bg
try {
// Run the command in the background
if (!checkListnerStarted(myServers[i])) {
RunContext.exec(myServers[i], listerCmd);
logger.fine("Completed listner startup successfully on"