Forum Stats

  • 3,826,047 Users
  • 2,260,590 Discussions
  • 7,896,779 Comments

Discussions

Automate Report server start

XavierGrosfils
XavierGrosfils Member Posts: 155 Blue Ribbon
edited May 15, 2020 12:05PM in Reports

Hello Experts,

for now we start standalone report server using rwservet.bat.

Is there a way this can be done automatically when managed server as started?

(all weblo server are set as services, we would liek everything to start automatically at server startup)

We are on windows server. I would liek to avoid:

     * Task scheduler

     * using a third party wrapper (nssm like) to create a service

Thanks for help,

Xavier

XavierGrosfils

Answers

  • Suresh Sangaran-Oracle
    Suresh Sangaran-Oracle Member Posts: 298 Employee
    edited May 15, 2020 10:52AM

    This should help

    Sample Script (Windows): How To Automate the StartComponent.cmd Command for Reports 12c (Doc ID 2166968.1)

    XavierGrosfils
  • XavierGrosfils
    XavierGrosfils Member Posts: 155 Blue Ribbon
    edited May 15, 2020 11:13AM

    Waa thanks, I nearly though this would save me.

    But the whole document just create a startup.bat file (which call startComponent.cmd) so instead of a problem using rwserlet.bat, I end up with a problem using startup.bat.

    I cannot set startup.bat as a service without a third party wrapper or using task scheduler.

    Or I miss something in the article but doesn provide a solution to my ultimate goal which is to have nodemanager and component started automatically at server startup.

  • Suresh Sangaran-Oracle
    Suresh Sangaran-Oracle Member Posts: 298 Employee
    edited May 15, 2020 11:34AM

    You can create a Windows Service. Ensure you delay this service NodeManager, Weblogic, and WLS_REPORTS should be started prior starting StandAlone Report server

    sc create ReportsComStrt binPath="C:\Windows\System32\cmd.exe /C ORACLE_HOME\user_projects\domains\<DOMAIN>\bin\rwservet.bat"

  • XavierGrosfils
    XavierGrosfils Member Posts: 155 Blue Ribbon
    edited May 15, 2020 12:05PM

    Tried this, it creates the service [SC] CreateService SUCCESS

    but ends up like this when I try to start the service :

          [SC] StartService FAILED 1053:

          The service did not respond to the start or control request in a timely fashion.

    Foreseen behaviour, you have to wrap up your batch with a third party tool, which I want to avoid because it would need tons of approvals here to deploy such stuff in production.