From:	SMTP%"jan@neuroinformatik.ruhr-uni-bochum.de" 26-OCT-1994 11:15:53.72
To:	EVERHART
CC:	
Subj:	Re: How do I find out which process has an RMS record locked?

From: jan@neuroinformatik.ruhr-uni-bochum.de (Jan Vorbrueggen)
X-Newsgroups: comp.os.vms
Subject: Re: How do I find out which process has an RMS record locked?
Date: 26 Oct 94 11:04:29 GMT
Organization: Institut fuer Neuroinformatik, Ruhr-Universitaet Bochum, Germany
Lines: 19
Message-ID: <JAN.94Oct26120429@thalia.neuroinformatik.ruhr-uni-bochum.de>
NNTP-Posting-Host: thalia.neuroinformatik.ruhr-uni-bochum.de
In-reply-to: mwripley@delphi.com's message of Mon, 24 Oct 94 21:48:41 -0500
To: Info-VAX@Mvb.Saic.Com
X-Gateway-Source-Info: USENET

In article <JI91q9p.mwripley@delphi.com> mwripley@delphi.com writes:

   Every now and then it is necessary to find out which process has a
   particular record locked.  It's easy enough to find out which processes are
   using a file (show dev /files,etc) but it would be extremely helpful to
   know which process is holding a lock on a record that another (presumably
   more vital) process needs.  Any suggestions?

That's pretty tedious. RMS takes out a lock on the file as a sub-lock of the
volume lock with the FID as the resource name, I'd think, and then another
sublock with the RFA as the resource name (all decorated with RM$...,
probably - this is mostly speculation guided by misty memories). So: look up
the FID of the file in question (DIR/FILE will do), and have a look at the
lock database with ANALYSE/SYSTEM. Maybe you know or can calculate the RFA of
the record as well (have a test programme which tells RMS to read it
regardless of locking, perhaps). Happy hunting!

	Jan

