Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: exit in sql script

Re: exit in sql script

From: Alex Filonov <afilonov_at_yahoo.com>
Date: 25 Apr 2003 10:44:20 -0700
Message-ID: <336da121.0304250944.7f48e640@posting.google.com>


"Sunil" <sunil_franklin_at_hotmail.com> wrote in message news:<Wc3qa.26$B95.383_at_news.oracle.com>...
> Gurus,
> I have a sqlscript without an exit at the end which I call from a csh
> file. I expect the csh script to hang because of the missing exit, but this
> behaviour is erratic. i.e. sometimes it hangs while sometimes it goes
> through fine.
> Any ideas why I may be seeing this behaviour.
>
> Thanks,

It should exit in the end. The only case I saw when sqlplus is hanging up is when you call a non-existing script (or permissions are wrong). It's always a good idea to check for existence of the script before running sqlplus for that script. Another trick is to pipe the script into sqlplus, but it's not always a good idea. For example, you can't run script with parameters this way. Received on Fri Apr 25 2003 - 12:44:20 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US