TORALoader - Mode

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jrunyan
Posts: 7
Joined: Fri 28 Sep 2007 21:50

TORALoader - Mode

Post by jrunyan » Mon 30 Mar 2009 19:19

I don't see any mention in the documentation which mode is used for TOraLoader. Is it Insert or Append? Can this be set at design time?

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Wed 01 Apr 2009 08:00

Do you mean the Insert and Append methods of TOraTable?

TOraLoader does not use TOraTable or TOraQuery to load data. TOraLoader loads data using the Direct Path Load interface or by executing INSERT statements.

jrunyan
Posts: 7
Joined: Fri 28 Sep 2007 21:50

RE: TOraLoader - Mode

Post by jrunyan » Wed 01 Apr 2009 12:48

The SQL*Loader section in the Oracle Utilities Manual has a section on loading non-empty Tables. The section "Table-Specific Loading Method" has a clause that ca be set to; APPEND, REPLACE, or TRUNCATE.

Append adds the records, Replace performs a Delete on the table and Truncate Truncates the table first. If none of these are set then the records are Inserted and if the table is not empty an error is thrown.

Since there is no similar "Loading Method" is it safe to assume that TOraLoader allways inserts records into an empty table?

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 02 Apr 2009 07:02

TOraLoader always appends records to those that are already present in the table.

Post Reply