Inside a stored package i am using SELECT........FOR UPDATE statement.
On certain occassions(Not always) it throws out a -54 error,but no other sessions are accessing the same resource(table). Only one form calls this package.
When i logout and login again this error is not raised again. but within the same session if i retry same error occurs again
When this error occurs,querying the Data dictionary with the following statement returns no rows
SELECT XIDUSN,SESSION_ID,OBJECT_NAME,OS_USER_NAME FROM V$LOCKED_OBJECT A,DBA_OBJECTS B
Database server version 126.96.36.199.0 (workgroup)
Operating system Windows NT 4.0 server
Front end applications Oracle D2K Forms/Reports ver 6.0
When u write the SELECT..............FOR UPDATE statement Oracle locks the table for that particular session.After processing the rows in the procedure or function or package release the locks on the rows by either COMMIT/ROLLBACK.
In case of any help please be free to ask me at firstname.lastname@example.org