221
Views
2
Comments
Determine Record/Table lock
Question

@All,

situation:
I've a timer which executes a process which deletes records from an entity.
Somehow this timer runs into a time-out, so the timer is rescheduled.
The second time the timer runs the first process is still running (!!) on IIS APPPOOL w3wp.exe, so the table/record is locked.
Also this second process runs into a time-out (due to the record locks) and a third timer is scheduled.
So now I've 3 processes still running on IIS......
Question 1: Why, even after time-out of the timer, the 'real' process/session on IIS is still running ?
Question 2: How can I determine in a server action if there is still a table/record lock?

Yes, if I was a DBA I can query the on premesi DB-server, but I'm not a DBA :-)


Best regards,

Jeroen

2019-03-18 10-26-38
Jeroen Vormer

Obviously I don't have access to v$session or v$locked_object.....

UserImage.jpg
LarryF

Hi Jeroen, I encountered similar issue. I had a simple CreateOrUpdate server action over an Oracle table. It worked fine for some runs and then it stopped. My dba found the OutSystems user generated a session lock over the table. The lock can be checked from V$session. 

The logic to create a new entry was simple and I did not see logic bug to cause hanging or could cause timeout. Just wondering if OutSystem didn't work well with Oracle database.

  

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.