Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> how to count the usage of a SQL function?

how to count the usage of a SQL function?

From: Steven Joshua <wndyu_at_yahoo.com>
Date: Tue, 07 May 2002 15:08:29 -0800
Message-ID: <F001.0045AC0F.20020507150829@fatcity.com>


Hello, List:

We have more than 100 triggers in the database. Some of them use ORACLE NEW_TIME function in the code. Is there a way that we can count how many triggers are referencing NEW_TIME function?

I used below query, but it will only count the function that we created in the database. how can can count SQL function (NEW_TIME)?

Select Count(*) From USER_DEPENDENCIES
Where Type in ('PROCEDURE', 'TRIGGER')
And REFERENCED_TYPE = 'FUNCTION'
And REFERENCED_NAME = 'TIME_CONVERT'

Thanks a lot

Steven



Do You Yahoo!?
Yahoo! Health - your guide to health and wellness http://health.yahoo.com
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Steven Joshua
  INET: wndyu_at_yahoo.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 Tue May 07 2002 - 18:08:29 CDT

Original text of this message

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