Home > Ask the Oracle Database / Applications Experts > Data Warehousing, ETL, and business intelligence Questions & Answers > Loading data from CSV file into Oracle table using SQL*Loader
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Loading data from CSV file into Oracle table using SQL*Loader

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: 15 September 2004
I am trying to load data from a CSV file into my Oracle table using the SQL*Loader utility. I am new to SQL*Loader, and when I run the utility, all my records are identified as bad and the the program aborts. My requirement is that there are 5 columns which I need to default values in the control file and there are 15 columns from the CSV file. All 20 fields should be loaded as one row. Can somebody help?

>

I would suggest that you set up defaults when you create the definitions for your table. You can create a table or alter an existing column, and you can add the default value to a column. The following is the format for a column definition using a default value:

field1 varchar2(10) default 'NO VALUE' not null,


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