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: How to find the last execution time of a Procedure.

RE: How to find the last execution time of a Procedure.

From: <Prasada.Gunda_at_hartfordlife.com>
Date: Thu, 22 Jan 2004 10:24:26 -0800
Message-ID: <F001.005DDE7D.20040122102426@fatcity.com>

Thanks for input Raj.

I was also thinking on the same lines (Querying v$views periodically and store it in some metadata table) if there is no easier way to figure out from DBA_ views.

As far as changing the production code, as you know, It has to go thru the dev/test databases first and then go thru the release process to implement into the production. It is painful process.

I will use x$kglob instead of changing production code and all that release stuff. Thanks for your help, Raj.

Best Regards,
Prasad
860 843 8377

                                                                                                                                        
                      "Jamadagni,                                                                                                       
                      Rajendra"                 To:       Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>                   
                      <Rajendra.Jamadagn        cc:                                                                                     
                      i_at_espn.com>               Subject:  RE: How to find the last execution time of a Procedure.                       
                      Sent by:                                                                                                          
                      ml-errors_at_fatcity.                                                                                                
                      com                                                                                                               
                                                                                                                                        
                                                                                                                                        
                      01/22/2004 11:39                                                                                                  
                      AM                                                                                                                
                      Please respond to                                                                                                 
                      ORACLE-L                                                                                                          
                                                                                                                                        
                                                                                                                                        




not easily, but you could probably scan through x$kglob (frequently) and see if the name exists ... if it is, it means it was loaded for execution.

Another solution might be to modify old code and have them add a row in a separate table using autonomous transaction to indicate they got executed. Then wait for couple of months and it will give you some good idea.

Of course people who know more than I do will have better solutions. Raj


Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art !

-----Original Message-----
[mailto:Prasada.Gunda_at_hartfordlife.com]
Sent: Thursday, January 22, 2004 11:19 AM To: Multiple recipients of list ORACLE-L

Hi All,

Is there anyway to find out from data dictionary views when was a database procedure/function last executed. Would like know the solution for 8i and 9i databases. We have some older code in the databases and do not know if any application is using it or not.

I appreciate your help.

Thanks & Best Regards,
Prasad

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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). ************************************************************************* PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************************* -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: INET: Prasada.Gunda_at_hartfordlife.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- 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 Thu Jan 22 2004 - 12:24:26 CST

Original text of this message

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