Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: External tables

RE: External tables

From: Pete Sharman <peter.sharman_at_oracle.com>
Date: Thu, 24 Apr 2003 15:17:01 -0800
Message-ID: <F001.00589033.20030424151701@fatcity.com>


True, but IIRC where external tables really outshine SQL*Loader is where you may not need to actually load the data. As an example, one client I saw using external tables received an hourly feed from an external source. They had some code written to check if the file arrived, load it if it had and so on. With external tables the data is only read if it's needed. The client I'm referring to simply kept the same file name each time, and the overhead of loading the material went down from occurring every hour to occurring only when the table was queried. Of course, there's the issue that the overhead of the load now occurred at the time of the query, but for this particular customer that wasn't so much of a concern.

Pete
"Controlling developers is like herding cats." Kevin Loney, Oracle DBA Handbook
"Oh no, it's not. It's much harder than that!" Bruce Pihlamae, long-term Oracle DBA  

-----Original Message-----
Sent: Thursday, April 24, 2003 3:02 PM
To: Multiple recipients of list ORACLE-L

Another point missed so far is that
if your SQL to the external table hits
some dirty data, then it bombs out
with an Oracle error, and if you've been busy running an insert from it the next
thing that happens is a likely to be a
massive rollback.

You also have to deal with the discard/bad file (in the event that your external table definition includes a 'bad limit' and doesn't crash your process) so you haven't really got rid of much of the infrastructure that you would need if you were to use sqlldr - only the SQLLOAD command and a
couple of lines of shell to check the exit status from SQLLOAD and grep/awk the
rows-loaded count from the log.

Regards

Jonathan Lewis
http://www.jlcomp.demon.co.uk

  The educated person is not the person
  who can answer the questions, but the
  person who can question the answers -- T. Schick Jr

One-day tutorials:
http://www.jlcomp.demon.co.uk/tutorial.html

____UK_______April 22nd
____USA_(FL)_May 2nd
____Denmark__May 21-23rd
____Sweden___June
____Finland__September
____Norway___September

Three-day seminar:
see http://www.jlcomp.demon.co.uk/seminar.html

____UK_(Manchester)_May x 2
____Estonia___June (provisional)
____Australia_June (provisional)
____USA_(CA, TX)_August

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

> The replies so far have failed to mention that parallel loading with
> external tables is easy. With sqlloader, it ain't so easy.
>
> With external tables, it is also easy to do additional processing
via
> SQL when you load. In many cases you could avoid extra steps
required
> in sqlloader, such as loading to a temp table, then massaging your
data
> and loading to a perm table.
>
> You can skip the temp table with external tables.
>
> Jared
>
>
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jonathan Lewis
  INET: jonathan_at_jlcomp.demon.co.uk

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the
message BODY, include a line containing: UNSUB ORACLE-L (or the name of
mailing list you want to be removed from).  You may also send the HELP
command for other information (like subscribing).


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Pete Sharman
  INET: peter.sharman_at_oracle.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Apr 24 2003 - 18:17:01 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US