Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Running SQL script from the UNIX prompt
One more thing on this:
You can set the: whenever sqlerror exit failure
within sqlplus if you want your script to bomb if there's a big problem and
set echo on
is good for displaying the SQL statement with the output.
and one more way to run a sql script within a unix script:
unix script
On Wed, 7 Feb 1996, Raghu Katakam wrote:
> When I use the #sqlplus userid/passwd @sql_file from the UNIX prompt,
where
does
> it output the errors (if any) flagged? Also, does it give any
informational
> messages like 'n rows updated' etc?
>
Any output from the script sql_file.sql should go to the screen unless you redirect the output on the command line (like > sql_file.log 2>&1 , where > is normal output and 2> is error output ... it think that's standard unix).Received on Thu Feb 08 1996 - 09:06:38 CST
![]() |
![]() |