Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Fixing error ORA-06571

Fixing error ORA-06571

From: PMG <pete_g_at_2xtreme.net>
Date: Tue, 22 Jun 1999 05:34:48 GMT
Message-ID: <376F20B6.38E224FA@2xtreme.net>


Using Oracle 7.3.3, I have created the following package and function, and when I say

      select pk_rep_terr.current_alignment from dual I get an error message ---
ORA-06571: Function CURRENT_ALIGNMENT does not guarantee not to update database.

The documentation says
 *Cause: There are two possible causes for this message:

Any suggestions?

Here is what I have got:

CREATE OR REPLACE PACKAGE pk_rep_terr
IS
  FUNCTION current_alignment

       RETURN number;
END pk_rep_terr;
/

CREATE OR REPLACE PACKAGE BODY pk_rep_terr IS
FUNCTION current_alignment

       RETURN number
IS

       cur_al NUMBER;
 BEGIN

       /* Determine the current alignment number */
       SELECT
               MAX(rv_low_value)
       INTO
               cur_al
       FROM
               hs_ref_codes
       WHERE
               rv_domain = 'ALIGNMENT';
       RETURN cur_al;

 END current_alignment;
END pk_rep_terr;
/
Received on Tue Jun 22 1999 - 00:34:48 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US