Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: File Loader (load the content of a file and insert into DB)

by jhourcle (Prior)
on May 20, 2005 at 21:46 UTC ( [id://459151]=note: print w/replies, xml ) Need Help??


in reply to File Loader (load the content of a file and insert into DB)

Depending on how fast you're going to be pumping data into Oracle, you might be better served creating a text file from the new data (after verifying it, etc.), and then calling oracle's sqlldr (aka. SQL*Loader)
  • Comment on Re: File Loader (load the content of a file and insert into DB)

Replies are listed 'Best First'.
Re^2: File Loader (load the content of a file and insert into DB)
by elwarren (Priest) on May 22, 2005 at 16:47 UTC
    If it's an Oracle 9i db you could use external tables, which is essentially sqlldr reading files as they are needed. It's quite fast as well. Just define the directory, the filename and the file format and you're done.

    But that's getting off topic. I'd go with the cron vs a looping daemon. Just make sure you don't read the same file twice if the first invocation of your code doesn't complete before the next run...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://459151]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (None)
    As of 2024-04-25 00:55 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found