Page 1 of 1

Automatic DataStage Maintenance

Posted: Thu Jun 15, 2006 5:39 pm
by mauherga
Hi all,

Does any one know if its posible (and how) to make a process that geive automatic maintenance to DataStage. I have a set of activities to do every week in order to keep DataStage in the best conditions, this activities are:

- Stop (manualy) all the jobs in run state
- Kill (UNIX) every DataStage process that continue run
- CLEAN.ACCOUNT
- DS.TOOLS (2,4)
- turn down DataStage
- turn up DataStage
- compile all the jobs in every project (Run Multiple Job Compile: DS Manager)

Can I make this automaticaly (in or out of DataStage)?

Thank's !!

Posted: Thu Jun 15, 2006 5:53 pm
by chulett
You do this every week? :shock:

I don't recall ever needing to do anything like this unless SHGVVW - Something Had Gone Very, Very Wrong.

Re: Automatic DataStage Maintenance

Posted: Thu Jun 15, 2006 5:54 pm
by DSguru2B
Here are my views

- Stop (manualy) all the jobs in run state

Two contradictory statements, automatic and manually. Hmm, dont know what to say. And by the way, stopping jobs that are running without any specific reason is not a very good idea. These jobs could be accessing a database and by passing a stop command you might have an open thread to a database and possibly a runaway process. You might want to think about that.
- Kill (UNIX) every DataStage process that continue run

A unix kill is like a last resort and should be avoided at all costs. If you still want to automate that you can build it in a script by ps -ef and grepping on the user id. But keep in mind, the unix script should be running under a differend id or even that will get killed

- CLEAN.ACCOUNT
Define clean account. You mean the &COMO& and &PH& folders ? Even that can be scripted.


- DS.TOOLS (2,4)
What option is that again, i dont have access to datastage at the moment so cant really comment on that. But i believe you can script that as well by getting into the uv account

- turn down DataStage
You can code intelligence to make sure no jobs are running when you bring down DataStage. Again, it can be coded

- turn up DataStage
Can be coded and scripted.

- compile all the jobs in every project (Run Multiple Job Compile: DS Manager)
you can pass a dsjob -reset command from unix by passing all the job names from a project. Again depends upon your scripting skills
Can I make this automaticaly (in or out of DataStage)?
Yes you can, at the unix level

Thank's !

Posted: Thu Jun 15, 2006 7:27 pm
by kduke
CLEAN.ACCOUNT will clean the VOC. It can be dangerous if you delete some of the file pointers that DataStage needs. This is another TCL command.

Posted: Fri Jun 16, 2006 4:35 pm
by mauherga
Thanks at both !!!

Posted: Fri Jun 16, 2006 5:10 pm
by chulett
Ok... I'm still questioning the need to do things like this on a weekly basis, it just seems total overkill to me. Am I missing something here? Is this something that other people do? :?

Posted: Fri Jun 16, 2006 8:56 pm
by kduke
No, absolutely not. I think daily exporting all the jobs is important in a busy development environment. Weekly is good enough for exporting production projects.

You cannot reindex all files without exclusive access. Nor is there a need for reindexing or CLEAN.ACCOUNT unless something unusual shows up when you are using DataStage.

I do think you should reboot servers once a week if possible. Servers seem to run faster after a reboot.

Posted: Fri Jun 16, 2006 9:44 pm
by DSguru2B
I, personally agree with you Craig. Such a need arises if 'SHGVVW' :twisted:

Posted: Mon Jun 19, 2006 4:56 pm
by mauherga
Hi,

The reason for implement that frecuency for our maintenance is because in the first months of this year, we have a really SHGVVW !!!.

After get in this forum, we can solve a lot of problems and I think now we have to implement a new maintenance to keep our DataStage working in the best contitions.

Because of that, we continue working in learning, asking, learning and whatching this forum.

Any suggest for a estandard set of maintenance activities?

Thanks again !!!!