Avatar of vishali_vishu
vishali_vishu

asked on 

ORA 00054 in oracle forms

Hi,

I have a forms, which displays the list of orders, this list is populated form a view.
When a users selects one an selects an option to update it, based on the option the respective forms is called and the order number is passed.
The order is queried from the table in the called forms i.e, th e child form. Everything is working fine, but if an another user is updated the same record its giving an error ORA 00054 .
Now i would like to display an error message that it is not update able and redirect back to parent forms.
How do i handle this error,
i have tried it in the block where i am executing the query but it doesn't works.

Thanks

Oracle DatabaseJava App Servers

Avatar of undefined
Last Comment
Helena Marková
Avatar of Helena Marková
Helena Marková
Flag of Slovakia image

I think that you can handle this error in an ON-ERROR trigger on form level.
Avatar of vishali_vishu
vishali_vishu

ASKER

I have tried in the ON-ERROR trigger, but unable to do it
Also before going to the block you can use SELECT ... FOR UPDATE NOWAIT and if there will be ORA-00054 you will display a message.
Do you test SQLCODE=-54 ?
Avatar of vishali_vishu

ASKER

Yes i  heve tried settind the sqlCoe- -54 but i was auable to display the the message i wanted.
ASKER CERTIFIED SOLUTION
Avatar of Helena Marková
Helena Marková
Flag of Slovakia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Oracle Database
Oracle Database

Oracle is an object-relational database management system. It supports a large number of languages and application development frameworks. Its primary languages are SQL, PL/SQL and Java, but it also includes support for C and C++. Oracle also has its own enterprise modules and application server software.

81K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo