Computing.Net > Forums > Linux > Error Message

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Error Message

Reply to Message Icon

Name: Vinod Sadanandan
Date: October 18, 2007 at 21:48:25 Pacific
OS: LINUX
CPU/Ram: NA
Product: NA
Comment:


Hi,

Can anyone help me on the error message ?
recover.sh: line 18: syntax error: unexpected end of file
==================================
#!/usr/bin/sh
HostName=`hostname`
LOGDIR=$PWDLE_SID
LOGFILE=$LOGDIR/${MYSID}
num=0
while [$num -lt 10]
do
echo -n $num
num='expr $num+1'
sqlplus /nolog <<EOF
conn / as sysdba
recover datafile $num;
exit
done
echo "\n Done "

Thanks & Regards,
Vinod Sadanandan
Oracle DBA

Vinod Sadanandan
Oracle DBA



Sponsored Link
Ads by Google

Response Number 1
Name: wollie
Date: October 19, 2007 at 02:01:37 Pacific
Reply:

Hi, an easy one:

you have to close the phrase:
sqlplus/nolog << EOF

insert a new line with the text EOF, beginning at column 1, where the stacked commands for sqlplus end (I guess it's the line between
"exit" and "done"

cheers
Wollie


0

Response Number 2
Name: Vinod Sadanandan
Date: October 20, 2007 at 05:27:33 Pacific
Reply:

Hi Wollie,

Many thanks for the reply,will make things work :-) i had appended this into the above one.
declare
num INTEGER(5);
begin
num := 1;
while num<=300
loop
num := num+1;
recover datafile num;
exit when num > 300;
end loop;
end;
/

Vinod Sadanandan,
Oracle DBA
Public profile http://www.linkedin.com/pub/5/464/578


0

Response Number 3
Name: jlaudirt
Date: December 12, 2007 at 13:17:12 Pacific
Reply:

if [ -e $1 ]
then
cd $LOCAL
sqlplus saftecno/saftecno <<EOF
execute integracaoforcadevendas_tec.importarpedidopalm('$1');
exit
EOF
exit 1
fi

when I run the below lines. Red Hat return's me the following message:
/bin/pedidos: line 19: syntax error: unexpected end of file


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Error Message

floppy error message www.computing.net/answers/linux/floppy-error-message/18682.html

compiler error message www.computing.net/answers/linux/compiler-error-message/11470.html

Error message www.computing.net/answers/linux/error-message/26380.html