Job log not available.

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
harishsj
Participant
Posts: 6
Joined: Sun Jul 02, 2006 11:32 pm
Location: Pune
Contact:

Job log not available.

Post by harishsj »

Hi All,

I have a project running in the production environment. For the past few runs I am not able to veiw either the logs or the job itself in a particular category(In Director). Ultimately the sequence hangs and the main sequence which runs the whole project aborts.

I then have to repromote the job into the production environment and run the sequence once again, which then works eventually.

Can anybody suggest me how to takle this issue?

Thanks in advance
Harish Jahagirdar
Hsbc Global Technology
Process Technology & Infrastructural Solutions
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

the jobs are multiple instance or single instance??
are you clearing the logs regularly.
do you get warnings in your job, try to remove those.
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Post by JoshGeorge »

Your first issue -
I am not able to view either the logs or the job itself in a particular category(In Director)
might be because there is a filter set in DS Director. Right click and make sure there are no filters set to view job logs. You have a main sequence which calls some jobs / sequences in this category rite? Then why not you drill down on job logs from main sequence using "related logs" option (On log type - RunJob) and find out the reason for job aborts.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What happens when you try to view the log in the director - does it seem to "hang"? Does it only happen for this one job? Is it a PX job with thousands upon thousand of log entries?
harishsj
Participant
Posts: 6
Joined: Sun Jul 02, 2006 11:32 pm
Location: Pune
Contact:

Post by harishsj »

Let me answer you all.

1) Its a single instance job.
2) There are no filters set in the director.
3) The actual log is of only 13 lines.
4) When i try to veiw the log into the Director, I find the job missing in this particular category.
Harish Jahagirdar
Hsbc Global Technology
Process Technology & Infrastructural Solutions
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If you know that the job is in the category but it doesn't show up in the director, you will need to run reindex from the DS.TOOLS menu. This is the typical symptom.
harishsj
Participant
Posts: 6
Joined: Sun Jul 02, 2006 11:32 pm
Location: Pune
Contact:

Post by harishsj »

Hi ArndW ,

Can you tell me in short how reindex really works? And in what scenarios it's usefull?
Harish Jahagirdar
Hsbc Global Technology
Process Technology & Infrastructural Solutions
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

There are many posts that go into detail on this subject that you can search for in DSXchange. The secondary keys are used to speed up access times on certain columns for certain control hashed files in DataStage. The view of jobs in the director is the result of one such query using secondary keys - if a job is there but doesn't show up in the director (and you don't have any filters active) then it is always due to a corruption on this index.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In this particular case it's the CATEGORY index on DS_JOBS that appears to be out of date. That's (my guess) why "the job is not being found in the category".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
harishsj
Participant
Posts: 6
Joined: Sun Jul 02, 2006 11:32 pm
Location: Pune
Contact:

Post by harishsj »

ray.wurlod wrote:In this particular case it's the CATEGORY index on DS_JOBS that appears to be out of date. That's (my guess) why "the job is not being found in the category". ...
Hi Ray,

I have done the reindexing on my Dev env. And you'd be surprise to hear that after the reindexing, not a single job was visible in the project. :shock:

I performed the

LIST DS_JOBS WITH NAME<jobname> and fortunately found them. I then again reindexed the Dev project and this time the issue was resolved.

Can you have any idea why this happened?

With such a expereince, I am not confident to do a REINDEX on my Prod Env.

Thanks
Harish Jahagirdar
Hsbc Global Technology
Process Technology & Infrastructural Solutions
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You did not have exclusive access to the project when you executed DS.REINDEX

Therefore the indexes were dropped, but not re-created. Do it again when you can guarantee that you have exclusive access and the indexes are successfully rebuilt.

Execute the LIST.READU command and make sure there is no entry of the form project&!DS.ADMIN!& - such an entry shows that there is a connected DataStage client.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

harishsj wrote:I have done the reindexing on my Dev env. And you'd be surprise to hear that after the reindexing, not a single job was visible in the project. :shock:
Scary, eh? Been there, done that. :wink:

As noted, that's what happens when you don't have exclusive ( and we do mean exclusive) access to the project in question.
-craig

"You can never have too many knives" -- Logan Nine Fingers
csrazdan
Participant
Posts: 127
Joined: Wed May 12, 2004 6:03 pm
Location: Chicago IL

Post by csrazdan »

harishsj wrote:
ray.wurlod wrote:In this particular case it's the CATEGORY index on DS_JOBS that appears to be out of date. That's (my guess) why "the job is not being found in the category". ...
Hi Ray,

I have done the reindexing on my Dev env. And you'd be surprise to hear that after the reindexing, not a single job was visible in the project. :shock:

I performed the

LIST DS_JOBS WITH NAME<jobname> and fortunately found them. I then again reindexed the Dev project and this time the issue was resolved.

Can you have any idea why this happened?

With such a expereince, I am not confident to do a REINDEX on my Prod Env.

Thanks
One of the requirement for rebuilding indexes is that no user should be connected to the project on which you are rebuilding indexes. If all jobs disappeared this means that rebuild index was not able to get exclesive lock for objects. Repeating rebuilding index process will fix it.
Assume everything I say or do is positive
Post Reply