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.
