|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
`<<' is not matched.
m trying to connect to oracle through Unix shell scripting however i m getting this error message "`<<' is not matched. " can anybody help me out for the same....
Code:
# Createion Date: 21-Jul-2006
# Modification Date:
# Version: 1.0
####################################################################
##############################################################
# Check the parameter
##############################################################
if [ "${#}" -lt 5 -o "${#}" -gt 5 ]
then
echo "Usage for this script is : <Start Month> <End Month> <DB_Name> <DB_User>
<DB_Password>"
exit 1
fi
if [ "${#}" -eq 5 ]
then
start_month=$1
end_month=$2
db_nm=$3
db_usr=$4
db_pwd=$5
fi
while [ "$start_month" -ne "$end_month" ]
do
echo $start_month
sqlplus -s $db_usr/$db_pwd@db_nm <<END
print -p "select * from dual;"
exit
END
$start_month=`eval start_month + 1`
done>
|
|
#2
|
|||
|
|||
|
The error is in this block - the here document
Code:
sqlplus -s $db_usr/$db_pwd@db_nm <<END print -p "select * from dual;" exit END 1. move the << over one poistion to the left. 2. make SURE there is no character in front of END. ie., it is in the firs position. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > `<<' is not matched. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|