cancel
Showing results for 
Search instead for 
Did you mean: 

startsap command

Former Member
0 Kudos

Hi folks,

I can only run the command startsap from /sapmnt/<SID>/exe or /usr/sap/<SID>/SYS/exe run  as <sid>adm.

If I try to run the command from /tmp or /, for instance ..., nothing happens.

I checked the environment variables and the path and libpath variables have the /sapmnt/<SID>/exe or /usr/sap/<SID>/SYS/exe setup.

Has anyone faced that before?

Thanks a lot,

M'a

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you all.

The issue was related to the environment file.

former_member182657
Active Contributor
0 Kudos

Hi Marillia,

Nice to hear your issue has been resolved.Kindly close the thread.

Regards,

former_member182657
Active Contributor
0 Kudos

Hi,

Could you share env variables for user <sid>adm  to check for the value of PATH variable ? Please follow steps below to share the result.

su - <sid>adm

> env

Regards,

Former Member
0 Kudos

<sid>adm> echo $PATH

/usr/sap/<SID>/SYS/exe/run:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin:/usr/lbin:/home/<sid>adm

isaias_freitas
Advisor
Advisor
0 Kudos

Hello,

What do you mean by "nothing happens"? You mean that the instance does not start?

Or your operating system returns something like "command not found"?

Maybe posting a screenshot could help .

In addition, when you are at /sapmnt/<SID>/exe, for example, do you execute "./startsap" or just "startsap"?

Regards,

Isaías

Former Member
0 Kudos

Nothing happens. No message appears and the command is not executed.

When I run the command  ./startsap or  startsap from /sapmnt/<SID>/exe and works.

isaias_freitas
Advisor
Advisor
0 Kudos

What is the output of "which startsap"?

And if you execute "startsap" from /tmp, for example, is any file updated at the "/home/<SID>adm" folder?

Former Member
0 Kudos

nope. No file is generated or updated in /home/<SID>adm folder.

The output is nothing. Run the startsap and press enter, the next line is empty

Former Member
0 Kudos

Hi Marilia,

The issue is with your environment do check .sapenv.csh and .dbenv.csh files for the paths of your exe directories.

Also does your user have a .profile in /home/<SID>adm.

You may need to revisit the enviroment how its setup and default shell for the user.

try to run csh command and then run stopsap or startsap command and update us.

And do confirm the contents of the /usr/sap/sapservices file.

Regards,

Ram

Sriram2009
Active Contributor
0 Kudos

Hi Marillia

Are you using the user id SIDADM to start the SAP system?

BR

SS

JPReyes
Active Contributor
0 Kudos

This is certainly an environment issue.

Sounds like a path problem as it works when you are standing on the directory, but even with that it should say something like command not found.

Review your env variables.

Regards, Juan

isaias_freitas
Advisor
Advisor
0 Kudos

What is the output of "which startsap"?

In addition, is this a server running Linux? Or which UNIX (AIX, Solaris, ...)?

What is the shell in use ("env|grep SHELL" should show you this)?

Former Member
0 Kudos

Hi Isaias,

There is no output

It is an UNIX system

the env command that you wrote me, gave me this output -> SHELL=/usr/bin/ksh

isaias_freitas
Advisor
Advisor
0 Kudos

Hello Marilia,

"which startsap" does not return anything??

Former Member
0 Kudos

I run it from /tmp, for example:

startsap r3 <enter>

The next line does not appear nothing.

isaias_freitas
Advisor
Advisor
0 Kudos

OK.....

But what is the output from the command below?

which startsap

==> that is the complete command... "which <command>" will show from where the <command> will be executed

==> for example, you have the startsap at the /sapmnt/... and at the /usr/sap/... folder structures

executing "which startsap" will show from which startsap ( ) command will be used (from /sapmnt or from /usr/sap)

------------

so, what is the output from "which startsap" when executed from /tmp and /sapmnt/<SID>/exe?

It should return the same result...

Former Member
0 Kudos

From /sapmnt/<SID>/exe and /usr/sap/<SID>/SYS/exe/run - the command startsap runs without any errors

from any other path nothing happens.