Whenever you have a really large amount of data to insert into a table, it is
much better and faster to use a loading utility that is native to the database server. (In the case of Oracle, this would be a tool called sqlload, or something similar to that -- I don't know the exact spelling of the tool name in Oracle 9i.)
It would be most effective to use a simple Perl script to create the text stream that will serve as input to the native dbms import tool, so that you have a chance to make sure that the input won't involve any really hazardous mistakes -- i.e. errors in the data that the dbms tool might find acceptable even though they are errors.
I haven't done a recent systematic benchmark of Perl/DBI vs. sqlload, but the last time I had occasion to compare the two, doing row inserts via Perl/DBI was orders of magnitude slower than using sqlload.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.