home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!uoft02.utoledo.edu!ocvaxa.cc.oberlin.edu!ocvaxc.cc.oberlin.edu!bamon
- Newsgroups: comp.databases.oracle
- Subject: Re: Help needed: Simple Forms V3 Qns.
- Message-ID: <1993Jan12.083949.1@ocvaxc.cc.oberlin.edu>
- From: bamon@ocvaxc.cc.oberlin.edu
- Date: 12 Jan 93 08:39:49 EDT
- References: <1993Jan11.230248.8262@brt.deakin.edu.au>
- Organization: Oberlin College
- Nntp-Posting-Host: ocvaxc.cc.oberlin.edu
- Lines: 68
-
- In article <1993Jan11.230248.8262@brt.deakin.edu.au>, ajmex@brt.deakin.edu.au writes:
- >
- > 1. How do you disable key triggers? In V2 you just defined them with
- > text of "#EXEMACRO NULL", but I cant find an equivalent in V3 .
-
- Use "null;" in the text of the trigger.
-
- > 2. I want a screen to set off a background process that runs a SQL*Plus
- > routine. How do I run this under the same User/Passwd?
-
- What operating system? If VMS, you can use the host command to submit
- the background process to run in batch.
-
- An example:
-
- DEFINE TRIGGER
-
- NAME = POST-COMMIT
- TRIGGER_TYPE = V3
- DESCRIPTION = Post Commit
- TEXT = <<<
- declare
- temp_command char(200);
- begin
- /* batch the program */
- select
- 'batch/log=fa_log:fasj0630_BATCH.log' ||
- '/noprint/keep/noidentify/noconfirm fasj0630' ||
- '/param=("FASF0340","' ||
- :form_variables.test_only_flag ||
- '")'
- into temp_command from dual;
- host(temp_command,NO_SCREEN);
- message('Batched program FASJ0630.');
- end;
- >>>
-
-
- ENDDEFINE TRIGGER
-
- > 3. In PL/SQL, if a SQL statement returns no rows, this is interpreted as an
- > error, and the exception handler is invoked. Is there no way to continue
- > processing at this point? Not all cases of "No rows found" are errors, in
- > my book. Not fatal errors, in any case.
-
- In the exception section, use something like the following:
-
- exception
- when no_data_found then
- whatever; [put code or "null;" here.]
- when others then
- null;
- end;
-
-
- > Thanks for any help given. E-mail prefered. Alister Miller.
-
- I tried to use e-mail, but with no luck.
-
- _____________________________________________________________________
- Jennifer R. Amon FREENET: aa1190@freenet.lorain.oberlin.edu
- Oberlin College FREENET: cc312@cleveland.freenet.edu
- Oberlin, OH 44074 *INTERNET: bamon@ocvaxc.cc.oberlin.edu
- PH: (216) 775-6987 BITNET: bamon%ocvaxc.cc.oberlin.edu@ocvaxc.bitnet
- FAX: (216) 775-8573 *use the internet address if possible
- _____________________________________________________________________
-
-
-