Job locked, cant delete/modify but it can be run

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

manuel.gomez
Premium Member
Premium Member
Posts: 291
Joined: Wed Sep 26, 2007 11:23 am
Location: Madrid, Spain

Job locked, cant delete/modify but it can be run

Post by manuel.gomez »

Hi guys,

New problems with locked job.

Once again, message Cannot get exclusive access to job when wanting to rename it (but the job runs every night)

I got into the console and executed this:

Code: Select all

LIST.READU EVERY
But no locks showed up for this process

I then went to DS.TOOLS, Administrer Locks, logout all process in a job

When I am asked to enter job name and I do, I am returned the following message:
DataStage Process and Lock Administration

1. List all processes
2. List state of a process
3. List state of all processes in a job
----------------------------------------------
4. List all locks
5. List locks held by a process
6. List locks held by all processes in a job
----------------------------------------------
7. Clear locks held by a process
8. Clear locks held by all processes in a job
----------------------------------------------
9. Logout a process
10. Logout all processes in a job
11. Clear status file for a job

Which would you like? ( 1 - 11 ) ?10
Enter job name or <CR> for list=JS_ATN
Cannot find job %1
But the job is clearly there:
LIST DS_JOBS WITH JOBNO EQ 253 13:17:44 04-22-09 PAGE 1

Job name.... JS_ATN
Description.
No.......... 253
Category.... \Drop3_FINAL\Actions
ToNCRM
This also worked:
LIST DS_JOBS WITH NAME EQ "JS_ATN" 13:24:01 04-22-09 PAGE 1

Job name.... JS_ATN
Description.
No.......... 253
Category.... \Drop3_FINAL\Actions
ToNCRM


1 records listed.

Can anybody please help me to unlock this job?


By the way, my locked job is actually a sequence
sjfearnside
Premium Member
Premium Member
Posts: 278
Joined: Wed Oct 03, 2007 8:45 am

Post by sjfearnside »

Here is some documentation I have on releasing locks from my support vendor.

Pblm:

The Folder 'Jobs' is locked by user 'xmeta'
(SessionID 'xmeta-1')'

Reply from DS Support

"Go to the default IS installation (/IBM/app/InformationServer/ASBServer/bin) directory and run the cleanup_abandoned_locks.sh script from a telnet session while logged in as root. Please make sure that all users are logged out before you do this.

$ ./cleanup_abandoned_locks.sh

Enter the IS admin user and password when prompted. Once the process has completed, you will be returned to the UNIX command line and may not see any informational messages."

Running the Script solves my problem. Hope you find it useful.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

DS.TOOLS in no longer the proper place for activties like this in the 8.x release.
-craig

"You can never have too many knives" -- Logan Nine Fingers
manuel.gomez
Premium Member
Premium Member
Posts: 291
Joined: Wed Sep 26, 2007 11:23 am
Location: Madrid, Spain

Post by manuel.gomez »

sjfearnside wrote:Here is some documentation I have on releasing locks from my support vendor.

Pblm:

The Folder 'Jobs' is locked by user 'xmeta'
(SessionID 'xmeta-1')'

Reply from DS Support

"Go to the default IS installation (/IBM/app/InformationServer/ASBServer/bin) directory and run the cleanup_abandoned_locks.sh script from a telnet session while logged in as root. Please make sure that all users are logged out before you do this.

$ ./cleanup_abandoned_locks.sh

Enter the IS admin user and password when prompted. Once the process has completed, you will be returned to the UNIX command line and may not see any informational messages."

Running the Script solves my problem. Hope you find it useful.
Thanks again for answering

I tried the script, but it did not work
dsuser_cai
Premium Member
Premium Member
Posts: 151
Joined: Fri Feb 13, 2009 4:19 pm

Post by dsuser_cai »

Use this,

list.readu

then select the user, and use this command to unlock

unlock user <specify user number> all

this will release/unlock all jobs for that particular user.
Thanks
Karthick
sjfearnside
Premium Member
Premium Member
Posts: 278
Joined: Wed Oct 03, 2007 8:45 am

