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.
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.
Thanks,
Faisal
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
Ex: stopsap r3