home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!hayes!fgreene
- From: fgreene@hayes.com
- Newsgroups: comp.databases.oracle
- Subject: Re: Help needed: Simple Forms V3 Qns.
- Message-ID: <6645.2b527bd0@hayes.com>
- Date: 12 Jan 93 08:05:35 EDT
- References: <1993Jan11.230248.8262@brt.deakin.edu.au>
- Organization: Hayes Microcomputer Products, Norcross, GA
- Lines: 45
-
- In article <1993Jan11.230248.8262@brt.deakin.edu.au>, ajmex@brt.deakin.edu.au writes:
- > I have been away from Oracle for a couple of years, and have a few questions
- > relating to SQL*Forms V3 .
- >
- > 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 .
-
- just use the value NULL;
- >
- > 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?
- >
- From within a trigger, include the line
-
- HOST('sqlplus -a / @program_name')
-
- to start immediate operation of a program. To make it run as a
- batch routine you need to augment it with operating specific
- commands. For example, in UNIX, you would add an '&' character
- to the end of the string. In VAX, you need to route the commands
- through a .COM file, etc.
-
- > 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.
-
- Easiest way to do it is to first retrieve a count of all candidate
- records into a local variable. If the count is greater than zero
- then execute the query. A more efficient method is to utilize a
- CURSOR command combined with a loop. If there are no records
- retrieved, there will just be zero passes through the loop. There
- is a good example under the heading 'Cursor Management' in chapter
- 2 of the PL/SQL User Guide and Reference.
-
- ----------------------------------------------------------------------------
- | Frank Greene | ////// ////// |
- | DELPHI SYSTEMS, Inc. | //// //// |
- | Telephone [615] 458-6032 | //// //// ////// |
- | Compuserve 74200,427 | //// //// //// |
- | 324 Ootsima Way | //// //// //// |
- | Loudon, TN 37774 | ////// ////// ////// |
- ----------------------------------------------------------------------------
- | Of course, any opinions or suggestions are strictly my own |
- ----------------------------------------------------------------------------
-