cancel
Showing results for 
Search instead for 
Did you mean: 

How to start Sap NetWeaver through command line

Former Member
0 Kudos

hi ,

I always start SAP Netweaver through MMC console. Could any body tell me is there any other way to start SAPNetweaver?.

Is there any exe or bat file which I can run from command line?

If any bat file exists do i need to send parameter for it?

Regards,

Chandan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks Juan,

I have tried that but not yet get success.

Following is the details of SAP system

1) It is Distributed System where CI and SCS are installed on one machine and Dialog instance is on another machine.

2) Operating System (64bit): Windows 2003

The link which you had refered in last message was useful for SAP system on Unix I supposed.

Let me know how to proceed further in order to start SAP netweaver through command line.

Thanks,

Chandan

JPReyes
Active Contributor
0 Kudos

Startsap and stopsap commands work exactly the same in the windows command prompt... so disregard the UNIX remark.

if you have Different application servers you need to run the commands on them too...

Regards

Juan

Former Member
0 Kudos

Thanks Juan,

I could successfully shutdown the SAP system(which was already started).

When I tried to start it again. I am facing some problem.

In order to start database instance , I cannot understand what to specify as InstanceId for Database Instance.

For CI and SCS I can find it through mmc console. But donot know how to find instance Id for Database Instance.

Could you let me know how to find Instance Id (SYSNR) for Database Instance?

I think you next reply will solve my problem.

Thanks,

Chandan

JPReyes
Active Contributor
0 Kudos

simply go to /usr/sap/<sid>/DVEBMGSXX where XX is the instance number

Regards

Juan

Former Member
0 Kudos

Hi,

You can find your DB instance in the default profile.

Open the file DEFAULT.PFL and check for the parameter j2ee/dbname.

You can find the default profile in \usr\sap\<SID>\SYS\profile\

Thanks & Regards,

Vijith

former_member185954
Active Contributor
0 Kudos

Hello Chandan,

Please check the port numbers for your SAP Service in file c:/windows/system32/drivers/etc/services

look for a service which looks like:

SAPMS<SID> 36<SYSNR>/tcp

This would give you the system number.

Regards,

Siddhesh

Former Member
0 Kudos

HI Vijith ,

Thanks,

But is that the DB Instance number? As per your message, I open default.pfl file and observed that the value for j2ee\dbname is Q64 (which is actual System Id also).

Like we have for Central Instance = 00 and SCS =01

Regards,

Chandan

Former Member
0 Kudos

Hi Juan,

The SAP System we have doesnot contain DVBMGSXX folder under <sid>?

Is there any other way to find DB Instance Number?

There is one comment sent by vijith from where we can find DB instance number.

when we stop CI and SCS instance , Color of CI and SCS from mmc console changes to gray which means we can confirm that SCS and CI are properly shutdown?

How to confirm about DB Instance Shutdown?

Regards,

Chandan

JPReyes
Active Contributor
0 Kudos

If your DB is in a separate host... you won't find and instance number for it... basically it should be shutdown when you call "stopsap" from the central instance... in the other hand you can stop and start the DB manually.

Regards

Juan

Former Member
0 Kudos

Thanks Juan,

This is fine when we are stopping the server. But what to do when we start the DB Instance? As the link which you sent in first message mentioned that DB Instance should be started before starting CI and SCS. And to Start DB instance also we need DB Instance number.

I start any component(CI, SCS, DB Instance) by following command

>startsap.exe name=<SID> nr=<Instance number> sapdiahost=<hostname>

and it is working fine for SCS and CI.

So could you please explain me how to start DB instance(on different host) in order to start SCS and CI?

Regards,

Chandan

JPReyes
Active Contributor
0 Kudos

You DB should start as part of the startsap on your CI...so basically start the CI and then the DI.

Regards

Juan

Former Member
0 Kudos

Hi,

My previous post was to find the SID of DB and not instance number.

I am not sure whether there would be a instance number for DB.

Meanwhile if you want to start DB on a different host use the command startdb (On the system where DB runs).

If DB is on the same host as CI then use startsap.

Thanks & Regards,

Vijith

Former Member
0 Kudos

Thanks a lot Juan,

I could successfully solved my problem.

Thanks once again.

Regards,

Chandan

Former Member
0 Kudos

Hi Juan,

As I told you I could successfully start and stop NW server through command line.

I have setup some JVM parameter in configtool.bat so Could you please let me know when I start NW server throgh command line will it consider the JVM parameter that I have setup in Configtool.bat ?

Regards,

Chandan

Answers (1)

Answers (1)

JPReyes
Active Contributor
0 Kudos

yes... logon as <sid>adm open a command prompt and type "startsap"

Read the following for more switches...

http://help.sap.com/saphelp_nw04s/helpdata/en/70/b38937809c8f71e10000009b38f842/content.htm

Regards

Juan