Re: Call Stored procedure from another Stored procedure.

2001-06-13 Thread nlzanen1


Hi

The person creating the stored procedure should have execute rights on the
stored procedure he/she wants to include in the SP.
syntax is simply the procedure name (no exec)


Jack


   
  
"Bartolo,  
  
David"   To: Multiple recipients of list ORACLE-L 
<[EMAIL PROTECTED]> 
   Subject: Call Stored procedure from 
another Stored procedure.   
Sent by:   
  
[EMAIL PROTECTED] 
  
om 
  
   
  
   
  
13-06-2001 
  
16:05  
  
Please respond 
  
to 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).




=
De informatie verzonden in dit e-mailbericht is vertrouwelijk en is
uitsluitend bestemd voor de geadresseerde. Openbaarmaking,
vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan
derden is, behoudens voorafgaande schriftelijke toestemming van Ernst &
Young, niet toegestaan. Ernst & Young staat niet in voor de juiste en
volledige overbrenging van de inhoud van een verzonden e-mailbericht, noch
voor tijdige ontvangst daarvan. Ernst & Young kan niet garanderen dat een
verzonden e-mailbericht vrij is van virussen, noch dat e-mailberichten
worden overgebracht zonder inbreuk of tussenkomst van onbevoegde derden.

Indien bovenstaand e-mailbericht niet aan u is gericht, verzoeken wij u
vriendelijk doch dringend het e-mailbericht te retourneren aan de verzender
en het origineel en eventuele kopieën te verwijderen en te vernietigen.

Ernst & Young hanteert bij de uitoefening van haar werkzaamheden algemene
voorwaarden, waarin een beperking van aansprakelijkheid is opgenomen. De
algemene voorwaarden worden u op verzoek kosteloos toegezonden.
=
The information contained in this communication is confidential and is
intended solely for the use of the individual or entity to whom it is
addressed. You should not copy, disclose or distribute this communication
without the authority of Ernst & Young. Ernst & Young is neither liable for
the proper and complete transmission of the information contained in this
communication nor for any delay in its receipt. Ernst & Young does not
guarantee that the integrity of this communication has been maintained nor
that the communication is free of viruses, interceptions or interference.

If you are not the intended recipient of this communication please return
the communication to the sender and delete and destroy all copies.

In carrying out its engagements, Ernst & Young applies general terms and
conditions, which contain a clause that limits its liability. A copy of
these t

RE: Call Stored procedure from another Stored procedure.

2001-06-13 Thread MacGregor, Ian A.

>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
[EMAIL PROTECTED]

-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: [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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: MacGregor, Ian A.
  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).



RE: Call Stored procedure from another Stored procedure.

2001-06-13 Thread MacGregor, Ian A.

Yes you can; stored procedures would next to useless if you could not.  The owner of 
the calling procedure must have  execute privileges on the called procedure.  You call 
a procedure from within a procedure thus

-- call myprocedure
   myprocedure;
-- end call to my procedure

You do not use the SQL*Plus "exec" command when calling a procedure from within 
another one.


Ian MacGregor
Stanford Linear Accelerator Center
[EMAIL PROTECTED]


-Original Message-
Sent: Wednesday, June 13, 2001 7:06 AM
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: MacGregor, Ian A.
  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).



RE: Call Stored procedure from another Stored procedure.

2001-06-13 Thread Guy Hammond

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).



Call Stored procedure from another Stored procedure.

2001-06-13 Thread Bartolo, David

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).