http://www.perlmonks.org?node_id=1061565


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.

Replies are listed 'Best First'.
Re^2: Fork a new process for inserting a record in DB (Oracle)
by marto (Cardinal) 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.