Unlocking the datastage jobs

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

mikva2012
Participant
Posts: 27
Joined: Sat Dec 01, 2012 4:14 pm
Location: India

Unlocking the datastage jobs

Post by mikva2012 »

Hi All,

Am facing strange issue , whenever am trying to open the job in designer window it is giving me error message job is locked by the user.
However when I tried to see the resource lock through the director client there is no resource lock.
After that I tried with the Administrator client , by executing the command LIST.READU EVERY, the output doesn't have any info about resource lock by any user.
Then I checked with the server console in session management there is no such active session.
Please help me to unlock the job.
Irfan.
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Hi,
You have to check in XMETA database if there is any lock exists.

Code: Select all

SELECT * FROM XMETA.XMETALOCKINFO
If there is the entry in this table,you need to delete it.
mikva2012
Participant
Posts: 27
Joined: Sat Dec 01, 2012 4:14 pm
Location: India

Post by mikva2012 »

Hi Prasson,

I am not aware of the metadata repository username and password.
Apart then that is there any way to do that.
Irfan.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Log out the Designer session and wait. The lock will be cleaned up after a short while (maybe as long as 15 minutes).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If you have IS Administrator role, log in to the Web Console for Information Server, open the list of active sessions and disconnect the session that owns the log (the session ID is in the "locked" message). The lock will be cleared immediately.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
prasannakumarkk
Participant
Posts: 117
Joined: Wed Feb 06, 2013 9:24 am
Location: Chennai,TN, India

Post by prasannakumarkk »

Ray, 15 Minutes is it configured somewhere or its common? What is happening actually. Are there any process that cleanups the lock record in Xmeta
Thanks,
Prasanna
mikva2012
Participant
Posts: 27
Joined: Sat Dec 01, 2012 4:14 pm
Location: India

Post by mikva2012 »

Prasson,

As previous mentioned it is not showing any active session related to the user.
And user is not able right now.

Ray,

I came to know about the cleanabondedlocks.sh, if I will run this script what will be the impact.
Please reply with your valuable suggestion.
Irfan.
mikva2012
Participant
Posts: 27
Joined: Sat Dec 01, 2012 4:14 pm
Location: India

Post by mikva2012 »

Hi Guys,

Please reply what will be the impact if will run the cleanupabondedlock.sh script from Unix command line.
Irfan.
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Hi,
I am not able to fine this script on my ETL server

Code: Select all

find / -name "cleanupabondedlock.sh" -print 2>/dev/null/
I didnt get any output,can you please post the location of the script.
mikva2012
Participant
Posts: 27
Joined: Sat Dec 01, 2012 4:14 pm
Location: India

Post by mikva2012 »

Yeah Buddy,

It is in ASBServer/bin dir
Irfan.
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Ok, I think it will also delete entry from xmetalockinfo but I am not sure.let's someone focus on this.
mikva2012
Participant
Posts: 27
Joined: Sat Dec 01, 2012 4:14 pm
Location: India

Post by mikva2012 »

Hi Buddy,

I tried the same script in mine production environment and it work fine for me.
But I didn't remembered how I executed that script.
I didn't remember from which user-id I executed the script and in what way , the only thing I know I have to supply the suite admin id and password.
Irfan.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

mikva2012 wrote:what will be the impact if will run the cleanup_abandoned_locks.sh script from Unix command line.
Abandoned locks will be cleaned up. However, a lock held by another DataStage client is not an abandoned lock.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Post by rameshrr3 »

I could find a script named

cleanup_abandonded_locks.sh in my $ASBSERVER/bin directory.

Code: Select all

(/opt/IBM/InformationServer/ASBServer/bin/cleanup_abandonded_locks.sh)
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

prasson_ibm wrote:I am not able to fine this script on my ETL server

Code: Select all

find / -name "cleanup_abandonded_locks.sh" -print 2>/dev/null/
I didnt get any output,can you please post the location of the script.
You misspelled it as "abandonded" which is one reason why you couldn't find it. The other are the underscores. Probably best to search with wildcards if you're unsure of the exact name:

Code: Select all

find / -name "cleanup*.sh" -print 2>/dev/null/
-craig

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