-sh: is not an identifier

Hi ,
I am getting the following message when log into my unix account in sun solaris (version5.9)server.

-sh: ORACLE_HOME=/apps/oracle/product/10.2.0/client_1: is not an identifier

The ORACLE_HOME is set in .profile file.

Another thing is that SID is also set inside .profile like below
export SID=name
but
echo $SID is not showing anything.

Regards
Megh

That form of export syntax is not valid in Bourne Shell. It is valid in ksh and bash.

You need two lines.
ORACLE_HOME=/apps/oracle/product/10.2.0/client_1
export ORACLE_HOME

I am suspicious of the "-sh:" rather than just "sh:", do you have a header in the .profile like one would for a shell scrip, e.g.:
#!/bin/sh

or:

-sh

or something like that?

What does the your account have its shell specified as in the passwd file (or wherever the account information is store)?

Perhaps posting the the entire contents of your .profile file (and any other files it sources (calls preceded by a dot) would be helpful?

Don't worry about that. methyl's response is correct.

Having re-read this I realised that:

does not work work with sh (Bourne shell) but does work with Korn shell (ksh, and presumably Bash.
If your user account's default shell is sh then the line need to read:

SID=name; export SID

as methyl has already mentioned for the ORACLE_HOME variable.