home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / oracle / 2776 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  2.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!uoft02.utoledo.edu!ocvaxa.cc.oberlin.edu!ocvaxc.cc.oberlin.edu!bamon
  2. Newsgroups: comp.databases.oracle
  3. Subject: Re: Help needed: Simple Forms V3 Qns.
  4. Message-ID: <1993Jan12.083949.1@ocvaxc.cc.oberlin.edu>
  5. From: bamon@ocvaxc.cc.oberlin.edu
  6. Date: 12 Jan 93 08:39:49 EDT
  7. References: <1993Jan11.230248.8262@brt.deakin.edu.au>
  8. Organization: Oberlin College
  9. Nntp-Posting-Host: ocvaxc.cc.oberlin.edu
  10. Lines: 68
  11.  
  12. In article <1993Jan11.230248.8262@brt.deakin.edu.au>, ajmex@brt.deakin.edu.au writes:
  13. > 1. How do you disable key triggers? In V2 you just defined them with
  14. >    text of "#EXEMACRO NULL", but I cant find an equivalent in V3 .
  15.  
  16. Use "null;" in the text of the trigger.
  17.  
  18. > 2. I want a screen to set off a background process that runs a SQL*Plus
  19. >    routine. How do I run this under the same User/Passwd?
  20.  
  21. What operating system? If VMS, you can use the host command to submit
  22. the background process to run in batch.
  23.  
  24. An example:
  25.  
  26.    DEFINE TRIGGER
  27.  
  28.       NAME = POST-COMMIT
  29.       TRIGGER_TYPE = V3
  30.       DESCRIPTION = Post Commit
  31.       TEXT = <<<
  32.       declare
  33.        temp_command char(200);
  34.       begin
  35.         /* batch the program */
  36.         select
  37.             'batch/log=fa_log:fasj0630_BATCH.log' ||
  38.             '/noprint/keep/noidentify/noconfirm fasj0630' ||
  39.             '/param=("FASF0340","' ||
  40.             :form_variables.test_only_flag ||
  41.             '")'
  42.         into temp_command from dual;
  43.         host(temp_command,NO_SCREEN);
  44.         message('Batched program FASJ0630.');
  45.       end;
  46.       >>>
  47.  
  48.  
  49.    ENDDEFINE TRIGGER
  50.  
  51. > 3. In PL/SQL, if a SQL statement returns no rows, this is interpreted as an
  52. >    error, and the exception handler is invoked. Is there no way to continue
  53. >    processing at this point? Not all cases of "No rows found" are errors, in
  54. >    my book. Not fatal errors, in any case.
  55.  
  56. In the exception section, use something like the following:
  57.  
  58.       exception
  59.         when no_data_found then
  60.           whatever;                 [put code or "null;" here.]
  61.         when others then
  62.           null;
  63.       end;
  64.  
  65.  
  66. > Thanks for any help given. E-mail prefered. Alister Miller.
  67.  
  68. I tried to use e-mail, but with no luck.
  69.  
  70. _____________________________________________________________________
  71. Jennifer R. Amon     FREENET: aa1190@freenet.lorain.oberlin.edu
  72. Oberlin College      FREENET: cc312@cleveland.freenet.edu
  73. Oberlin, OH 44074   *INTERNET: bamon@ocvaxc.cc.oberlin.edu
  74. PH: (216) 775-6987   BITNET: bamon%ocvaxc.cc.oberlin.edu@ocvaxc.bitnet
  75. FAX: (216) 775-8573  *use the internet address if possible        
  76. _____________________________________________________________________
  77.  
  78.  
  79.