Home > Ask the Oracle Database / Applications Experts > Data Warehousing, ETL, and business intelligence Questions & Answers > Best way to load 500,000 rows every hour
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Best way to load 500,000 rows every hour

Ian Abramson EXPERT RESPONSE FROM: Ian Abramson

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 18 June 2003
I load about 500,000 rows every hour into the fact table, which has partitions. My end query basically dumps the data into the fact table. Can I dump it to a text file and then SQL*Load to the table? Will it be faster? I ran into a buffer size. Can this be increased over the max?

>

The answer to your question is it depends. You need to look at the methods that you are currently using to load the data. I would ask you if you are using an ETL product or SQL or PL/SQL or a 3rd GL. Based on this response the answer may be different.

If you are using an ETL tool, then you may find significant performance benefits by creating a flat file and then processing that into the database. Of course if you using SQL*Loader then you have the option of using the direct load option. This will load your data as fast as possible. However, you then need to consider whether or not you have constraints and indexes on the table into which you are loading. Constraints of course is an issue with direct loading, and indexes will need to be rebuilt, but if all you are looking for is performance this would make a solid option.

If you are using a programming language then you need to consider your options of using the flat file. I feel that the fewer times that we read or write data that we can show significant performance benefits. You also need to consider the location of your database. If both databases reside on the same machine then you do not have to consider bandwidth issues, but if you are connecting to a remote machine for your data, then you may find that creating the flat file will give you a performance boost.

As for your problems with buffer size you need to provide me with more details on your error to help you diagnose this problem. I am not sure if you are referring to the "readsize" option in SQL*Loader or the "arraysize" option in SQL*Plus. Generally you should know that you should never set any values within the database beyond the stated maximum value. This may cause the database to act in a non-predictive manner. Check your documentation and see the maximum values for these parameters.

For More Information


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Data Warehousing, ETL, and business intelligence
Analyzing an index after rebuild
Speed of low-cost query
Data warehouse based on operational data model
Method other than DB link for large data transfer
Data migration with ETL
Basic steps for implementing a DBMS
Importing 8i dump file to 9i
Using export/import process to clone to data warehouse
Areas of impact while migrating database from 8i to 9i/10g
External tables explained

Oracle data warehousing
Oracle data warehousing tutorial
Oracle's supply chain BI the answer for SaaS provider
Oracle business intelligence guide
BI strategies of Oracle and the megavendors
Exadata: A first look at Oracle's entry into the appliance market
Oracle New Year's resolutions, part 2: GRC tips and customer resolutions revealed
Oracle's Top 8 stories of 2008
IOUG chief discusses OpenWorld, DBA pay and security
Oracle enters the appliance market with Exadata
Tip: Exposing logical attributes with virtual columns

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
multidimensional database  (SearchOracle.com)
operational data store  (SearchOracle.com)
repository  (SearchOracle.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Oracle White Papers: Fusion Middleware
HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2003 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts