Shell script not working

. /home/bscs6/.kshrc
set -x
monthy=`date +%m`
daty=`date +%d`
yeary=`date +%Y`
cd /home/bscs6/scripts
sqlplus sysadm/sysadm@SEGODI @lms_profile.sql
mv /home/bscs6/scripts/lmsprofile.log /home/bscs6/scripts/LMS_PROFILE_DUMP_$daty$monthy$yeary.txt

gives me the error below:

LMS_PROFILE.sh: ORACLE_SID=SEGODI: is not an identifier

Can you show results of these commands:

which sqlplus

sqlplus
(log in manually)

exit;

export ORACLE_SID=SEGODI

sqlplus /nolog

connect sysadm/sysadm

mainbrain:/home/bscs6/scripts>sqlplus

SQL*Plus: Release 8.1.6.0.0 - Production on Tue Jan 20 08:04:07 2015

(c) Copyright 1999 Oracle Corporation.  All rights reserved.

Enter user-name: 


mainbrain:/home/bscs6/scripts>export ORACLE_SID=SEGODI
mainbrain:/home/bscs6/scripts>sqlplus /nolog   

SQL*Plus: Release 8.1.6.0.0 - Production on Tue Jan 20 08:06:32 2015

(c) Copyright 1999 Oracle Corporation.  All rights reserved.

SQL> connect sysadm/sysadm
Connected.
SQL>

Ok, and what does this file look like:

. /home/bscs6/.kshrc

?