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 -> GRANT EXECUTE ON MYFUNCTION TO SOMEROLE

GRANT EXECUTE ON MYFUNCTION TO SOMEROLE

From: Tim Romano <tim_at_ot.com>
Date: 1997/02/15
Message-ID: <01bc1b53$429fdda0$73f0eac7@haven>#1/1

Connected as the DB owner, SALES, I created a standalone (i.e., not part of a package) function, MYFUNCTION, and then I granted execute on MYFUNCTION to a role, SALES_ROLE. Prior to creating the function, I had granted SALES_ROLE to a user, JOE.

In SQL statements that JOE issues, JOE must prepend the name of the database owner to the function name:

SELECT ID, INVOICEAMT, SALES.MYFUNCTION(DUEDATE) FROM INVOICE Is there a way for user JOE to reference MYFUNCTION without prepending the DB owner name?

SELECT ID, INVOICEAMT, MYFUNCTION(DUEDATE) FROM INVOICE Please cc: me at tim_at_ot.com if you reply to the group. Thanks in advance.
Tim Received on Sat Feb 15 1997 - 00:00:00 CST

Original text of this message

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