Solved

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

Posted on 2008-10-22
3
559 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 125 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Encryption Decryption in Oracle 12 105
null value 15 93
Outer Query not returning data - SQL HELP 16 50
query returning everything 11 87
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

912 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now