Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
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…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

790 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