Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-10-22
3
Medium Priority
?
567 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
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 explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

704 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