File Locked
by
Another User 


Jeff

I'm trying to access a file and VMS is saying it is locked by another user. Any thoughts on how I might be able to find out who the user is?

Matthew Tripp

Hello Matt ...

Yes! You can find out the process that currently has the file open. Assuming you have system privs, do these steps.

1. First determine which device the file is on. Let's say it's on device DRA0:

2. If you are not in a cluster, but just a single node, then enter in the command:

$SHOW DEVICE/FILES DRA0:

3. If you are in a cluster then use these commands :

$MCR SYSMAN
SYSMAN>SET ENVIRONMENT/CLUSTER
SYSMAN>DO SHOW DEVICE/FILES DRA0:

The SHOW DEVICE/FILES command will show all the files open on a particular device for the node that the command is issued on, and the owning process. If you are in a cluster on node AAA and a user has the file open on node BBB. The SHOW DEVICE/FILES command will not show the user who has it open. You have to be logged on to node BBB. That's why we used SYSMAN in the cluster configuration.

I hope this helps.

Jeff Cameron

 


Send me your question.


 

My Home Page | VMS Home

DCL | Utilities | Management | Tips

FORTRAN | Pascal

eMail Questions

Quiz?