@echo off
rem Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 
rem
rem This script can be used to start a Control Center Service from any OWB Home
rem
rem A Control Center Service provides access to the deployment and execution
rem features of an OWB Repository and one must be available in order to enable
rem the deployment and execution features,
rem
rem This service is either Available or Unavailable.
rem
rem When a Control Center Service is started using this script, the Service is
rem running on the same machine that the script was invoked on and will connect
rem to the OWB Repository using JDBC. It will remain available until either this
rem machine becomes unavailable (such as stopped or disconnected from the network),
rem or until the Service is closed-down by running this script in 'closedown' mode.
rem
rem Alternatively the service can be started on the machine hosting the OWB
rem Repository, by using the SQL script <owb-home>/owb/rtp/sql/start_service.sql
rem
rem USAGE
rem
rem  <owb-home>/owb/bin/[win32|unix]/local_service_login.[bat|sh]
rem         [-startup|-closedown] <owb-home>
rem
rem Then enter the connection details to the OWB Repository Owner (OWBSYS)
rem

call setowbenv.bat

set MODE=%1 
shift 
set RTHOME=%1 
shift 

pushd %RTHOME%\owb\bin\win32\ 
set PATH=%RTHOME%\bin;%PATH% 
set ORACLE_HOME=%RTHOME% 

%JAVAPATH%\jre\bin\java.exe %CLASSPATH_LAUNCHER% oracle.wh.ui.runtime.admin.localService.LocalServiceApp -RUNTIMEHOME %RTHOME% 

popd 
