GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  Oracle Forms 4.0
Go To First  |  Previous Question  |  Next Question 
 Oracle Forms 4.0  |  Question 72 of 92    Print  
Suppose a form is created ,which is accessed by multiuser.What should be done to prevent the table getting locked

  
Total Answers and Comments: 2 Last Update: February 27, 2007     Asked by: p 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 17, 2006 04:29:15   #1  
manish        

RE: Suppose a form is created ,which is accessed by mu...

When-new-record-instance

--set property 'enter-query mode' YES (default)

Use 'For Update Cursor' with 'NoWait' for firing DMLs on table.

For Update Clause explicitly lock the table before you fire any DML and Nowait check wether the table is already locked or not if Locked then returns an error that locked by another session.


 
Is this answer useful? Yes | No
February 27, 2007 11:06:07   #2  
semaj Member Since: February 2007   Contribution: 3    

RE: Suppose a form is created ,which is accessed by mu...
Create an ON-LOCK trigger and code along these lines ....

declare

cursor c1 is
select * from emp
where empno :emp.empno
for update nowait;

r1 c1 rowtype;
tab_loc exception;

begin

begin
open c1;
exception
when others then
if sqlcode -54 then raise tab_loc; end if;
end;

fetch c1 into r1;
close c1;

exception
when tab_loc then
message('Employee number '||:emp.empno||' is locked bby another user');
end;

 
Is this answer useful? Yes | No

 Related Questions

 Form   Menu   Library 
Latest Answer : Form moduleMenu modulePl/SQL Library module Object Library module ...

Write the Abbreviation for the following File Extension        1. FMB      2.  MMB       3.  PLL FMB -----  Form   Module  Binary. MMB ----- Menu   Module Binary. PLL  ------ PL/SQL  Library  Module  Binary.

 Base  table  Blocks.   Control  Blocks.          1.   A   base   table   block   
Latest Answer : Base-table blocks, as their name implies, are based on a database table or view and must contain at least one item that is based on a column in that database table or view. If you create a block based on the STUDENT table, at least one of its items must ...

 A  canvas-view  is  the background object on which you layout the interface items  (text-items,  check boxes, radio groups, and so on.) and boilerplate objects  that  
Latest Answer : CANVAS VIEWPORTS (VIEWS)The terms “canvas view” and “viewport” are synonymous. The viewport refers to the area of the canvas that is visible to the user. What this means is that the canvas object itself is not always entirely visible; ...

 A  record  group  is  an  internal  oracle  forms data structure that has a similar column/row frame work to a database table 
Latest Answer : All LOVs are based on another Forms object called a record group. Record groups are logical objects, so they have no physical properties and are never  displayed to the user. A record group is similar to a database table in that it stores an array ...

 Yes 
Latest Answer : yes ...

.pll,.lib,.pld      The  library  pll files is a portable design file comparable to an fmb form file         The  library  

 To  pass  one  or  more  parameters to a called form, the calling form must perform  the  following steps in a trigger or user named routine execute the create_parameter_list 

Latest Answer : Dear the right order are following Sequence of trigger when Form is opened & closed Run Form 1. Pre-Logon Form 2. On-Logon Form 3. Post-Logon Form 4. Pre-Form Form 5. When-Create-Record Block 6. Pre-Block Block 7. Pre-Record Block 8. Pre-Text-Item ...
Read Answers (5) | Asked by : Sonia

Suppose a form is created ,which is accessed by multiuser.What should be done to prevent the table getting locked
Read Answers (2) | Asked by : p


 Sponsored Links

 
Related Articles

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Using Oracle XML DB Repository

Using Oracle XML DB Repository Another variation on accessing and manipulating XML content stored in Oracle database is provided by Oracle XML DB repository which is an essential component of Oracle XML DB mosgoogle NOTE Oracle XML DB repository also known as XML repository is a hierarchically organ
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

XML Processing in PHP and Oracle Applications

Processing XML in PHP Oracle Applications As mentioned there are two alternatives when it comes to performing XML processing in your PHP Oracle application You can perform any required XML processing using either PHP s XML extensions or PEAR XML packages or Oracle s XML features mosgoogle In the fol
 

PHP Oracle Web Development

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax is a good starting b
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

Getting Started with Oracle and ODP.NET

ODP NET Developer’ s Guide by Jagadish Chatarji Pulakhandam Sunitha Paruchuri A practical guide for developers working with the Oracle Data Provider for NET and the Oracle Developer Tools for Visual Studio 2005 Application development with ODP NET Dealing with XML DB using ODP NET Oracle
 

PHP Oracle Web Development Review

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books The author is also an expert in open source technologies and SOA Service Oriented Architecture But besides
 

jQuery Table Row Finished Code

jQuery Table Row Finished Code The Finished Code Our second example page has demonstrated table row striping highlighting tooltips collapsing expanding and filtering Taken together the JavaScript code for this page is mosgoogle geshibot lang php" document ready function var highlighted
 

jQuery Expanding and Collapsing Table Rows

jQuery Expanding and Collapsing Table Rows The expanding and collapsing behavior added earlier also conflicts with our filters If a section is collapsed and a new filter is chosen then the matching items are displayed even if in the collapsed section Conversely if the table is filtered and a section
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape