Updating Oracle_OCI_9

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
aakashmalu
Charter Member
Charter Member
Posts: 24
Joined: Sun Nov 13, 2005 10:59 pm

Updating Oracle_OCI_9

Post by aakashmalu »

Hi Friends

I am newbie to DataStage, so please bear with me.
I have a question regarding OracleOCI9.
I am working on a job in which i got to insert or update a table based on different conditions.
When i am doing update i need to add 1 to the count field. I did it by using Hashed file and it works fine,but is there anyother way of doing it.
Its a huge table to be loaded in to Hashed file everyday.

Plz help me folks

thanks
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Only put into the hashed file the rows necessary for processing on a given run. If your hashed file is coming from small table, just copy the table to the hashed file. But, if the table is huge, use meaningful information (probably from the source data being processing) to inner-join reduce the amount of rows copied to the hashed file for reference purposes.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
jenkinsrob
Participant
Posts: 31
Joined: Mon Dec 01, 2003 6:24 am
Location: London

Post by jenkinsrob »

You can use a user-defined update statement in your OCI Stage

Update <Table>
Set <CountField> = <CountField> + 1
Where ....
Post Reply