Sunday, October 25, 2015

Which wlst.sh?

I have installed only OSB (if you install SOA Suite, you will get more instances of wlst.sh :o) )

cd $ORACLE_HOME

find . -name wlst.sh

./Oracle_OSB1/harvester/wlst.sh
./Oracle_OSB1/common/bin/wlst.sh
./wlserver_10.3/common/bin/wlst.sh
./oracle_common/common/bin/wlst.sh


So, which one are you supposed to use?


There is also a

./oracle_common/common/bin/setWlstEnv.sh

which is invoked by everybody.


When using OSB, you should use the ./Oracle_OSB1/common/bin/wlst.sh
Remember that you should first change dir:

cd ./Oracle_OSB1/common/bin/
. ./wlst.sh

this gives me a "command not found /bin/java "

So I do

cd $DOMAIN_HOME
. ./setDomainEnv.sh
java weblogic.WLST

No comments: