title: using sqlldr from java
body: <p>I have a Java utility for database imports. I'd like to be able to use sqlldr for performance on oracle. I could create the <code>control</code> and <code>data</code> files, but that doesn't seem like The Right Thing™ to do. I should be able to stream the data by providing <code>INFILE "-"</code> in the control file (<strong>q1</strong> - how? from command line, I can pipe "<code>echo &lt;data...&gt;</code>" to the sqlldr, but there must be a way to just stream the string into the input stream for the process? never used Java for this before). I can't see how to stream the control file itself (<strong>q2</strong> - or am I missing something obvious?). I could use named pipes, but I have no idea how to instantiate and use them from Java in windows (<strong>q3</strong> - would that work and how?). </p>
  
  <p><code>&lt;moan&gt;</code>why must oracle be so complicated? it was trivial in mysql...<code>&lt;moan&gt;</code></p>