CREATE OR REPLACE PROCEDURE a AS
BEGIN
DBMS_OUTPUT.PUT_LINE('This is procedure a');
END;
CREATE OR REPLACE PROCEDURE b AS
BEGIN
DBMS_OUTPUT.PUT_LINE('This is procedure b');
a;
END;
SET SERVEROUTPUT ON;
EXECUTE b;
The owner of procedure b would need to be granted execute on procedure a if
they were in different schemas. Which leads me onto a question of my own, I
know how to find out which grants have been made for a particular user to
access tables, but how do I find out which packages a user has execute on?
Cheers,
g.
-----Original Message-----
Sent: 13 June 2001 15:06
To: Multiple recipients of list ORACLE-L
Hi all,
This may have been discussed earlier, but can I call a stored procedure from
another stored procedure?
What access must be given to the calling SP to the called SP, and syntax
from the calling SP.
TIA
David
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Bartolo, David
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Guy Hammond
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).