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: Call Stored procedure from another Stored procedure.

RE: Call Stored procedure from another Stored procedure.

From: MacGregor, Ian A. <ian_at_SLAC.Stanford.EDU>
Date: Wed, 13 Jun 2001 09:38:42 -0700
Message-ID: <F001.0032805F.20010613094703@fatcity.com>

>From dba_tab_privs, all_tab_privs, or user_tab_privs. The column table_name is
>overloaded to include procedures etc.

Ian MacGregor
Stanford Linear Accelerator Center
ian_at_slac.stanford.edu

-----Original Message-----
Sent: Wednesday, June 13, 2001 8:31 AM
To: Multiple recipients of list ORACLE-L

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: bartolo_at_USCOLO.edu

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: ListGuru_at_fatcity.com (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: guy.hammond_at_avt.co.uk

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: ListGuru_at_fatcity.com (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: MacGregor, Ian A.
  INET: ian_at_SLAC.Stanford.EDU

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: ListGuru_at_fatcity.com (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).
Received on Wed Jun 13 2001 - 11:38:42 CDT

Original text of this message

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