Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> A $64k ? (UNIX commands on NT)
--------------59B974EC142ED31D179B8BF9 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
I need to convert a file from EBCDIC to ASCII and then use it as input to SQL*Loader using as little disk space as possible. On UNIX machines this can be accomplished easily using “dd” to do the character conversion and a FIFO pipe to handle the I/O. An example:
$ mknod fifo_pipe p $ dd if=/dev/rmt/0 of=fifo_pipe conv=ascii & $ sqlldr userid=foo/bar data=fifo_pipe control=foobar.ctl
What is the NT solution, or is there none?
\\|// (0-0) +---------oOO----(_)---------------+
| Brian P. Mac Lean |
| Senior Oracle DBA |
| brian.maclean_at_goodnet.com |
| brian.maclean_at_sendero.fiserv.com |
+----------------------oOO---------+ |__|__| || || ooO Ooo --------------59B974EC142ED31D179B8BF9
<HTML>
<TT>I need to convert a file from EBCDIC to ASCII and then use it as input
to SQL*Loader using as little disk space as possible. On UNIX machines
this can be accomplished easily using “dd” to do the character conversion
and a FIFO pipe to handle the I/O. An example:</TT><TT></TT>
<P><TT>$ mknod fifo_pipe p</TT> <BR><TT>$ dd if=/dev/rmt/0 of=fifo_pipe conv=ascii &</TT> <BR><TT>$ sqlldr userid=foo/bar data=fifo_pipe control=foobar.ctl</TT><TT></TT>
<P><TT>What is the NT solution, or is there none?</TT><TT></TT>
<P><TT>
\\|//</TT>
<BR><TT>
(0-0)</TT>
<BR><TT> +---------oOO----(_)---------------+</TT>
<BR><TT> |
Brian P. Mac Lean
|</TT>
<BR><TT> |
Senior Oracle DBA
|</TT>
<BR><TT> |
brian.maclean_at_goodnet.com |</TT>
<BR><TT> |
brian.maclean_at_sendero.fiserv.com |</TT>
<BR><TT> +----------------------oOO---------+</TT><BR><TT> |__|__|</TT>
--------------59B974EC142ED31D179B8BF9-- Received on Tue Oct 14 1997 - 00:00:00 CDT