cancel
Showing results for 
Search instead for 
Did you mean: 

Scripts for starting/stopping J2EE Server on windows

Former Member
0 Kudos

Greetings.

Is there are some batch scripts for starting/stopping J2EE Server from command line on Windows platform, not from SAPMMC?

Thanks.

WBR, Sergey.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can use the following command

startsap [db|r3|j2ee|ccms|all|check} [<instance>] [<virtual hostname>]

can use startsap to start the whole system

startsap j2ee only for j2ee engine

stopsap [db|r3|j2ee|ccms|all|check} [<instance>] [<virtual hostname>]

Note: You will have to logged on as <sapsid>adm user.

Regards,

Piyush

ps: please award points for useful answers.

Former Member
0 Kudos

Many thanks, Piyush.

I just new in SAP. Could you be so kind to explain how to determine values of <instance> and <virtual hostname> from existing installation.

Thanks.

WBR, Sergey.

Former Member
0 Kudos

No probelm Sergey I will help.

If you see the directory structure of your installation you will have something like

/usr/sap/<SID>/<Instance>/

Instance Name for central instance will be something like JC<Instance_Number>

for Dialog instance will be J<Instance_nUMBER>

Virtual hostname will be the name by which your machine is identified in the network.

Regards,

Piyush

ps: please mark useful answers.

Former Member
0 Kudos

Thanks again.

It seems my SAP is different version (version 4, sp16)

and startsap params are differ from you described.

USAGE: STARTSAP.EXE name=<SID> nr=<SYSNR> SAPDIAHOST=<host>.

So, i suppose name=JC and nr=00. Is it right?

Thanks.

WBR, Sergey.

Former Member
0 Kudos

Hang on. Looks like you are talking about something other than J2EE Engine. May be R/3.

Where did u invoke this sapstart from ?

Do this set path on command prompt and send me the output at piyush.kumar@wipro.com

Regards,

Piyush

ps: please mark for useful answers.

Former Member
0 Kudos

For me these command lines worked:

<b>start:</b>

C:\usr\sap\J2E\JC00\exe>sapstart.exe name=J2E nr=JC00 SAPDIAHOST=localhost

<b>stop:</b>

C:\usr\sap\J2E\JC00\exe>stopsap.exe name=J2E nr=JC00 SAPDIAHOST=localhost

Answers (0)