Retrying a transaction after SERIALIZABLE error [message #2971] |
Tue, 27 August 2002 03:08  |
Mark Grimshaw
Messages: 73 Registered: June 2002
|
Member |
|
|
Hi,
I am having difficult implementing a retry of a procedure call in a SERIALIZABLE level PL/SQL client script that calls a Stored procedure.
This is my client test script:-
SET TRANSACTION LEVEL SERIALIZABLE;
...
...
LOOP
SAVEPOINT TRY_EDIT;
MyPackage.EditRecord(theRecord);
EXIT;
END LOOP;
EXCEPTION WHEN INVALID_UPDATE_RECORD_CHANGED THEN
ROLLBACK TO TRY_EDIT;
COMMIT;
END;
I want to retry the procedure call if the exception is caught but I can't seem to get it to work correctly.
Note:INVALID_UPDATE_RECORD_CHANGED is an exception that is raised by the procedure in MyPackage after the Serializable error/exception has been caught.
Can anyone spot what I am doing wrong. I have tried various permutations of the ordering of the statements involved.
Thanks
Mark Grimshaw
|
|
|
|