Sunday 15 July 2012

Deploy OBIEE 11g as Services under Windows



When OBIEE 11g is installed on a Windows server the Node Manager and Process Manager are setup as Windows services, however the Admin and BI Servers are not. This blog shows how to create services for the Admin and BI Server and configure all four services to start in the correct order.

References to the OBI_HOME below should point to the middleware home directory for OBIEE. e.g. c:\app\obiee.  Below this exist the directories: instance, Oracle_BI1, user_projects etc…


Confirm boot.properties files exist

The boot.properties files contain the encrypted user-id and password for starting and stopping the services. Unless they have been removed there should be two of these files under the following directories once OBIEE 11g has been stopped and restarted following the installation:

%OBI_HOME%\user_projects\domains\bifoundation_domain\servers\AdminServer\security

And

%OBI_HOME%\user_projects\domains\bifoundation_domain\servers\bi_server1\security

Where OBI_HOME is the OBIEE middleware installation home directory and bi_server1 is the name of the BI Managed Service. bi_server1 is the default name, but may have been altered during the installation.

If the files do not exist, stop and restart OBIEE. If they still do not exist then investigate why before continuing.

Check the BI_ORACLE_HOME environment variable is set.

Look in the server Environment variables for BI_ORACLE_HOME  (Control Panel -> System -> Advanced System Settings’ -> ‘Advanced’ tab -> Environment Variables -> System variables.

If it is not there, add it.



Edit the Service installation command file – installSvc.cmd

We need to do four changes to this file.
  • Create the OBI_HOME variable
  • Name the services Oracle_XXXX 
  • Specify a log file for each of the Admin and BI Servers.
  • Implement a solution to the Windows issue of command lines being no longer than 2k.
This file is located under %OBI_HOME%\wlserver_10.3\server\bin.

Near the top of the file, after the line that sets WL_HOME add a new line:

set OBI_HOME=%WL_HOME%\..\

Now find the line near the bottom which starts "%WL_HOME%\server\bin\beasvc" –install….

Change the svcname parameter from:

-svcname:"beasvc %DOMAIN_NAME%_%SERVER_NAME%"

To

-svcname:"Oracle_%DOMAIN_NAME%_%SERVER_NAME%"

Then at the end of the line add a new log parameter:

-log:"%OBI_HOME%\user_projects\domains\bifoundation_domain\servers\%SERVER_NAME%\logs\service_start.log"

Now locate the line set CLASSPATH=%WEBLOGIC_CLASSPATH%;%CLASSPATH% and add the following line underneath it:

@echo %CLASSPATH% > %WL_HOME%\server\bin\classpath.txt

This outputs the CLASSPATH variable to a text file.

Just below this there are two lines that start set CMDLINE=.  Each of these lines refers to \"%CLASSPATH%\", so change this to point to the text file instead:

Change:               -classpath \"%CLASSPATH%\"

To:                        -classpath @%WL_HOME%\server\bin\classpath.txt

Now save the file.


Edit the commEnv.cmd file

We need to do five changes to this file.
  • Add an additional jar file to the classpath variables
  • Check the JAVA_HOME variable
  • Check the JAVA_VENDOR variable
  • Check the PRODUCTION_MODE variable
  • Set  the java MEM_ARGS variable

This file is located under %OBI_HOME%\wlserver_10.3\common\bin.

Locate the set WEBLOGIC_CLASSPATH and set FMWCONFIG_CLASSPATH commands and add the following to the end:

%BEA_HOME%\oracle_common\modules\oracle.jrf_11.1.1\jrf.jar


Ensure the JAVA_HOME path is pointing at the OBIEE version:

For example:  set JAVA_HOME=C:\app\obiee\Oracle_BI1\jdk

Ensure that the JAVA_VENDOR variable is set to sun:

set JAVA_VENDOR=Sun

Set the PRODUCTION_MODE variable to true

set PRODUCTION_MODE=true

Locate the :sun_prod_mode label,  then in the set MEM_ARGS command change all three memory parameters to 512m:

set MEM_ARGS=-Xms512m –Xmx512m -XX:MaxPermSize=512m -XX:+UseSpinning

There is some scope for editing these memory settings. The above settings work fine, but can be increased if needed.


Create the Admin Server install script.

We are going to create a new script which will create the windows service for the Admin Server. In the %OBI_HOME%\wlserver_10.3\server\bin directory create a new file called installAdminServer.cmd and paste in the code below.

SETLOCAL
set OBI_HOME=c:\app\obiee
set DOMAIN_NAME=bifoundation_domain
set USERDOMAIN_HOME=%OBI_HOME%\user_projects\domains\bifoundation_domain
set SERVER_NAME=AdminServer
set PRODUCTION_MODE=true
set JAVA_HOME=%OBI_HOME%\Oracle_BI1\jdk
cd %USERDOMAIN_HOME%
call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
set SERVER_MEM_ARGS=-Xms256m -Xmx1024m -XX:MaxPermSize=512m -XX:-UseSSE42Intrinsics
call "%OBI_HOME%\wlserver_10.3\server\bin\installSvc.cmd"
ENDLOCAL

Save and run it. Note that it must be run ‘as administrator’. Either right click on it in Explorer and select the ‘Run as administrator’ option:



Or open a command window as administrator, change to the directory and run it manually: 



On both cases if prompted by the user access control, select yes to continue.



The script should end without errors:




Now if you look in Services you should see the new Admin service called ‘Oracle_bifoundation_domain_Adminserver’:
  


Create the BI Server install script.

We now repeat this to for the script to create the windows service for the BI Server. In the %OBI_HOME%\wlserver_10.3\server\bin directory create a new file called installBIServer.cmd and paste in the code below.

SETLOCAL
set OBI_HOME=c:\app\obiee
set DOMAIN_NAME=bifoundation_domain
set USERDOMAIN_HOME=%OBI_HOME%\user_projects\domains\bifoundation_domain
set SERVER_NAME=bi_server1
set PRODUCTION_MODE=true
set JAVA_HOME=%OBI_HOME%\Oracle_BI1\jdk
set ADMIN_URL=http://localhost:7001
cd %USERDOMAIN_HOME%
call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
@rem set SERVER_MEM_ARGS=-Xms256m -Xmx2048m -XX:MaxPermSize=512m
call "%OBI_HOME%\wlserver_10.3\server\bin\installSvc.cmd"
ENDLOCAL

Note: the line set SERVER_NAME=bi_server1 may need changing if your managed service has a different name.

Now save and run as administrator as before.


 Again look in Services (refresh the view) to see the new service, Oracle_bifoundation_bi_server1:



Create Groups & Dependencies in the Registry

To ensure the OBIEE service start in the correct order we need to create a group in the windows registry for each service. We then assign each of the four services to these groups and place dependencies on the start order.

Open the Registry Editor (regedit)

Expand and locate HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ServiceGroupOrder:



Double click on the ‘List’ entry and add the following four groups to the end of the value:
OBI Node Manager
OBI Admin Server
OBI Managed Server
OBI OPMN



Click ok to Save.

Now locate the Weblogic Node Manager entry under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services -  in this case called ‘Oracle WebLogic NodeManager (c_app_obiee_wlserver_10.3)’:



Right click on the entry and select New -> String Value:



Enter the name ‘Group’. Double click on Group and enter the OBI Node Manager group name created above:



Now repeat this for the other three entries:

“Oracle_bifoundation_domain_AdminServer” with the Group value “OBI Admin Server”.

“Oracle_bifoundation_domain_bi_server1” with the Group value “OBI Managed Server”.

“OracleProcessManager_instance1” with the Group value “OBI OPMN”.


Now we need to setup the dependences to ensure each service wait’s until the previous services have started before starting.

Right click on the Oracle_bifoundation_domain_AdminServer entry and select ‘New’ -> ‘Multi-String value’. Give it the name DependOnService.  Edit the value and enter the name of the node manager service:


Now create a DependOnService value for the Oracle_bifoundation_domain_bi_server1 and give it the two values:

Oracle WebLogic NodeManager (c_app_obiee_wlserver_10.3)
Oracle_bifoundation_domain_AdminServer

Finally create the DependOnService value for the OracleProcessManager_instance1 with the three values:

Oracle WebLogic NodeManager (c_app_obiee_wlserver_10.3)
Oracle_bifoundation_domain_AdminServer
Oracle_bifoundation_domain_bi_server1


Check the Services.
Open up the Services window and scroll down to find the four OBIEE services. You need to make sure all four are set to Automatic startup.  


 
The Oracle Process Manager will probably be set to Manual so needs changing, the others should already be set to Automatic.



Restart the Server.

Now shutdown and restart the Server.

When the server boots all four services should start in the correct order, however be warned that they will take just as long to start as they do when using the standard ‘Start BI Services’ command, however being services there will be no command windows and the services will stay up when you log off.

The Services screen is a little confusing because all four services will report a status of ‘Started’ even though they are still loading in the back ground.



You can check the log files for the Admin and BI Managed services in their respective home directories:

%OBI_HOME%\user_projects\domains\bifoundation_domain\servers\AdminServer\logs

And

%OBI_HOME%\user_projects\domains\bifoundation_domain\servers\bi_server1\logs


Finally…

If the services fail to start you will need to check the logs and attempt to work out why. Tweaking the memory settings in the files edited above may help.

Whatever you need to do, if you need to re-run either the installAdminServer.cmd or installBIServer.cmd scripts you will need to delete the existing windows services first (otherwise the scripts will just fail – they won’t update the existing services)

To do this first open the Services window and check that the services are ‘Stopped’ – it’s entirely possible that the Services could be Started but OBIEE still doesn’t work. If they are Started then manually stop them.

Then open a command window “as Administrator” and run the following commands:

sc delete  Oracle_bifoundation_domain_AdminServer
sc delete Oracle_bifoundation_domain_bi_server1

These delete the services, removing them from the Services window (select Action -> Refresh).









49 comments:

  1. This is the easiest to follow.
    need to point out that in the "Create the BI Server install script." section the "SERVER_NAME=bi_server1" is not the same as "bi_server1" in "Confirm boot.properties files exist" section.

    What I like best are the way u marked out the code to be copied.

    Would be nice to show how to configure the Wewblogic Node as a windows service too.

    ReplyDelete
    Replies
    1. thanks for your comments, I've added a note about checking the server_name setting.

      The weblogic node should be created as a windows service when you installed OBIEE in the first place, which is why it's not included above. Did you install OBIEE using an account in the Administrator group?

      Delete
  2. Hello
    I tried to create the Weblogic Nodes windows service and got this error in the service_start.log

    INFO: Notification event sent for activating changes.
    <08-Oct-2012 01:54:34 o'clock BST>
    <08-Oct-2012 01:54:34 o'clock BST>
    java.lang.OutOfMemoryError: PermGen space
    [Mon Oct 08 01:55:41 2012] [E] [RunJavaApp] Exception occurred invoking main class [java.lang.OutOfMemoryError: PermGen space

    WHAT'S THE PROBLEM???

    ReplyDelete
    Replies
    1. The problem is java running out of memory, i've come across this a few times. In the BI server install script there is a rem'd out line which alters the memory settings for java: @rem set SERVER_MEM_ARGS=-Xms256m -Xmx2048m -XX:MaxPermSize=512m

      Un-rem it and try again - you may need to play with the settings, these are just the defaults.

      Delete
    2. This comment has been removed by the author.

      Delete
    3. This comment has been removed by the author.

      Delete
    4. This comment has been removed by the author.

      Delete
    5. Thanx that problem has gone now.

      I can't get the "BI Server install script" to work.
      When I run it there is no log in

      => -log:"%OBI_HOME%\user_projects\domains\bifoundation_domain\servers\%SERVER_NAME%\logs\service_start.log" <=

      There is no boot.properties for the BI SERVER.

      -------------HERE IS THE installBIServer.cmd script--------

      SETLOCAL
      set WLS_USER=Weblogic
      set WLS_PW=*******
      set OBI_HOME=C:\Oracle\OBIEE11gR2
      set DOMAIN_NAME=bifoundation_domain
      set USERDOMAIN_HOME=%OBI_HOME%\user_projects\domains\bifoundation_domain
      set SERVER_NAME=bi_Server
      set JAVA_HOME=%OBI_HOME%\Oracle_BI1\jdk
      set ADMIN_URL=http://localhost:7001
      cd %USERDOMAIN_HOME%
      call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
      set SERVER_MEM_ARGS=-Xms256m -Xmx1500m -XX:MaxPermSize=512m
      call "%OBI_HOME%\wlserver_10.3\server\bin\installSvc.cmd"
      ENDLOCAL

      How do you identify the SERVER_NAME???

      Delete
    6. This comment has been removed by the author.

      Delete
    7. -----INSTALLATION DETAILS

      Middleware Home: C:\Oracle\OBIEE11gR2
      BI Oracle Home: C:\Oracle\OBIEE11gR2\Oracle_BI1
      WebLogic Server Home: C:\Oracle\OBIEE11gR2\wlserver_10.3
      BI Domain Home: C:\Oracle\OBIEE11gR2\user_projects\domains\bifoundation_domain
      BI Domain Home: bifoundation_domain
      Instance Home: C:\Oracle\OBIEE11gR2\instances\instance1
      Instance Name: instance1

      The Node & AdminServer runs ok, but the BI Server runs and stops.

      As I said b4, it produces no log.

      PLEASE HELP

      Delete
    8. I also got this from the




      How do I switch off Production Mode??

      I thought set Production Mode=false in installAdminServer.cmd should switch it off


      ------installAdminServer.cmd

      SETLOCAL
      set WLS_USER=Weblogic
      set WLS_PW=******
      set OBI_HOME=C:\Oracle\OBIEE11gR2
      set DOMAIN_NAME=bifoundation_domain
      set USERDOMAIN_HOME=%OBI_HOME%\user_projects\domains\bifoundation_domain
      set SERVER_NAME=AdminServer
      set PRODUCTION_MODE=false
      set JAVA_HOME=%OBI_HOME%\Oracle_BI1\jdk
      cd %USERDOMAIN_HOME%
      call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
      set SERVER_MEM_ARGS=-Xms256m -Xmx1024m -XX:MaxPermSize=256m -XX:-UseSSE42Intrinsics
      call "%OBI_HOME%\wlserver_10.3\server\bin\installSvc.cmd"
      pause
      ENDLOCAL


      This one proiduces a log but the server doesn't

      Delete
  3. ------This is my installSvc.cmd---------


    @echo off
    SETLOCAL


    set WL_HOME=C:\Oracle\OBIEE11gR2\wlserver_10.3
    call "%WL_HOME%\common\bin\commEnv.cmd"

    set OBI_HOME=C:\Oracle\OBIEE11gR2\

    set JAVA_VM=-server

    @rem Check that the WebLogic classes are where we expect them to be
    :checkWLS
    if exist "%WL_HOME%\server\lib\weblogic.jar" goto checkJava
    echo The WebLogic Server wasn't found in directory %WL_HOME%\server.
    echo Please edit your script so that the WL_HOME variable points
    echo to the WebLogic installation directory.
    goto finish

    @rem Check that java is where we expect it to be
    :checkJava
    if exist "%JAVA_HOME%\bin\java.exe" goto runWebLogic
    echo The JDK wasn't found in directory %JAVA_HOME%.
    echo Please edit your script so that the JAVA_HOME variable
    echo points to the location of your JDK.
    goto finish

    :runWebLogic

    if not "%JAVA_VM%" == "" goto noResetJavaVM
    if "%JAVA_VENDOR%" == "BEA" set JAVA_VM=-jrocket
    if "%JAVA_VENDOR%" == "HP" set JAVA_VM=-server
    if "%JAVA_VENDOR%" == "Sun" set JAVA_VM=-server

    :noResetJavaVM
    if not "%MEM_ARGS%" == "" goto noResetMemArgs
    set MEM_ARGS=-Xms64m -Xmx512m

    :noResetMemArgs

    @echo on

    set CLASSPATH=%WEBLOGIC_CLASSPATH%;%CLASSPATH%
    @echo %CLASSPATH% > %WL_HOME%\server\bin\classpath.txt


    rem *** Set Command Line for service to execute within created JVM

    @echo off

    if "%ADMIN_URL%" == "" goto runAdmin
    @echo on
    set CMDLINE="%JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -classpath @%WL_HOME%\server\bin\classpath.txt -Dweblogic.Name=%SERVER_NAME% -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.server=\"%ADMIN_URL%\" -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy=\"%WL_HOME%\server\lib\weblogic.policy\" weblogic.Server"
    goto finish

    :runAdmin
    @echo on
    set CMDLINE="%JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -classpath @%WL_HOME%\server\bin\classpath.txt -Dweblogic.Name=%SERVER_NAME% -Dweblogic.management.username=%WLS_USER% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy=\"%WL_HOME%\server\lib\weblogic.policy\" weblogic.Server"

    :finish
    rem *** Set up extrapath for win32 and win64 platform separately
    if "%WL_USE_X86DLL%" == "true" set EXTRAPATH=%WL_HOME%\server\native\win\32;%WL_HOME%\server\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%WL_HOME%\server\native\win\32\oci920_8

    if "%WL_USE_IA64DLL%" == "true" set EXTRAPATH=%WL_HOME%\server\native\win\64\;%WL_HOME%\server\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%WL_HOME%\server\native\win\64\oci920_8

    if "%WL_USE_AMD64DLL%" == "true" set EXTRAPATH=%WL_HOME%\server\native\win\x64\;%WL_HOME%\server\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%WL_HOME%\server\native\win\x64\oci920_8

    rem *** Install the service
    "%WL_HOME%\server\bin\beasvc" -install -svcname:"Oracle_%DOMAIN_NAME%_%SERVER_NAME%" -javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%" -maxconnectretries:"%MAX_CONNECT_RETRIES%" -host:"%HOST%" -port:"%PORT%" -extrapath:"%EXTRAPATH%" -password:"%WLS_PW%" -cmdline:%CMDLINE% -log:"%OBI_HOME%\user_projects\domains\bifoundation_domain\servers\%SERVER_NAME%\logs\service_start.log"
    ENDLOCAL

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. Got the log to work, it says i have a server name problem.

      How do I identify the server name???

      I got these BEA errors

      BEA-141223

      [Management:141223]The server name bi_Server specified with -Dweblogic.Name does not exist. The configuration includes the following servers {AdminServer}.

      Delete
    3. When you installed OBIEE did you do an enterprise install or a simple install? If you did a simple install there will be no bi_server service as OBIEE will be integrated within the AdminServer. Not sure if you'll be able to get it converted to windows service in this scenario.(at least I've never tried it).

      The simplest way I can think of to identify the server name is look in the obieehome\user_projects\domains\bifoundation_domain\servers directory. In here there will be two directories - AdminServer and another one for the BI Server, usually called bi_server1 (ignore the directory called domain_bak if you have it). If you only see AdminServer then it looks like you did a simple install as mentioned above.

      Delete
    4. Emekachu, something else you can check...the installsvc.cmd file calls a batch file - setlocal - check if this is setting the server_name environment variable correctly (or at all)

      Delete
  6. I Did a simple install, so I can see only the AdminServer.

    Does it mean that I can't make it a windows service??

    Also in installsvc.cmd I can't see any calls to any file.

    I thought the word "setlocal" was a command not file.

    Whats the differnce between Simple & Enterprise install???

    Any disadvantages???

    Thanx for your time.

    ReplyDelete
  7. The above instructions won't work for a simple install - I've never done a simple install (other than to see what it does), so you'll have to refer to the install guide to see if there are any particular instructions on deploying a simple install as a windows service.

    A simple install is just a quick install suitable for a sandpit or PoC. for a proper dev/prod environment where full configuration capability is required you should really do an enterprise install.

    ReplyDelete
  8. oh and I meant to refer to the setDomainEnv.cmd file which sets the server_name environment variable, not setlocal, sorry.

    ReplyDelete
  9. HI I tried to install as windows service for both the servers but I am getting errors. Can you please help me in this. here is the message below when I run the installAdminServer.cmd


    C:\Oracle\Middleware\wlserver_10.3\server\bin>installAdminServer.cmd

    C:\Oracle\Middleware\wlserver_10.3\server\bin>SETLOCAL



    C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>rem *** Set up ex
    trapath for win32 and win64 platform separately

    C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>rem *** Install t
    he service

    C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>"C:\Oracle\MIDDLE
    ~1\WLSERV~1.3\server\bin\beasvc" -install
    BEA Default Service installed.

    C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>-svcname:"Oracle_
    bifoundation_domain_AdminServer"
    The filename, directory name, or volume label syntax is incorrect.

    C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>-javahome:"C:\Jav
    a\JDK16~1.0_3"
    The filename, directory name, or volume label syntax is incorrect.

    C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>-execdir:……………………..
    \patch_wls1035\profiles\default\sysext_manife
    st_classpath -classpath @C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin\classpath.txt
    -Dweblogic.Name=AdminServer -Dweblogic.management.username= -Dweblogic.Productio
    nModeEnabled=true -Djava.security.policy=\"C:\Oracle\MIDDLE~1\WLSERV~1.3\server\
    lib\weblogic.policy\" weblogic.Server"
    The filename, directory name, or volume label syntax is incorrect.

    C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>-log:"C:\Oracle\M
    iddleware\wlserver_10.3\..\\user_projects\domains\bifoundation_domain\servers\Ad
    minServer\logs\service_start.log"
    The filename, directory name, or volume label syntax is incorrect.

    C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>ENDLOCAL

    C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>ENDLOCAL

    ReplyDelete
  10. Please help me out Paul if you know where I am doing wrong. Thanks

    ReplyDelete
  11. Veeresh,

    it looks like you've got carriage returns in the middle of the long commands in installAdminServer.cmd. So rather than running the one command with multiple parameters, it's running the parameters as separate commands, for instance above one of the errors starts '-svcname' is not a command, its not, its parameter on the command on the previous line. Check your .cmd files - if possible use a text editor that doesn't wrap lines so you can see the commands all on one line.

    Paul.

    ReplyDelete
  12. Hi Paul,

    I am facing same issue.

    D:\Oracle\BI_Home\user_projects\domains\bifoundation_domain>-log:"D
    The filename, directory name, or volume label syntax is incorrect.

    i checke there is not carraige returns.

    Even i can see service in services window. i can start and stop services.

    but OBIEE is not working after implemented Weblogin and admin services as window services.

    Could you please do needful on this?

    Thank you,
    Nitin

    ReplyDelete
  13. Hi,

    I have resolved issue,

    Veeresh,

    I removed extra space in installSvc.cmd.
    open this file and go at last -log: which you added.

    Keep cursor prior to -log and give backspace. it will resovle your issue. which i performed same.


    And Thank you so much Paul.

    Thank you,
    Nitin

    ReplyDelete
  14. Thanks Paul, your suggestion worked like charm,

    @Nitin - yes it worked for me too I made it a complete single line. Now it is working fine. I am able to run the services from windows services too.

    Thanks paul this blog has helped me a lot.

    ReplyDelete
  15. Hi Paul,

    We are getting an error while restarting the Admin server after the Windows restart.

    ar 14 13:30:11 2013] [I] [ServiceStart] Reporting SCM of SERVICE_RUNNING
    [Thu Mar 14 13:30:11 2013] [I] [ServiceStart] waiting for multiple events
    [Thu Mar 14 13:30:11 2013] [E] [StartJVM] GetJREPath failed
    [Thu Mar 14 13:30:11 2013] [I] [ServiceStart] done waiting for multiple events. Wait=1
    [Thu Mar 14 13:30:11 2013] [E] [ServiceStart] Error in JVM. Cause=Unable to locate java.dll in \jre\bin!
    [Thu Mar 14 13:30:11 2013] [I] [ServiceStart] Informing SCM about SERVICE_STOP

    ReplyDelete
  16. Please help me out Paul if you know where I am going wrong. Thanks in advance

    ReplyDelete
  17. Hi,
    I am getting error while restarting the services.If even though the services are set to automatic,the newly added Admin/bi server are not starting.
    While trying to start the services i am getting error 'This Service started and stopped.Some Services stop automatically if not used by any other program'
    Please advice on how to resolve this issue.

    ReplyDelete
    Replies
    1. Hi!! I'm getting this same error. Have you got the solution already ?

      Thanks

      Delete
    2. Can some one let us know the solution for this?

      Delete
  18. Hi Paul,
    I've followed all your steps above but I'm getting the following error :

    [Mon May 19 14:42:12 2014] [I] [StartJVM] Parsing JVM Arguments
    [Mon May 19 14:42:12 2014] [I] [StartJVM] Initializing JVM
    [Mon May 19 14:42:12 2014] [I] [RunJavaApp] Loading class - ûXmx512m
    java.lang.NoClassDefFoundError: ûXmx512m
    Caused by: java.lang.ClassNotFoundException: ûXmx512m
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    [Mon May 19 14:42:12 2014] [I] [ServiceStart] done waiting for multiple events. Wait=1
    [Mon May 19 14:42:12 2014] [E] [ServiceStart] Error in JVM. Cause=Unable to load main class!
    [Mon May 19 14:42:12 2014] [I] [ServiceStart] Informing SCM about SERVICE_STOP
    Can you help me on that ?

    Thanks

    ReplyDelete
    Replies
    1. Dude!! Never mind. I've found the issue. The services started with sucess.

      Thank you very much!

      Delete
    2. I'm guessing it was a pasting issue putting the û character in front of ûXmx512m rather than a dash: -Xmx512m

      Delete
    3. This comment has been removed by the author.

      Delete
    4. I am getting the same error. I don't see any û character. Initially because of pasting issue “-“ was missed out. Once this was rectified, I deleted Admin and BI_Server service. Recreated the service and made all the necessary changes in the registry. I still get the same error. Paul please help me.
      Alvaro how did you solve this issue. Thank you.

      Delete
    5. I resolved the issue. Thank you.

      Delete
    6. Please let us us know how did you solve this?

      Delete
    7. Try to find the string "ûXmx512m" into the Windows register. My issue was related to this.

      Delete
  19. hi paul,
    i have had a simple installation, so I created only the service for the admin server, as you describe.
    the outcome is, that the EM starts, but not the analytics..
    what I see in the EM is that BI server and BI presentation services fail to start.
    any idea about it?
    thank you

    ReplyDelete
  20. Hi Paul,
    I am getting error while restarting the services.If even though the services are set to automatic,the newly added Admin/bi server are not starting.
    While trying to start the services i am getting error 'This Service started and stopped.Some Services stop automatically if not used by any other program'
    Please advice on how to resolve this issue.

    Thanks &Regards
    Shiva Kumar

    ReplyDelete
    Replies
    1. Did you solve this issue? if yes, can you please let me know how?

      Delete
  21. Excellent post Paul!

    Regards,
    Drazen

    ReplyDelete
  22. Hi, I am getting below error while starting the admin server via windows service.. Could anyone help here.

    -Dweblogic.transaction.blocking.commit=true -Dweblogic.transaction.blocking.rollback=true -Djavax.net.ssl.trustStore=L:\Oracle12c\Middleware\Oracle_Home\wlserver\server\lib\DemoTrust.jks -Doracle.xml.schema\Ignore_Duplicate_Components=true -Doracle.xdkjava.compatibility.version=11.1.1 -Doracle.soa.compatibility.version=11.1.1 -Ddisable-implicit-bean-discovery=true -Dums
    .oracle.home=L:\Oracle12c\Middleware\Oracle_Home\oracle_common (The filename, directory name, or volume label syntax is incorrect)
    at java.io.FileOutputStream.open0(Native Method)
    at java.io.FileOutputStream.open(FileOutputStream.java:270)

    ReplyDelete
    Replies
    1. The filename, directory name, or volume label syntax is incorrect

      Delete
    2. <Server failed. Reason: There are 1 nested errors: java.io.FileNotFoundException: L:\Oracle12c\Middleware\Oracle_Home\user_projects\domains\soaotc01\stdout.txt -Dweblogic.Stderr=L:\Oracle12c\Middleware\Oracle_Home\user_projects\domains\soaotc01\stderr.txt -Xverify:none -Djava.system.class.loader=com.oracle.classloader.weblogic.LaunchClassLoader (The filename, directory name, or volume label syntax is incorrect)


      Script I used to create the windows service:
      echo off
      SETLOCAL
      set MW_HOME=L:\Oracle12c\Middleware\Oracle_Home
      set WL_HOME=L:\Oracle12c\Middleware\Oracle_Home\wlserver
      set DOMAIN_NAME=soaotc01
      set USERDOMAIN_HOME=L:\Oracle12c\Middleware\Oracle_Home\user_projects\domains\soaotc01
      set SERVER_NAME=admin_soaotc01
      set PRODUCTION_MODE=true
      set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_192
      call "L:\Oracle12c\Middleware\Oracle_Home\user_projects\domains\soaotc01\bin\setDomainEnv.cmd"
      set JAVA_OPTIONS=-Dweblogic.Stdout="L:\Oracle12c\Middleware\Oracle_Home\user_projects\domains\soaotc01\stdout.txt" -Dweblogic.Stderr="L:\Oracle12c\Middleware\Oracle_Home\user_projects\domains\soaotc01\stderr.txt"
      call "L:\Oracle12c\Middleware\Oracle_Home\wlserver\server\bin\installSvc.cmd"
      ENDLOCAL

      Delete
    3. could anybody suggest on this?

      Delete