home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / oracle / 2954 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  1.5 KB

  1. Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!news.belwue.de!news.uni-stuttgart.de!matisse!doering
  2. From: doering@matisse.informatik.uni-stuttgart.de (Sven Doering)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Locking under Forms 3.0
  5. Date: 26 Jan 1993 10:10:58 GMT
  6. Organization: IPVR, University of Stuttgart, Germany
  7. Lines: 28
  8. Sender: doering@matisse (Sven Doering)
  9. Distribution: world
  10. Message-ID: <1k32niINNk1k@info2.rus.uni-stuttgart.de>
  11. NNTP-Posting-Host: rusmv1.rus.uni-stuttgart.de
  12.  
  13.  
  14.  
  15. The default locking in SQL*Forms 3.0 (if you make an query with FOR_UPDATE 
  16. option), the record is locked, when you change its value. When the record is
  17. already locked, you get the message :
  18. Attempt to preserve record for update or delete. Press CONTROL-C to cancel...
  19.  
  20. Is it possible to avoid this message and then giving the user a message without
  21. waiting for the CTRL-C. In my own programs I can make a Lock with NOWAIT option
  22. and then I get an error, if the lock is used by another process, but a simple Select in Forms does never make any locks, even if I made an explicit lock 
  23. statement.
  24.  
  25. The other way is never to lock anything and always get the message :
  26. Record updated by another user, plese requery.
  27.  
  28. Is there any use of the ON-LOCK-Trigger?
  29. Is it possible to make an explicit lock (e.g. row exclusive) at the time of 
  30. the query ?
  31. How can I lock other tables which contains references on the current visible
  32. data and must be updated/deleted with the current record ?
  33.  
  34. If you have solved this problems please mail me your solution to :
  35.  
  36. hannes%tuatara@Germany.EU.net
  37.  
  38. Thanks
  39.  
  40.  
  41.