Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Fork a new process for inserting a record in DB (Oracle)

by talexb (Canon)
on Nov 07, 2013 at 13:52 UTC ( #1061565=note: print w/ replies, xml ) Need Help??


in reply to Fork a new process for inserting a record in DB (Oracle)

When I had to do this over ten years ago, I use the Ingres' bcp utility. Does Oracle have a similar tool that you could use instead of writing a Perl script?

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.


Comment on Re: Fork a new process for inserting a record in DB (Oracle)
Download Code
Re^2: Fork a new process for inserting a record in DB (Oracle)
by marto (Bishop) on Nov 07, 2013 at 14:15 UTC
      I'm trying to populate fresh data into the DB. So, I don't have any source from where I can simply dump it using sqlldr.

        The idea is to write your data source to a text file with Perl.

        Then you use sqlldr to bulk load the data into your database.

        This is much faster than doing it through DBI.

        And that is where Perl comes into the play. You can create the "source" with Perl from the fresh data.
        لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

        "I don't have any source from where I can simply dump it using sqlldr."

        sqlldr is for loading data, not dumping it. You must have data, otherwise what were you populating the blank database with? If it's something you generate then simply use that as the input for sqlldr.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2014-12-26 06:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (165 votes), past polls