We have several applications that use lobs. We've encountered locking issues with one of them. We insert a tif into the database (from a scanner) with the following code:
OracleInsertQuery.SetVariable('LET_ID', StrToInt(LetId));
LOB:= TLOBLocator.Create(OracleSession1,otBlob);
OracleInsertQuery.SetComplexVariable('LETTER_IMAGE',LOB);
OracleInsertQuery.Execute;
LOB.LoadFromFile(FileName);
LOB.Free;
OracleSession1.Commit;
The first application then ends the connection and closes down. Another application then selects for update with no wait the record that was inserted from above (several seconds in between). The second application receives error 54, resource busy frequently, but not all the time. Any suggestions on how to track down this locking problem would be most appreciated.
Kent
OracleInsertQuery.SetVariable('LET_ID', StrToInt(LetId));
LOB:= TLOBLocator.Create(OracleSession1,otBlob);
OracleInsertQuery.SetComplexVariable('LETTER_IMAGE',LOB);
OracleInsertQuery.Execute;
LOB.LoadFromFile(FileName);
LOB.Free;
OracleSession1.Commit;
The first application then ends the connection and closes down. Another application then selects for update with no wait the record that was inserted from above (several seconds in between). The second application receives error 54, resource busy frequently, but not all the time. Any suggestions on how to track down this locking problem would be most appreciated.
Kent