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 vs execute - stored procedures

Re: call vs execute - stored procedures

From: <Jared.Still_at_radisys.com>
Date: Wed, 16 Jan 2002 10:52:12 -0800
Message-ID: <F001.003F1A67.20020116104115@fatcity.com>

Glenn,

I believe that CALL needs to be terminated with a semicolon.

Jared

                                                                                       
                              
                    Glenn Stauffer                                                     
                              
                    <stauffer_at_swart       To:     Multiple recipients of list ORACLE-L 
<ORACLE-L_at_fatcity.com>        
                    hmore.edu>            cc:                                          
                              
                    Sent by:              Subject:     call vs execute - stored 
procedures                           
                    root_at_fatcity.co                                                    
                              
                    m                                                                  
                              
                                                                                       
                              
                                                                                       
                              
                    01/16/02 08:55                                                     
                              
                    AM                                                                 
                              
                    Please respond                                                     
                              
                    to ORACLE-L                                                        
                              
                                                                                       
                              
                                                                                       
                              




I am working up a script to run the dbms_stats.gather_database_stats() procedure and have run into something for which I haven't yet found an explanation.

Maybe someone here can tell me why I can run dbms_stats.gather_database_stats
from Python like this (Perl would be similar, I believe, since I found the fix in a Perl list archive)

           cursor.execute("BEGIN dbms_stats.gather_database_stats(); END; ")

but not like this:

           cursor.execute("call dbms_stats.gather_database_stats()")

"Call" works for other stored procedures, dbms_utility.analyze_schema() for

instance, but not for dbms_stats.

So, what's the difference?

Thanks, Glenn

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Glenn Stauffer
  INET: stauffer_at_swarthmore.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: INET: Jared.Still_at_radisys.com 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 Jan 16 2002 - 12:52:12 CST

Original text of this message

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