Skip to Content
avatar image
Former Member

automatic restart of JAVA instance

Hello All,

Could you please share the steps of commands for Automatic restart of JAVA instance.

We are using (Oracle + JAVA)

Regards

Sub

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jan 19, 2016 at 03:59 PM

    Hi.

    If you are planning to do with crontab, create a shell script which will contain following statement

    su - <sid>adm -c "stopsap j2ee"

    su - <sid>adm -c "startsap j2ee"


    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 19, 2016 at 06:52 PM

    In a dual-stack (ABAP + Java) system, when you start and stop ABAP instances, the corresponding Java instances start and stop automatically, by default. To deactivate the automatic start of the Java instances, set the instance profile parameter rdisp/j2ee_start to 0 in transaction RZ10. You must then restart the Java instance separate from the ABAP instance. However, when you stop an ABAP instance, the associated Java instance always stops, too.

    please see Restarting the Java Stack of an SAP NetWeaver Dual-Stack System - SAP NetWeaver Library: Function-Oriented View - SAP Li…

    best regards,

    Manjunath

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 20, 2016 at 10:00 AM

    Hello All,

    Thanks for your suggestion.

    I have to do it for windows system

    Current configuration

    SAP ERP 6.0

    Windows 2008

    Oracle 11.2.0.4

    Regards

    sub

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member S Sriram

      Hi Subbu,

      Create two batch files one for startup and the other to stop

      Something like...

      C:\usr\sap\XXX\SYS\exe\startsap.exe name=XXX nr=00 SAPDIAHOST=xxxx.xx.xxxx

      Then update it in gpedit. That’s it

      Regards,
      Prithviraj.

      Untitled.png (89.0 kB)