Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Equivalent of UNIX hear document on Windows NT
On 7 Mar 2006, dbaplusplus_at_hotmail.com wrote:
>
> Versions of Oracle and UNIX are not relevant. But I work on HP UNIX
> using Oracle9i.
>
> When writing shell scripts, I use Unix's here document, e.g.,
>
> Sqlplus /nolog << !
> Conn scott/tiger
> Statement1
> Statement2
> !
>
>
> How can I do the same on Windows NT/2000. I am writing .bat files,
www.cygwin.com is wonderful for this.
I have authored shell code that is completely portable to UNIX this way loads of times. (Well, there are directory issues and versions of shell issues, but in general, the code written in cygwin will run in UNIX)
-- Galen BoyerReceived on Thu Mar 09 2006 - 16:29:03 CST