Oracle Connector Delete Statement Full Table Scan

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
allendr
Participant
Posts: 1
Joined: Thu Jul 15, 2010 2:13 pm

Oracle Connector Delete Statement Full Table Scan

Post by allendr »

I have a stage that deletes 145 records from an 8 million row table. When I execute one delete from oracle developer it uses an index and takes less than a second. The datastage job does full table scans and takes over 4 minutes.

I am looking for a clue short of generating a sql profile to get the data stage job to use the index and run an efficient delete.
da
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Similar issues have been highlighted before. Is the index visible for the user you are connecting to Oracle via DataStage ?

Did you run the session monitor from the dba level.

One method can be use a temporary table to load your delete records and then use after-job script to perform the deletes.
evans036
Premium Member
Premium Member
Posts: 72
Joined: Tue Jan 31, 2006 11:13 pm

Post by evans036 »

i know this post is nearly a year old, but i just thought i'd mention for others looking for answers...

if the key col datatype is inconsistent with the index datatype in the database (eg double vs integer etc), oracle may well choose not to use the index - even though the predicate may be successful in locating the target rows.

so it may not affect your results but may affect the performance.

hope this helps,

steve
Post Reply