DS job taking long time to finish

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
kishorchitra
Participant
Posts: 6
Joined: Mon Oct 04, 2004 9:40 am

DS job taking long time to finish

Post by kishorchitra »

Hi,

I am fairly new to datastage and don't really know much, but I am supposed to do production support for few handful data stage jobs. I have a simple data stage job which has insert/update/delete logic. The data it deals with is in the order of few thousands only. But, It runs for more than an hour after the above message comes up (CTransformerStage53: DSD.StageRun Active stage finishing.). I want to know whether any one else encountered the same problem and is there any fix to it.

Below is the last few steps in the log file:

DsHcFrmlyAccessStCs..ORAOCI854: UPDATE HIST_HC_ACCOUNT_ACCESS SET ACCESS_LEVEL = :3, RECORD_EFFECTIVE_THRU_DT_TIME = TO_DATE(:5, 'YYYY-MM-DD HH24:MI:SS'), CRTD_BY_USR = :6, UPD_BY_USR = :7, UPD_DT = TO_DATE(:8, 'YYYY-MM-DD HH24:MI:SS'), DEL_FLG = :9, CURRENT_FLG = :10 WHERE ACCOUNT_ID = :1 AND PRODUCT_ID = :2 AND RECORD_EFFECTIVE_FROM_DT_TIME = TO_DATE(:4, 'YYYY-MM-DD HH24:MI:SS')

DsHcFrmlyAccessStCs..CTransformerStage53: DSD.StageRun Active stage finishing.

Please let me know.

Thanks,
KH
tonystark622
Premium Member
Premium Member
Posts: 483
Joined: Thu Jun 12, 2003 4:47 pm
Location: St. Louis, Missouri USA

Post by tonystark622 »

You might want to check the &PH& directory in your project directory. When there are a lot of files in this directory it can take a job a loooonnnng time to finish. If no DataStage jobs are running (ps -ef |grep -i dsd) you can delete all the files in this directory.

Also, you may have an after job routine that runs after the job finishes. I don't know of a way to see if an After Job Routine is running. Just check Job Properties to find out if there is an After Job Routine defined.

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

Post by kcbland »

You need to look at the explain plan. If it's a full table scan of a partitioned table and you're not supplying the partitioning key with a parallel query, then you are in the worst situation possible on the database side. Start with the database and have a DBA look at the activity.
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
tonystark622
Premium Member
Premium Member
Posts: 483
Joined: Thu Jun 12, 2003 4:47 pm
Location: St. Louis, Missouri USA

Post by tonystark622 »

Hmmm. Perhaps I was thrown by the Active Stage Finishing message :). Sorry if I misled you.

Tony
kishorchitra
Participant
Posts: 6
Joined: Mon Oct 04, 2004 9:40 am

Thanks

Post by kishorchitra »

Thanks guys for all your help. Yes, I also figured that it is the problem with the first SQL, the way the data is being pulled from the data base and it is being fixed.
Post Reply