I have the error 'record is locked by another user' when I am only the user logged in. At run time when I edit a record and post it I receive this error. That's not the case with all tables I have, but I can not understand why this happening.
I have only one session in my program and no connection at design time. I checked in oracle that there is only one session active.
I tried different LockingMode - result is the same. I turned Debug to True and there was interesting information.
Here is debug info I have:
1) on opening: SELECT *, rowid FROM ....
2) on edit: SELECT * FROM ... WHERE rowid=...
3) on Post: SAVEPOINT
SELECT * FROM ... WHERE rowid=... FOR UPDATE NOWAIT
UPDATE ... SET ... WHERE rowid=...
Here the error message comes out! I don't understand why. It seems I locked the record successfully with SELECT FOR UPDATE and then I cannot update it! looks like SELECT FOR UDATE and UPDATE are performed in different sessions, but I checked with Oracle that I have only one session right before UPDATE statement.
I have Delphi5, DOA 3.4.5, Oracle 8.1.7.0.0
What the problem?
Alex
------------------
I have only one session in my program and no connection at design time. I checked in oracle that there is only one session active.
I tried different LockingMode - result is the same. I turned Debug to True and there was interesting information.
Here is debug info I have:
1) on opening: SELECT *, rowid FROM ....
2) on edit: SELECT * FROM ... WHERE rowid=...
3) on Post: SAVEPOINT
SELECT * FROM ... WHERE rowid=... FOR UPDATE NOWAIT
UPDATE ... SET ... WHERE rowid=...
Here the error message comes out! I don't understand why. It seems I locked the record successfully with SELECT FOR UPDATE and then I cannot update it! looks like SELECT FOR UDATE and UPDATE are performed in different sessions, but I checked with Oracle that I have only one session right before UPDATE statement.
I have Delphi5, DOA 3.4.5, Oracle 8.1.7.0.0
What the problem?
Alex
------------------