Datastage server job locked

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

sujaoschin
Premium Member
Premium Member
Posts: 102
Joined: Tue Jan 31, 2006 4:13 am

Datastage server job locked

Post by sujaoschin »

I am unable to open certain jobs in Datastage server edition 8. I stopped and started the server and also tried to clean up the resources for unlocking the jobs in Director. Can anyone guide me thru the steps to be followed.

I am getting this below error

'Unable to open the job

The job 'ADDRESS_HASH' is locked by the user 'dsadm'
(Session ID - 10E0749C-0295-41B1-BD 12-F676A8FE6D61)

Do you want to continue and reopen the job in read-only mode?'
Sujatha K
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard.

Check that no-one else has the job open in Designer or Director. If they have, get them to close it.

Open up the Information Server web console to the Session Management page and identify the session whose Session ID was given in the message. You can disconnect this session (at the risk of upsetting the user whose session it is - which is why you checked first).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sujaoschin
Premium Member
Premium Member
Posts: 102
Joined: Tue Jan 31, 2006 4:13 am

Re: Datastage server job locked

Post by sujaoschin »

sujaoschin wrote:I am unable to open certain jobs in Datastage server edition 8. I stopped and started the server and also tried to clean up the resources for unlocking the jobs in Director. Can anyone guide me thru the steps to be followed.

I am getting this below error

'Unable to open the job

The job 'ADDRESS_HASH' is locked by the user 'dsadm'
(Session ID - 10E0749C-0295-41B1-BD 12-F676A8FE6D61)

Do you want to continue and reopen the job in read-only mode?'

Yes. I have checked expect me , no one has logged into the Datastage designer or Director.
Sujatha K
sujaoschin
Premium Member
Premium Member
Posts: 102
Joined: Tue Jan 31, 2006 4:13 am

Post by sujaoschin »

Hi Ray,

As posted in the forum, I went and checked in the session Management --> Active sessions in IBM information server console, session ID I got while opening the job is not present. Is there any other way to unlock the jobs, Please advise.
Sujatha K
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

That might mean you have orphaned processes and/or locks. I always recommend that the deadlock daemon is started in order to have an automated cleanup happen when processes are killed or stopped, you can read on how to do that in many places in this forum.

If your system is not busy with users, you can check to see which UNIX processes are running for that ID or enter into the DataStage TCL and type "PORT.STATUS" and "LIST.READU EVERY" to see which users are active in DataStage and which locks are actively being held.
sujaoschin
Premium Member
Premium Member
Posts: 102
Joined: Tue Jan 31, 2006 4:13 am

Post by sujaoschin »

Hi,

I have changed the start=0 to start=1 in dsdlocked.config file in $dshome directory. still the job is getting locked. Please advise
Sujatha K
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The deadlock daemon will not start automatically until DataStage is re-started.

The job may still lock. The deadlock daemon will clear that lock, but it may take quite some time - the daemon only wakes every 15 minutes (by default) and it usually requires two cycles to clear locks held by redundant processes.

You really should find out WHY this lock is happening.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sujaoschin
Premium Member
Premium Member
Posts: 102
Joined: Tue Jan 31, 2006 4:13 am

Post by sujaoschin »

I stopped and re-started the server, but the jobs are still getting locked
Sujatha K
dineshrk
Participant
Posts: 46
Joined: Thu Jun 26, 2008 9:14 pm

Post by dineshrk »

sujaoschin wrote:I stopped and re-started the server, but the jobs are still getting locked

Please check if the process are running in the backgound. Use

ps -ef | grep username


to find the number of processes running and check if the job's one is also running. if so kill the process manually before re-staring the serer.
sujaoschin
Premium Member
Premium Member
Posts: 102
Joined: Tue Jan 31, 2006 4:13 am

Post by sujaoschin »

Hi,,

When I used the below command , I got the below output

au02uap003btox2:/opt/IBM/InformationServer/Server/DSEngine$ps -ef| grep dsadm
dsadm 389222 794780 0 08:49:31 - 0:00 sshd: dsadm@pts/0
dsadm 458898 569458 0 08:59:08 - 0:00 dsapi_slave 7 6 0
dsadm 569458 1044508 0 08:59:08 - 0:00 dscs 4 0 0
dsadm 712790 1 3 14:50:04 - 17:38 /opt/IBM/InformationServer/Server/PXEngine/bin/resource_tracker
dsadm 749604 389222 0 08:49:31 pts/0 0:00 -ksh
root 794780 1597554 0 08:49:25 - 0:00 sshd: dsadm [priv]
dsadm 1261660 749604 1 09:02:43 pts/0 0:00 ps -ef

can you please advise me, what is the next step?
Sujatha K
sujaoschin
Premium Member
Premium Member
Posts: 102
Joined: Tue Jan 31, 2006 4:13 am

Post by sujaoschin »

Hi,,

When I used the below command , I got the below output

au02uap003btox2:/opt/IBM/InformationServer/Server/DSEngine$ps -ef| grep dsadm
dsadm 389222 794780 0 08:49:31 - 0:00 sshd: dsadm@pts/0
dsadm 458898 569458 0 08:59:08 - 0:00 dsapi_slave 7 6 0
dsadm 569458 1044508 0 08:59:08 - 0:00 dscs 4 0 0
dsadm 712790 1 3 14:50:04 - 17:38 /opt/IBM/InformationServer/Server/PXEngine/bin/resource_tracker
dsadm 749604 389222 0 08:49:31 pts/0 0:00 -ksh
root 794780 1597554 0 08:49:25 - 0:00 sshd: dsadm [priv]
dsadm 1261660 749604 1 09:02:43 pts/0 0:00 ps -ef

can you please advise me, what is the next step?
Sujatha K
sujaoschin
Premium Member
Premium Member
Posts: 102
Joined: Tue Jan 31, 2006 4:13 am

Post by sujaoschin »

I killed the process by PID and stopped and restarted the server. Still the job locks are not released. Please advise.
Sujatha K
lstsaur
Participant
Posts: 1139
Joined: Thu Oct 21, 2004 9:59 pm

Post by lstsaur »

Just delete all the rows in the XMETALOCKINFO table.
sujaoschin
Premium Member
Premium Member
Posts: 102
Joined: Tue Jan 31, 2006 4:13 am

Post by sujaoschin »

Please let me where can I find this XMETALOCKINFO table.
Sujatha K
sujaoschin
Premium Member
Premium Member
Posts: 102
Joined: Tue Jan 31, 2006 4:13 am

Post by sujaoschin »

I got it. I deleted all the rows from XMETALOCKINFO table. Now all the job locks got released.

Thanks a lot, lstsaur.
Sujatha K
Post Reply