Db2

Expand all | Collapse all

Issues with removeservice.bat and installservice.bat on Windows

  • 1.  Issues with removeservice.bat and installservice.bat on Windows

    Posted Tue March 03, 2020 04:21 PM
    Hello DMC team,

    I am running DMC version 3.1.1.0 on Windows and had problems with the batches removeservice.bat and installservice.bat.


    1) removeservice.bat

    This script did not work because the Windows "sc" command could not be found. I discovered that I had to make the following change in "product.bat":

    Original line:   SET PATH="%dsserver_home%\java\jre\bin";!PATH!

    Changed line:   SET PATH="%dsserver_home%\java\jre\bin";%PATH%

    That means, I changed "!PATH!" to "%PATH%".


    2) installservice.bat

    The service "IBMDataServerMgr" could be started, but did not respond to a stop request. For the service to work properly, I had to make the following change in "installservice.bat":

    Original line:   %EXECUTABLE% //IS//%SNAME% --Install=%EXECUTABLE% --Description=%PROD_NAME% --JavaHome=%JAVA_HOME% --StartMode=exe --StartImage="%dsserver_home%\bin\start.bat" --StopImage="%dsserver_home%\bin\stop.bat" --StartPath="%dsserver_home%" --LogPath="%dsserver_logs%" --StdOutput=auto --StdError=auto --Startup=auto

    Changed line:  

    %EXECUTABLE% //IS//%SNAME% --Install=%EXECUTABLE% --Description=%PROD_NAME% --JavaHome=%JAVA_HOME% --StartMode=exe --StartImage="%dsserver_home%\bin\start.bat" --StopMode=exe --StopImage="%dsserver_home%\bin\stop.bat" --StartPath="%dsserver_home%" --StopPath="%dsserver_home%" --LogPath="%dsserver_logs%" --StdOutput=auto --StdError=auto --Startup=auto

    That means, I added the options "--StopMode=exe" and "--StopPath="%dsserver_home%"".


    Maybe you can comment on these changes whether they are OK or not. Thanks



    ------------------------------
    Dirk Fechner
    ------------------------------


    #Db2


  • 2.  RE: Issues with removeservice.bat and installservice.bat on Windows

    Posted Wed March 04, 2020 01:38 AM
    Hi Dirk ,

    Thanks for your feedback. At present, DMC still has some restrictions,do not support installation of services for DMC. Hope we can provide support in future releases.

    Thanks!


    ------------------------------
    Yun Bo Zhang
    ------------------------------