Moving a system from Oracle 9g using unix to Oracle 10g using SUSE Linux. This script works fine on the old system, but gets an "unexpected end-of-file" under the new setup. If I enter the lines individually from a command prompt, it works.
Any ideas on what its seeing as an error?
#!/bin/ksh
#--------------------------------------------
export ORACLE_HOME=/opt/oracle/product/10.2.0.2
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export SHLIB_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH
LOGFILE=/export/home/script.log
USER=USER
PASSWD=PASSWORD
DBNAME=dbname
($ORACLE_HOME/bin/sqlplus -s /nolog <<EOF
connect ${USER}/${PASSWD}@${DBNAME}
set feedback on
update dbtable d
set d.isflag = null
where
d.isflag is not null;
commit;
exit
EOF
) | tee $LOGFILE
exit 0
Any ideas on what its seeing as an error?
#!/bin/ksh
#--------------------------------------------
export ORACLE_HOME=/opt/oracle/product/10.2.0.2
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export SHLIB_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH
LOGFILE=/export/home/script.log
USER=USER
PASSWD=PASSWORD
DBNAME=dbname
($ORACLE_HOME/bin/sqlplus -s /nolog <<EOF
connect ${USER}/${PASSWD}@${DBNAME}
set feedback on
update dbtable d
set d.isflag = null
where
d.isflag is not null;
commit;
exit
EOF
) | tee $LOGFILE
exit 0