Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

imadb SQL to identify locking sessions does not work anymore

 
   Database Forums (Home) -> Ingres RSS
Next:  move a primary key to a child  
Author Message
Gerhard Hofmann

External


Since: May 31, 2007
Posts: 6



(Msg. 1) Posted: Wed May 12, 2010 2:14 pm
Post subject: imadb SQL to identify locking sessions does not work anymore
Archived from groups: comp>databases>ingres (more info?)

Hi,

I have successfully used the attached SQL against imadb to find
blocking sessions. In most up-to-date Ingres releases, for example
9.2.1 on Win-32, it does not show the expected results.

So the question: has something changed in the imadb area?

Regards
Gerhard Hofmann

SELECT s.server,

s.effective_user,

s.db_name,

s.session_terminal,

s.session_query,

s.client_host

FROM ima_locks lg,

ima_locks lb,

ima_resources r,

ima_locklists ll,

ima_server_sessions s

WHERE lg.lock_state = 'GRANTED' AND

lg.resource_id = r.resource_id AND

lb.resource_id = r.resource_id AND

lb.lock_state = 'WAITING' AND

lg.locklist_id = ll.locklist_id AND

ll.locklist_session_id = s.session_id AND

ll.locklist_server_pid = s.server_pid

 >> Stay informed about: imadb SQL to identify locking sessions does not work anymore 
Back to top
Login to vote
Karl Schendel

External


Since: Apr 19, 2004
Posts: 17



(Msg. 2) Posted: Wed May 12, 2010 5:46 pm
Post subject: Re: [Info-Ingres] imadb SQL to identify locking sessions does not [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On May 12, 2010, at 5:14 PM, Gerhard Hofmann wrote:

> Hi,
>
> I have successfully used the attached SQL against imadb to find
> blocking sessions. In most up-to-date Ingres releases, for example
> 9.2.1 on Win-32, it does not show the expected results.

I think the lock_state has changed to 'GR' and 'WT'.
Try a select from ima_locks to see for sure.

Karl

 >> Stay informed about: imadb SQL to identify locking sessions does not work anymore 
Back to top
Login to vote
Robert Allely

External


Since: May 13, 2010
Posts: 1



(Msg. 3) Posted: Wed May 12, 2010 6:25 pm
Post subject: Re: [Info-Ingres] imadb SQL to identify locking sessions does not [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Try 'GR' rather than 'GRANTED'

Robert

-----Original Message-----
From: info-ingres-bounces DeleteThis @kettleriverconsulting.com [mailto:info-ingres-bounces@kettleriverconsulting.com] On Behalf Of Gerhard Hofmann
Sent: Thursday, 13 May 2010 9:15 a.m.
To: info-ingres DeleteThis @kettleriverconsulting.com
Subject: [Info-Ingres] imadb SQL to identify locking sessions does not work anymore

Hi,

I have successfully used the attached SQL against imadb to find blocking sessions. In most up-to-date Ingres releases, for example
9.2.1 on Win-32, it does not show the expected results.

So the question: has something changed in the imadb area?

Regards
Gerhard Hofmann

SELECT s.server,

s.effective_user,

s.db_name,

s.session_terminal,

s.session_query,

s.client_host

FROM ima_locks lg,

ima_locks lb,

ima_resources r,

ima_locklists ll,

ima_server_sessions s

WHERE lg.lock_state = 'GRANTED' AND

lg.resource_id = r.resource_id AND

lb.resource_id = r.resource_id AND

lb.lock_state = 'WAITING' AND

lg.locklist_id = ll.locklist_id AND

ll.locklist_session_id = s.session_id AND

ll.locklist_server_pid = s.server_pid _______________________________________________
Info-Ingres mailing list
Info-Ingres DeleteThis @kettleriverconsulting.com
http://ext-cando.kettleriverconsulting.com/mailman/listinfo/info-ingres
Confidentiality/Privilege Notice:
This communication is confidential and may be legally privileged. If you are not the intended recipient please delete the message and notify the sender at Ports of Auckland Limited. Any use, disclosure, copying, distribution or retention of this communication is strictly prohibited.
 >> Stay informed about: imadb SQL to identify locking sessions does not work anymore 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Unable to kill some sessions - I am unable to kill two sessions that iimonitor marks them as: cs_state: CS_COMPUTABLE cs_mask: CS_DEAD_MASK,CS_IRPENDING_MASK I have tried: - Kill them with ipm. After it, ipm informed that session was removed, but it was not. Still appeared in the..

Ingres R3 Locking error? - Hi. I have a Ingres R3 server, Everything seems to run fine, except one application which crashes the iidbms process every 3rd or 4th time I run it. I am running the application on the exact same data everytime, so I don't really understand why..

Work-around for no return value from Call System? - Hi, Is there any way at all to get a return value from a 'call system <someCommand>' from within an ABF application? Something is returned somewhere because if <someCommand> prints something it's displayed in a frame and a 'Press [Return...

changing location of Ingres work directories - Hello We use Ingres II 2.0/0011 on VMS 7.2-3. This morning we redirected and redefined the logical of the II_WORK location to point at a new location on a different disk. We changed the logicals online and also in the command procedure that is run when...

Process hanging on Endselect - We have a process which needs to produce an average figure over the last 16 qualifying weeks. The way it currently works is to select the rows from the two relevant tables ordered by date descending, then in a select loop check if the week qualifies and...
   Database Forums (Home) -> Ingres All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]