How to find out Unused Packages/Procedures/Functions/Triggers

Hi,
I have one database. This database is with 7 schemas. Around 1000 triggers are associated with each schema. But the application is using only some triggers.
How to find out the used triggers? Apllications is developed in J2EE.
Same way I want to find out the for Packages/Procedures and Functions.
Any easy way is available?
Please help me.
regards
Mathew

Hi,
>Audit the execution event on the objects by access.
Kindly explain how to enable this auditing.
regards
Mathew

Similar Messages

  • How to find out what are the functions supported by string class

    Hi,
    Can any one let me know how to find what are all the functions supported by the string class in standard(STL) library on solaris.
    Regards,
    Vignesh

    1. Any C++ textbook that covers the Standard Library will tell you about the standard string class. A good tutorial and reference for the entire Standard Library is "The C++ Standard Library" by Nicolai Josuttis, published by Addison Wesley.
    2. WIth Sun C++, the command
    man -s3C++ basic_string
    provides documentation for the default libCstd version of the Standard Library.
    3. You could look at the <string> header itself. I don't recommend that approach.

  • How to find out list of procedures and functions inside a package

    How I can find out the list of Procedures and Functions inside a Package.

    Look at ALL_PROCEDURES and ALL_ARGUMENTS.

  • How to find out the packages created by a particular user.

    Hi,
    In a system which i am working.
    I want the find the different packages that wer created by me.
    How to find it out.
    Regards,
    Chandru

    Hi Chandra
    Goto SE21
    Package Z* then Press F4.
    Person Responsible: Your Login Name
    OKAY . This will list all packages made by u.
    Reward Points if useful
    Regards
    Akshay Chonkar

  • How to find out unused Indexes (regardless of restarts of server or database)?

    Hello colleagues,
    do you know how to get list of unused indexes regardless of restarts of MS-SQL-Server or Database?
    Because (if I understand correctly to information in
    BOL ) all content of dynamic management view sys.dm_db_index_usage_stats is deleted during restart of MS-SQL-Server or Detach Database.
    Due to when I use my next script (to generate report with list of unused indexes) immediately (or after short time) after restart of MS-SQL-Server it contains misleading/confusing information.
    USE [AdventureWorks]
    GO
    DECLARE @CurrDate as varchar(10), @CurrTime as varchar(5), @DatePartsSeparator as char(1), @EmptyDate as smalldatetime;
    SET @DatePartsSeparator = '/';
    SET @CurrDate = RIGHT ('0' + CONVERT(varchar,DATEPART (day,GETDATE())), 2);
    SET @CurrDate = @CurrDate + @DatePartsSeparator;
    SET @CurrDate = @CurrDate + RIGHT ('0' + CONVERT(varchar,DATEPART (month,GETDATE())), 2);
    SET @CurrDate = @CurrDate + @DatePartsSeparator;
    SET @CurrDate = @CurrDate + CONVERT(varchar,DATEPART (year,GETDATE()));
    SET @CurrTime = RIGHT ('0' + CONVERT(varchar,DATEPART (hour,GETDATE())), 2);
    SET @CurrTime = @CurrTime + ':';
    SET @CurrTime = @CurrTime + RIGHT ('0' + CONVERT(varchar,DATEPART (minute,GETDATE())), 2);
    SET @EmptyDate = CONVERT(smalldatetime, '01' + @DatePartsSeparator + '01' + @DatePartsSeparator + '2000');
    SELECT SERVERPROPERTY('servername') AS [Server]
    , DB_NAME(s.database_id) AS [Database]
    , o.type_desc [ObjectType]
    , o.name AS [Object]
    , i.name AS [Index]
    , (user_seeks + user_scans + user_lookups) AS Reads
    , user_updates AS Writes
    , ((SELECT SUM(p.rows) FROM sys.partitions p WHERE p.index_id = s.index_id AND s.object_id = p.object_id) / 100) AS [Rows(1000)]
    , CASE
    WHEN s.user_updates < 1 THEN 100
    ELSE CAST(1.00 * (s.user_seeks + s.user_scans + s.user_lookups) / s.user_updates AS decimal (12,5))
    END AS Reads_per_Write
    , (SELECT TOP 1 luu.[Last_User_Usage] FROM (
    SELECT COALESCE(s.last_user_lookup, @EmptyDate) AS [Last_User_Usage]
    UNION
    SELECT COALESCE(s.last_user_scan, @EmptyDate) AS [Last_User_Usage]
    UNION
    SELECT COALESCE(s.last_user_seek, @EmptyDate) AS [Last_User_Usage]
    ) AS luu ORDER BY luu.[Last_User_Usage] DESC) AS [Last_User_Usage]
    , COALESCE(s.last_user_update, @EmptyDate) AS [Last_User_Update]
    , CASE WHEN i.is_disabled = 0 THEN 'N' ELSE 'Y' END AS [Disabled]
    , i.index_id
    , o.create_date AS [Index_Created]
    , o.modify_date AS [Index_Modified]
    , u.name AS [Index_Owner]
    , @CurrDate AS [This_Report_Created]
    , @CurrTime AS [This_Report_Created_Time]
    , CONVERT(CHAR(40), SUSER_SNAME()) AS [This_Report_Created_by_User]
    , 'DROP INDEX ' + QUOTENAME(i.name) + ' ON ' + QUOTENAME(DB_NAME(s.database_id)) + '.' + QUOTENAME(c.name) + '.' + QUOTENAME(OBJECT_NAME(s.object_id)) as 'drop statement'
    FROM sys.dm_db_index_usage_stats s
    INNER JOIN sys.indexes i ON i.index_id = s.index_id AND s.object_id = i.object_id
    INNER JOIN sys.objects o ON s.object_id = o.object_id
    INNER JOIN sys.schemas c ON o.schema_id = c.schema_id
    LEFT OUTER JOIN sys.database_principals u ON OBJECTPROPERTY ( o.object_id , 'OwnerId' ) = u.principal_id
    WHERE OBJECTPROPERTY(s.object_id,'IsUserTable') = 1
    AND s.database_id = DB_ID()
    AND i.type_desc = 'nonclustered'
    AND i.is_primary_key = 0
    AND i.is_unique_constraint = 0
    AND o.type IN ('U','V')
    AND o.is_ms_shipped = 0
    AND (SELECT SUM(p.rows) FROM sys.partitions p WHERE p.index_id = s.index_id AND s.object_id = p.object_id) > 10000
    ORDER BY Reads;
    GO
    __________________________________________________________ If isn't above described anything, the following applies: Technical details: * OS: Windows Server v2008-R2, English, Enterprise Edition, x64, SP1 ** My User-Account is member of 'Administrators'
    local security group. * MS-SQL-Server: v2008-R2, English, Enterprise Edition, x64, SP1 ** My User-Account is member of 'SysAdmin' db-role.

    Hi,
    You are right. The sys.dm_db_index_usage_stats DMV tells how often and to what extent indexes are used.
    Please check the unused section in the below article to find the unused indexes:
    Uncover Hidden Data to Optimize Application Performance
    http://msdn.microsoft.com/en-us/magazine/cc135978.aspx#S5
    In addition, you can also use Database Engine Tuning Advisor to verify if you have too many indexes. DTA can easily find the bad indexes and provide the recommendation for action.
    Reference:
    http://blogs.technet.com/b/sql_server_isv/archive/2011/04/08/fundamentals-running-database-engine-tuning-advisor-and-selecting-indexes.aspx
    Hope it helps.
    Tracy Cai
    TechNet Community Support

  • How to find out which OOTB forms functions have built in parameters

    All,
    Is there a simple way to get a list of EBS R12 form functions that have parameters already built in. I have built an integration from OBIEE T navigate to a EBS Form and pass a parameter. I am looking for a simple way to get a list of all the FORM FUNCTIONS that have parameters and what those parameter names are? Is there a SQL query or a simple way in the GUI that I can get this information? I have access to FOrms Personalization but I cannot edit the forms as I dont have Forms Builder.
    For example the following form function PA_PAXTRAPE_SINGLE_PROJECT has a parameter PROJECT_NUMBER. SImilarly, how can I get a list of other forms that have parameters I can pass from external programs (without editing the form itself).
    Thanks

    amol_dev wrote:
    Thank you for your reply Brynjar.
    However, I was trying to figure out a way to do this without having to change the calling command line, because due to legacy reasons, it is not possible to change the command line calling the parent applications of this common code.You cannot change the command line, but you can change the applications?
    In main() do this:
    System.setProperty("whoami",(new Throwable().getStackTrace()[0].getClassName()));Elsewhere:
    String whoami = System.getProperty("whoami");

  • How to make use of SE37- Function Module & how to find out the table?

    Hi ,
    1.Could anyone help me what's this SE37-Function module is all about,How to make use of this?
    For Eg,If i want to delete a BOM permanently from the system then I have to use the Function module CM_DB_DEL_FROM_ROOT_BOM.
    But after giving the particular name what should i do?
    Please help me.
    2.How to find out the respective table for a particular field sya for T code-COGI, T code MFBF,where its values are getting populated.,Please help in this issue.
    Thanks in adavnce for spending some time
    Raj.S

    Hi Raj
    Function Modules
    Function modules are procedures that are defined in special ABAP programs only, so-called function groups, but can be called from all ABAP programs. Function groups act as containers for function modules that logically belong together. You create function groups and function modules in the ABAP Workbench using the Function Builder.
    Function modules allow you to encapsulate and reuse global functions in the SAP System. They are managed in a central function library. The SAP System contains several predefined functions modules that can be called from any ABAP program. Function modules also play an important role during updating  and in interaction between different SAP systems, or between SAP systems and remote systems through remote communications.
    Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the Function Builder.
    The Function Builder  also has a release process for function modules. This ensures that incompatible changes cannot be made to any function modules that have already been released. This applies particularly to the interface. Programs that use a released function module will not cease to work if the function module is changed.
    Check this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    You can execute function module in SE37ie you can perform the activiites defined in the function module by executing it.
    By deleting BOM you mention the FM name in se37 and execute. In some function module it will ask input parameters as developed in the program , you have to give the input parameters and execute.

  • How to find out who had deleted the function moldule? S O S

    how to find out who had deleted the function moldule Thank you very much.

    if this fm was assigned to device class (package) you'll find it in
    tables tadir, e070, e071
    try with name of function module or function group
    hope that helps
    Andreas

  • How to find out which job is calling package

    Respected sir,
    How to find out which job is calling my package. Please help me regarding this.
    Regards,
    user570124

    Please read about [url http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_util.htm#i997163]DBMS_UTILITY.FORMAT_CALL_STACK in the manual.
    or [url http://asktom.oracle.com/tkyte/who_called_me/index.html]this routine from Tom Kyte may be what you are looking for.
    Regards,
    Rob.

  • How to find out the inbound function module in the extended idoc

    Hi,
    how to find out the inbound function module in the extended idocs
    Thanks .

    through we41/we42 you can find the inbound function module.......
    or
    thorough we19(idoc test tool) ....
    give the input as message type or basic idoc..
    press exec...
    then you can find th button on application tool bar as inbound funtion module....
    from here also you can find..........
    <REMOVED BY MODERATOR>
    Khasimsa
    Edited by: Alvaro Tejada Galindo on Apr 14, 2008 1:34 PM

  • How to find out PL/SQL function usage in Discoverer workbooks?

    We have to make changes to one PL/SQL function that has been registered in Administrator. Is it possible to find out in which reports the function is used? The function is called in calculations and it returns certain time information. We have to add one argument to the function and therefore have to change calculations where the function is called. We have too many workbooks to manually check them all.
    I am aware how to find out which folders and items are used in workbooks but can't find the same information about functions. We are using Discoverer 10.1.2.2
    Thanks in advance!

    Hi,
    If you calculation is in the EUL you can look at the item dependencies, but if your calculation is in the workbook there is no way other than using the workbook dump (d51wkdmp.exe) utility or opening the workbook and manually checking.
    You might want to consider overlaying the PL/SQL function definition so that there are 2 variants of the function. You can then add the extra parameter as an optional parameter in Discoverer. The correct variant will be called depending on how many parameters are used.
    Hope that helps,
    Rod West

  • [SOLVED] How do I find out what packages are installed in a distro?

    Okay. I was running Arch before, but GNOME had a bunch of problems that I couldn't fix myself, so I reformatted and went to Peppermint OS (it's a cloud-based system), and I absolutely love it. Now, the thing is, it's even slower than my Arch system was running GNOME, and it's supposed to be super-lightweight and speedy; but aside from that, I found it's a great distro (I think most of the slowdown is because it's based on Ubuntu and Mint). So, my question: how do I find out which packages are in Peppermint OS so I can emulate the basic environment, except with Arch underneath? Thanks, guys!
    Last edited by InfernalDante (2011-07-13 02:39:05)

    Okay, I guess an hour of Googling wasn't enough, but I just found a site that tells me how to do it! I'll mark this solved, but for anyone else who wants to know, the info is right here: http://www.cyberciti.biz/faq/find-out-i … -in-linux/ It uses dpkg, which I think is only used on Debian-based systems (correct me if I'm wrong) so it may not work for all distros, but it's a start.

  • How to find out the Functional module related to a T-code

    Hi All ,
    Please tell how to find out the Functional module related to a T-code.
    i want it for the T-code RSZDELETE.

    Hi
    There is no direct way to see this.
    You need to Pick the Program(Se37/38) and tables (SE16/11)and to see where its been used
    The FM for RSZDELETE is RSZ_DB_COMP_REORG_AS_POPUP.
    Hope it helps

  • How do I find out what Package a class is in

    I am trying to find out what Package the classes XMLNode and XMLInterface are located in. Is there a way to search for a class to find out what package it is held in ?
    Quite often I see example code but spend wore time working out what package the class is in than actually writing code. Am I being really stupid ? (Don't answer that !!)
    Many thanks for any tips
    Dan

    you can find the class path by searching the $JAVA_TOP directory.
    Login to apps server.
    cd $JAVA_TOP
    find . -name "Classname.class"
    --Prasanna                                                                                                                                                                                                                                                                                                                   

  • How can I create packages procedure & function in user-define Library

    hi.
    i am already created packages procedure & function in database and use so on.
    now i would like to create these in library file.
    please anyone give me example of any procedure or function to store in library.
    thanks
    Ali

    <FONT FACE="Arial" size=2 color="2D0000">> please send me one simple example for create library
    then create any function in library.
    2nd is any package can be create in library or not??
    Thanks S.K
    AliHave you checked the link?
    A simple example is provided.
    I think What I understood from your post is that, you want to put function/ Proc and want to call that as Library ..
    Which is not  possible.
    For exampel an external routine is a third-generation language procedure stored in a
    dynamic link library (DLL), registered with PL/SQL, and called by the DBA to perform
    special-purpose processing.
    In Unix a dynamic link library is known as a shared object (so).
    At run time, PL/SQL loads the library dynamically, then calls the routine as if it were a
    PL/SQL subprogram. To safeguard our database, the routine runs in a separate address
    space, but it participates fully in the current transaction. Furthermore, the routine can
    make a call back to the database to perform SQL operations.
    To identify a DLL we have to use CREATE LIBRARY command.
    The CREATE LIBRARY command is used to create a schema object, library, which
    represents an operating-system shared library, from which SQL and PL/SQL can call
    external third-generation-language (3GL) functions and procedures.
    Learn something more on External Procedures
    -SK
    </FONT>

Maybe you are looking for