Pages

Wednesday, April 14, 2010

startsap or stopsap fails with No Profiles Found on virtual host installation

startsap and stopsap is not working on virtual host installation or high availability installation.

Error: No Profiles Found

This issue usually arises when Virtual Host was used for installation. You have couple of options which you might explore.

Temporarily you can use startsap [Virtual Host] and stopsap [virtual Host] for starting and stopping SAP.

If you want to fix this permanently then follow one of the two methods below:

1) First Method:

a) Make a copy of startsap script.
SIDADM> cp startsap startsap_orig

b) Edit startsap and Search for string START_PROFILE=START_${1}_${HOSTNAME}

c) Replase ${HOSTNAME} with the Virtual Hostname Used for installation.

2) Second Method:

a) Find the string setTrace "##### getarg() start"

b) Replace VHOST="" with VHOST="Virtual Hostname"

Repeat the same for stopsap script.

5 comments:

  1. You write: "startsap and stopsap is not working...".

    Then, in a classic case of SAP anti-logic, two sentences further down the solution is this: "Temporarily you can use startsap and stopsap for starting and stopping SAP."

    Makes me feel very tired, deep inside.

    ReplyDelete
  2. Actually good spot. Issue was in HTML Editing when I entered Startsap it was ignoring the "" part. Corrected it now with change of brackets.

    Thanks,
    Faisal

    ReplyDelete
  3. Unfortunately both the method didnot work for me, so using startsap with virtual hostname

    My starsap script(ORG) is
    for method-1
    # Set START_PROFILE
    _START_PROFILE=START_${2}_${VHOST}
    setTrace "_START_PROFILE=$_START_PROFILE";

    I changed the VHOST to my actual virtual hostname--didnot work.

    I also changed as per the method-2 --did't work

    ReplyDelete
  4. Can anyone tell me how to edit the startsap script?

    ReplyDelete
  5. Execute startsap or stopsap with hostname

    Ex: stopsap r3

    ReplyDelete