Home » RDBMS Server » Server Administration » Release Row Level Locking (Oracle 12c, windows 2012)
Release Row Level Locking [message #647282] |
Mon, 25 January 2016 06:39  |
muktha_22
Messages: 527 Registered: December 2009
|
Senior Member |
|
|
Hi,
Having a doubt, kindly clarify.
1) When a user performing ROW LEVEL LOCKING for UPDATE statement for a particular record.
2) And before committing it his session got interupted or closed the application directly.
3) Now how we can unlock that ROW LEVEL LOCKING.
Regards
Muktha
|
|
|
|
|
Re: Release Row Level Locking [message #647285 is a reply to message #647284] |
Mon, 25 January 2016 06:58   |
Roachcoach
Messages: 1576 Registered: May 2010 Location: UK
|
Senior Member |
|
|
I can't remember the cycles of pmon off the top of my head. I've never found myself waiting for long.
Table owner cannot do anything without the privs required to kill a session.
No, that is impossible. Deadlock doesn't mean what you think it does if you;re asking that, read up on them.
My stance is if it is urgent, kill the session, if it is not, the DB will deal with it for you. You tend to only hear about the urgent ones. What might hurt you is if that dead session had a lot of uncommitted stuff to roll back, but there is nothing you can do then but wait it out.
[Updated on: Mon, 25 January 2016 06:59] Report message to a moderator
|
|
|
|
|
|
Re: Release Row Level Locking [message #647401 is a reply to message #647290] |
Wed, 27 January 2016 04:49   |
muktha_22
Messages: 527 Registered: December 2009
|
Senior Member |
|
|
Hi Roachcoach,
I have a some doubt,
If some one is closing the apps windows directly, and he is doing delete or update then it get automatically Rollback.
Why same cant be happened for ROW LOCK FOR UPDATE statement.
Developers are using the below code:
SELECT TRANSFERSLIPNO, A.FAXPAGECOUNT PAGECOUNT, A.IMG_NAME, TRUNC(A.ENTRY_TIME), DIS_DUP_SRNO
INTO P_TRANSFERSLIPNO , P_PAGECOUNT , P_IMG_NAME, P_ENTRY_DATE , P_DIS_DUP_SRNO
FROM TABLE1 A
WHERE TRANSFERSLIPNO = cur_rec.TRANSFERSLIPNO
AND ROW_LOCK = 2
FOR UPDATE SKIP LOCKED;
Regards
Muktha
|
|
|
|
|
Goto Forum:
Current Time: Mon May 05 11:39:11 CDT 2025
|