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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Can SQL*Loader read standard input?

Re: Can SQL*Loader read standard input?

From: Patrick L. Nolan <pln_at_cosmic.stanford.edu>
Date: 16 May 2002 20:16:44 GMT
Message-ID: <ac143c$g78$1@usenet.Stanford.EDU>


Thomas Gaines <Thomas.Gaines_at_noaa.gov> wrote:
> Pat -

> That's a real interesting question. At first I thought of using
> named pipes, but my IPC background is pretty rusty right now,
> and I knew that I'd waste time just getting the things to work.
> I had thought that SQL*Loader
> would be unable to read from stdin because of the input file being
> specified in the control file. But it looks as though I am wrong.
> Doing
> a quickie search through Metalink, I run across bug 876007 that's
> advertised as fixed in version 8.1.6. Here, a user had difficulty on
> AIX doing what you want, but apparently not on other operating
> systems.

I looked at this. The example includes the line INFILE "-"
That makes sense, so I tried it. Apparently the specific bug has been fixed in 9i, but it still doesn't work the way I would like. It tries to interpret the first line of the input as a filename, which is disastrous, of course.

> I started doing the little test case described in the bug
> on my own test Win2000 server
> until I realized that I don't know how to pipe in Win2000. To
> test this on Unix would be a pain right now, and so I'll leave it
> to you to give a try on your end.

It's easy to make a named pipe on Linux, and it seems to work just fine. Thanks for the idea.

-- 
*   Patrick L. Nolan                                          *
*   W. W. Hansen Experimental Physics Laboratory (HEPL)       * 
*   Stanford University                                       *
Received on Thu May 16 2002 - 15:16:44 CDT

Original text of this message

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