DS Logs path in /dsadm??
Moderators: chulett, rschirm, roy
DS Logs path in /dsadm??
I have used a Peek stage in a job for debugging. It so happened that a large number(60000) of records was displayed in the job logs, and so used up a large area in the log folder.
I would like to know where exactly the logs are being stored in the /dsadm path, so that I can delete them.
I am aware that we can delete the logs from Director itself, but I think this will help me and others in the long run.
Thanks!
I would like to know where exactly the logs are being stored in the /dsadm path, so that I can delete them.
I am aware that we can delete the logs from Director itself, but I think this will help me and others in the long run.
Thanks!
Joel Satire
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Re: DS Logs path in /dsadm??
DataStage job logs are stored in the DataStage Repository database, in a separate table for each job, not in any simple location as you seem to believe.joesat wrote:I have used a Peek stage in a job for debugging. It so happened that a large number(60000) of records was displayed in the job logs, and so used up a large area in the log folder.
I would like to know where exactly the logs are being stored in the /dsadm path, so that I can delete them.
I am aware that we can delete the logs from Director itself, but I think this will help me and others in the long run.
Thanks!
There is no way that you can safely delete selected rows from these tables other than using DataStage's own log purge utilities, which look after the control records in the table as well.
Do not, whatever you do, delete the RT_LOGnnn objects to which ag_ram refers. Your job will immediately become unusable.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod,
Need a small clarification:
Please confirm this.
Need a small clarification:
The deletion of any Run-time DataStage files will make that particular Job unusable further. However, If the Run time files accidentally deleted by the user, the Create Copy action on that Job can retain the Job Design.Do not, whatever you do, delete the RT_LOGnnn objects to which ag_ram refers. Your job will immediately become unusable.
Please confirm this.
Ag_ram - just so I understand your post, you can recommend having the poster identify which job number he has, go and delete the appropriate RT_LOGnnn directory from the disk, then edit the original job and do a "save as" in order to get a runnable job - then finally delete the original job (which concidentally deletes the big log file as well) and then perhaps recompile the new copy so you have a clear log. Sounds kind of complicated to me.
I prefer to just set purge settings in the job and let DataStage do the work.
I prefer to just set purge settings in the job and let DataStage do the work.
DSRajesh,
The deletion of any Run-time DataStage file will not do any harm (but just a warning mesage) on the Job Design or any action(Create Copy, Rename, Delete, Add to Palette) performing on the Job Design but will prevent highly any Run time action(Compile, Execute) performing on the Job.
ArndW,
My scenerio is that if that Runtime DataStage file RT_LOGnnn is accidentally deleted by the user, is there any way to retain the Job Design?
I never recommended the way, you thought about me having told then. I always suggest that the way of clearing the Job log is through 'Clear Log' in the DS Director as you said.
The deletion of any Run-time DataStage file will not do any harm (but just a warning mesage) on the Job Design or any action(Create Copy, Rename, Delete, Add to Palette) performing on the Job Design but will prevent highly any Run time action(Compile, Execute) performing on the Job.
ArndW,
My scenerio is that if that Runtime DataStage file RT_LOGnnn is accidentally deleted by the user, is there any way to retain the Job Design?
I never recommended the way, you thought about me having told then. I always suggest that the way of clearing the Job log is through 'Clear Log' in the DS Director as you said.
![Exclamation :!:](./images/smilies/icon_exclaim.gif)
Please understand that no-one here is recommending that you ever delete anything under the covers in DataStage. Purge your job logs from the GUI whenever possible. Sometimes extreme corruption can make that... difficult, but those times are very rare.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers