Time the locks
- From: Mohit <mohitanchlia@xxxxxxxxx>
- Date: Sat, 23 Feb 2008 22:24:45 -0800 (PST)
Version: IDS 10
I asked this question in earlier post, and after that I tried to look
at CDI archives but didn't get the answer. I want to know if there is
any way to find out which lock is being held over certain period of
time on certain resource. I have below query to find out about the
locks:
select sysdatabases.name database, -- Database Name
syssessions.username, -- User Name
syssessions.hostname, -- Workstation
syslocks.owner sid -- Informix Session ID
syslocks.tabname
from syslocks, sysdatabases , outer syssessions
where syslocks.tabname = "sysdatabases" -- Find locks on
sysdatabases
and syslocks.rowidlk = sysdatabases.rowid -- Join rowid to
database
and syslocks.owner = syssessions.sid -- Session ID to get
user info
order by 1;
.
- Follow-Ups:
- Re: Time the locks
- From: Mohit
- Re: Time the locks
- Prev by Date: Re: Anyone able to esql to work on AIX 64bit with gcc
- Next by Date: project management australia
- Previous by thread: Anyone able to esql to work on AIX 64bit with gcc
- Next by thread: Re: Time the locks
- Index(es):
Relevant Pages
|