Post by sjfearnside »

Do you have the opportunity to stop and restart DataStage, InformationServer and WebSphere? You would need to get everyone logged off DataStage and no job running.

My support provider has stated that WebSphere at times gets confused and needs to be restarted. Not a technical explanation but it has worked for me in the past to release locks.

If that is not an option, can you see the PID associated with the locked job? If you identify the correct PID, you can kill the PID but be careful that you do not kill a running process that is required.

It may be wise, if you have the time, to see if Craig or Ray offer better/safer alternatives.
manuel.gomez
Premium Member
Premium Member
Posts: 291
Joined: Wed Sep 26, 2007 11:23 am
Location: Madrid, Spain

Post by manuel.gomez »

dsuser_cai wrote:Use this,

list.readu

then select the user, and use this command to unlock

unlock user <specify user number> all

this will release/unlock all jobs for that particular user.
the problem is that the job does not show when i do

LIST.READU EVERY

So that the user to enter there
dsuser_cai
Premium Member
Premium Member
Posts: 151
Joined: Fri Feb 13, 2009 4:19 pm

Post by dsuser_cai »

If you want to unlock the jobs based on process id, then use this.

In DS Admin

Ds.tools
Choose option 4 (Administer processes/locks)
Choose option 4 (List All Locks)
Note the PIDs
Choose option 7 and enter PID
Thanks
Karthick
manuel.gomez
Premium Member
Premium Member
Posts: 291
Joined: Wed Sep 26, 2007 11:23 am
Location: Madrid, Spain

Post by manuel.gomez »

dsuser_cai wrote:If you want to unlock the jobs based on process id, then use this.

In DS Admin

Ds.tools
Choose option 4 (Administer processes/locks)
Choose option 4 (List All Locks)
Note the PIDs
Choose option 7 and enter PID
thanks for your help

as I just told you, my job does not show here
manuel.gomez
Premium Member
Premium Member
Posts: 291
Joined: Wed Sep 26, 2007 11:23 am
Location: Madrid, Spain

Post by manuel.gomez »

sjfearnside wrote:Do you have the opportunity to stop and restart DataStage, InformationServer and WebSphere? You would need to get everyone logged off DataStage and no job running.
ufff......production server......If we have any problem restarting services....this issue with this job will be the most insignificant thing to worry about, hahaha
JRodriguez
Premium Member
Premium Member
Posts: 425
Joined: Sat Nov 19, 2005 9:26 am
Location: New York City
Contact:

Post by JRodriguez »

manuel.gomez,

Did you see any open session in the Web Console realted to that job?
If any active session related to that job just try to disconnect it ....
Julio Rodriguez
ETL Developer by choice

"Sure we have lots of reasons for being rude - But no excuses
manuel.gomez
Premium Member
Premium Member
Posts: 291
Joined: Wed Sep 26, 2007 11:23 am
Location: Madrid, Spain

Post by manuel.gomez »

JRodriguez wrote:manuel.gomez,

Did you see any open session in the Web Console realted to that job?
If any active session related to that job just try to disconnect it ....
no sessions at all, that was my first check

Actually, when executed script suggested by sjfearnside , all sessions where closed
edison
Participant
Posts: 19
Joined: Mon Sep 17, 2007 4:28 pm

final solution

Post by edison »

copy the sequencer and delete the original job,and re-name the copied job,it will work fine
Nokia8800
manuel.gomez
Premium Member
Premium Member
Posts: 291
Joined: Wed Sep 26, 2007 11:23 am
Location: Madrid, Spain

Re: final solution

Post by manuel.gomez »

edison wrote:copy the sequencer and delete the original job,and re-name the copied job,it will work fine
as you can see in the topic title, cant delete the job either due to this same problem
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Are you sure it is actually locked? "Cannot get exclusive access to job" doesn't necessarily mean locked, but could mean running or perhaps even someone browing the job log. Or did it specifically tell you it was locked?
-craig

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