Friday, November 9, 2012

-ksh: .: line 85: JAVA_VENDOR: parameter not set

For Banner SSB domain configuration, we needed to perform below steps to start Admin Server:



export DOMAIN_HOME=/oracle/product/Middleware11g/user_projects/domains/SSB
. $DOMAIN_HOME/bin/setDomainEnv.sh
nohup $DOMAIN_HOME/startWebLogic.sh >/dev/null 2>/dev/null &

 

The second step from above setDomainEnv.sh was failing with below error:

$ . setDomainEnv.sh
-ksh: .: line 85: JAVA_VENDOR: parameter not set
So I changed to BASH and started weblogic Admin server:

$ bash
[oracle@**** bin]$ . setDomainEnv.sh
[oracle@**** SSB]$ echo $JAVA_VENDOR
Sun
On other server where we use ksh, we never had this issue. So I wondered why is it failing on this server.

Cause:
Looks like set –u is in effect for this server. This can be found using “echo $-“ command:
$ echo $-
imsuBEl


On other server where we don't see this error:
$ echo $-
imsBEl ==> Notice there is no "u"


Solution:
Oracle user's .profile had below:
# Set up the shell environment:
        set -u
1. Remove set -u line from .profile
2. Logout and login back



No comments:

Post a Comment