update (temporary)

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
tostay2003
Participant
Posts: 97
Joined: Tue Feb 21, 2006 6:45 am

update (temporary)

Post by tostay2003 »

Hi,

I have a job which updates an oracle database. I would like to test the working of this job, but at the same time not update the database as other ppl are depended on it.

I know that I shouldn't commit after execution of the sql.

a) If I someway do not commit, then can others use the data without any additional step to revert back to original data.
b) how do we not commit.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The only way to not commit is ensure the job aborts, otherwise your changes will be committed. And I don't see how not committing helps you test much of anything. :?

What I do to test the validity of a data stream when I don't want to actually affect the database is replace the DB stage with a Sequential File stage and check that the data that would have been sent to the DB looks correct. That or simply update the table in an environment where it doesn't matter if you pork it - like a Dev or QA environment. Or arrange to have the table(s) recreated in your local schema so you can have your way with them.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply