Monday, March 4, 2013

Auto Start/Stop OBIEE 11g using Windows Services


Steps:

      1)      Stop any WebLogic Administration Servers or Managed Servers that are running.
     2)      Create a command file that will be used to create the Administration Server Windows Services using a text editor and name it installAdminServerService.cmd and enter the following:

SETLOCAL
set DOMAIN_NAME=bifoundation_domain
set USERDOMAIN_HOME=C:\Oracle\user_projects\domains\bifoundation_domain
set SERVER_NAME=AdminServer
set PRODUCTION_MODE=true
cd %USERDOMAIN_HOME%
call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
call "C:\Oracle\wlserver_10.3\server\bin\installSvc.cmd"
ENDLOCAL

While saving it, save it in double quotes (“”) so that will be saved as a command file.
For e.g. “installAdminServerService.cmd
Note: Change according to your environment

Save the command file in this folder C:\Oracle\wlserver_10.3\server\bin

    3)      Again, Create a Command file that will be used to create the Managed Server Windows Services using a text editor and name it InstallManagedServerService and enter the following:

SETLOCAL
set DOMAIN_NAME=bifoundation_domain
set USERDOMAIN_HOME=C:\Oracle\user_projects\domains\bifoundation_domain
set SERVER_NAME=bi_server1
set PRODUCTION_MODE=true
set ADMIN_URL=http://localhost:7001  (LocalHost: Computer Name)
cd %USERDOMAIN_HOME%
call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
call "C:\Oracle\wlserver_10.3\server\bin\installSvc.cmd"
ENDLOCAL

While saving it, save it in double quotes (“”) so that will be saved as a command file.
For e.g. “InstallManagedServerService.cmd
Note: Change according to your environment

Save the command file in this folder C:\Oracle\wlserver_10.3\server\bin


4) In the Environment Variables, create a new system variable called BI_ORACLE_HOME and set   the path to C:\Oracle_home\ORACLE_BI1. 


   

5) Run both the command scripts you just created and check in the list of services if they are both available or not. (Run them in command prompt)


 6)      Also, In the Registry Editor go to
HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services
And check if two keys got created
i)                    Beasvcbifoundation_domain_AdminServer
ii)                  Beasvcbifoundation_domain_bi_server1





7) Check if the services have been created and start the services.











No comments:

Post a Comment