Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Loading external information into Oracle - similar to BCP in Sybase and SQL Server

Posted on 2008-10-22
3
Medium Priority
?
570 Views
Last Modified: 2013-12-18
Hi,

I have a question regarding loading external information (i.e. from a file for instance) into a table in an Oracle database.

I'm familiar with Sybase and SQL Server with doing a BCP IN. Oracle doe not have a BCP utility. It does have several other mannerisms. From some information I have gathered: SQLLDR in Oracle is commensurate with BCP IN in Sybase and SQL Server. The control file is commensurate with the format file, I believe. Yet, I have also heard and do not know much about them on datapump and datadump. In addition, it is also my understanding that since Oracle 9i there is also the ability of external tables. (Although, the external tables are a bit of a concern to me as they can have issues.)

I'm looking for something that is consistently applied and will meet about 80% or more of routine loading of information. (Again, like BCP IN in SQL Server and Sybase).

Any information on that would be greatly appreciated.

Thanks
0
Comment
Question by:davism
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
sujith80 earned 500 total points
ID: 22783598
A quick overview :

SQL Loader - Loads files from the file system to Oracle database. Files can be fixed width or delimited. Very fast for reading flat files.

External Tables - Reads a file on the file system from the database as if it was a table. Very convenient to apply formatting, tranformations etc on the data. Can avoid the use of a staging table. Can use parallelism etc.

datapump : Used for unloading and loading data from oracle database to oracle database. Unloading generates oracle formatted files, which can be loaded back ONLY using datapump.

In my opinion you must for for External Tables( They are quite reliable and fast, havent come across much of runtime issues)
Or
You must use sqlloader(safer option, very fast in my opition by using DIRECT path loading etc).

You must read the respective sections from this book(a must):
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/toc.htm
0
 
LVL 1

Author Closing Comment

by:davism
ID: 31508972
sujith80,

Thanks much for the answer. I provides for another area of opinion and one that coincides more with others I've passed the information to.

The general theme is for the use of SQLLDR (SQL Loader).

Thanks again and very much appreciated! (Nice link as well!)
0
 
LVL 27

Expert Comment

by:sujith80
ID: 22901294
You are welcome.
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question