Need little bit clarification on usage of Truncate and Load

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
vinodn
Charter Member
Charter Member
Posts: 93
Joined: Tue Dec 13, 2005 11:00 am

Need little bit clarification on usage of Truncate and Load

Post by vinodn »

Hi All,

I am using the following properties in my Oracle Stage.
Write Method = Load
Write Mode = Truncate

What would be sequence first Whether it truncate all the records first and then Load. Do we have any commit intervals using truncate and Load.

This clarification is needed as i got very less SLA time for processing the file which got around 6 GB of data.

Usually how much time would it take to load 6GB Data (Roughly 75 Million Records) running on 2 node machine
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Of course, it would first truncate the table and then load everything. Then you have the standard APT environment variables to control the commit levels in Oracle.

You do know what 'truncate' does and the fact that it is... irreversible, yes? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Truncate is a non-transactional operation that is very fast. As Craig notes, it occurs first and is irreversible.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply