ORACLE OCI BULK LOAD truncate option.

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
karry450
Participant
Posts: 201
Joined: Wed Nov 14, 2007 11:31 pm
Location: HYD

ORACLE OCI BULK LOAD truncate option.

Post by karry450 »

Hi Friends,

I am loading the target (oracle) from a flat file using ORACLE OCI BULK but before loading I want truncate the target table. But there is no option to delete or truncate the table before loading in ORACLE OCI BULK stage. Can anyone help me with alternate way without creating one more job for truncating the table.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

replace
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Replace is not the same as truncate. Google for 'oracle sqlldr truncate'. I don't believe the truncate option is supported through the GUI, you may need to do it as a separate step.
-craig

"You can never have too many knives" -- Logan Nine Fingers
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

In Before job sub routine calls the shell script. in side the shell script call delete statement.
Srinu Gadipudi
Post Reply