Log Corrupted

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

myukassign
Premium Member
Premium Member
Posts: 238
Joined: Fri Jul 25, 2008 8:55 am

Log Corrupted

Post by myukassign »

I have ran a job which produced so many logs.

and currently when i view the log from directory i am getting an error.

Error selecting from log file RT_LOG34
Command was: SSELECT RT_LOG34 WITH @ID LIKE '1N0N' COUNT.SUP
Error was: Read operation failure. Internal file corruption detected. File must be repaired.#


Nothing is working now. Job is not able to comple as welll. What can be done
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Clear or repair the log hashed file. Search here for clues.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
myukassign
Premium Member
Premium Member
Posts: 238
Joined: Fri Jul 25, 2008 8:55 am

Post by myukassign »

I have gone through some posts and many places i found, I should clear the job log.


but bit confused by your reply 'Clear/repair hashed log files'.

can you clarify this point to me or you can give me link to any post where it is addressed.

sorry for bothering u as i have to do it in production enviorment, i dont want to take a chance.

any specific command can help me to clear this hashed log files / or i need to manully delete.... m in doubt
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

While corrupted hashed files can be 'repaired' it's not really worth the effort for a job log unless there's vital information in there.

So, to clear it you need to run CLEAR.FILE RT_LOG34 from the Administrator or TCL prompt. Remember to reestablish your auto purge settings for the job afterwards as they will be gone along with everything else.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

CLEAR.FILE is probably safer than either of the repair utilities (uvfixfile or fixtool), for various reasons. Reinstate your log purge settings after clearing the log using the Director 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.
myukassign
Premium Member
Premium Member
Posts: 238
Joined: Fri Jul 25, 2008 8:55 am

Post by myukassign »

but where should i specify the job name in that command.

if i run it will it clear all the logs of all the jobs ?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No, not all. RT_LOG34 is the log for job number 34, the one you are having problems with per your error message. It doesn't go by name but rather by the internal number assigned in the repository.
-craig

"You can never have too many knives" -- Logan Nine Fingers
myukassign
Premium Member
Premium Member
Posts: 238
Joined: Fri Jul 25, 2008 8:55 am

Post by myukassign »

great :)


let me try this tomorrow and i promise my result will be posted here :lol:
myukassign
Premium Member
Premium Member
Posts: 238
Joined: Fri Jul 25, 2008 8:55 am

Post by myukassign »

It worked!!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

But of course! :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
jonathanhale
Premium Member
Premium Member
Posts: 33
Joined: Tue Nov 06, 2007 1:09 pm

What to do if Unable to Clear file?

Post by jonathanhale »

CLEAR.FILE RT_LOG21

executed in administrator commands

returns

"Unable to Clear File RT_LOG21"

"filename = "

Can I delete the log folder from the unix file system? Will this force DataStage to recreate the log? Or will it increase the corruption?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Do you actually have a job number 21 that has been compiled?

CLEAR.FILE is also blocked (it attempts to take an exclusive lock) if the log is open - typically in Director.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

Jonathan - In the future please don't "Hijack" a thread that is marked "Resolved", even if you think your problem is related. I'd recommend starting a new topic and including a link to the previous thread to let people know you tried that solution and it didn't work for you.

Thanks!

(FYI - I'm a content editor for the DSXchange)
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
jonathanhale
Premium Member
Premium Member
Posts: 33
Joined: Tue Nov 06, 2007 1:09 pm

Post by jonathanhale »

sorry for the false posting - I know better now.

But, Just to close, yes there was a Job 21. And, the log was not open anywhere.

It's only a small project in Dev, so I resolved it by deleting and recreating the project.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ripley: I say we take off and nuke the entire site from orbit. It's the only way to be sure. :wink:
-craig

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