How do I get ORA-00054 resource busy and acquire with NOWAIT specified

Hello

I have a wizard process that performs various actions to save before you commit at the end of the process.

I know that from the primary key of the record form input to act on. I wish to lock this record for any other user can try to change at the same time.

I am aware that must use select for update nowait.

How do I intercept this error and give the neat message and the shape of the output in the form initialization code? Can I use the exception to a description block where select for update is executed or do I have to use the trigger for the error and inspect the dbms_error_code? I would like to no ora-00054 to be handled as usual.

Thank you

You can declare an exception for ORA-0054, catch, display an error, exit the screen:

http://docs.Oracle.com/CD/B19306_01/AppDev.102/b14261/errors.htm#BABGIIBI

see you soon

Tags: Oracle Development

Similar Questions

Maybe you are looking for