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
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 !

Reply via email to