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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Can't code for s.... peanuts

RE: Can't code for s.... peanuts

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Mon, 23 Jul 2001 11:01:48 -0700
Message-ID: <F001.00352320.20010723110141@fatcity.com>


Couple of points ...  

  1. A function that you will be using in SQL can't return Boolean, because SQL doesn't understand Boolean.
  2. You need to close cursor before you RETURN.
  3. It works in sqlplus because you *tried* to run the function as owner.
  4. SVRMGRL, used by DBA types, so if you haven't created synonyms on the function and granted access, everyone except function owner will get this error.

To Fix.  

  1. Return a value other than Boolean (varchar2 or number will do fine).
  2. Close the cursor before RETURNing from function.
  3. Create a public synonym and grant execute privilege to public or a (list of) role(s) or a (list of) user(s).
  4. Then try, it should work fine.

HTH
Raj



Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com
Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.

QOTD: Any clod can have facts, but having an opinion is an art !

*********************************************************************1

This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.

*********************************************************************1
Received on Mon Jul 23 2001 - 13:01:48 CDT

Original text of this message

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