Query to find the size of trigger?

query to find the size of trigger?

Can you define what the size of a trigger would be?
I suppose one measure might be to get the DDL for the trigger (DBMS_METADATA.GET_DDL) and do a DBMS_LOB.GetLength on the CLOB that is returned. I'm hard-pressed to find that a meaningful number, but it is a measure of "size".
Justin

Similar Messages

  • Query to find the size of a schema

    Hi,
    Can you give me the Oracle query to find the size of a schema ?
    Thanks,
    Smitha

    Hi,
    Following query tell you the size of schema.
    SELECT owner,
    Sum(bytes)/1024/1024 AS total_size_mb
    FROM dba_segments
    WHERE owner = Upper('&1')
    GROUP BY owner
    Regards,
    Awais Riaz

  • Query to find the size of db objects in bytes within a tablespace

    Is there a query by which i could find the size of all the db objects in bytes within a tablespace?

    Try
    SQL> select owner, segment_name, segment_type, bytes
      2  from dba_segments
      3  where tablespace_name = '<TABLESPACE NAME>'
      4  order by owner, segment_name;TABLESPACE NAME has to be uppercase.

  • Query to find the size the table occupies

    I have a table with blob columns. How to find the size the table occupying? Thanks

    DBMS_SPACE.SPACE_USAGE(
    segment_owner IN varchar2,
    segment_name IN varchar2,
    segment_type IN varchar2,
    unformatted_blocks OUT number,
    unformatted_bytes OUT number,
    fs1_blocks OUT number,
    fs1_bytes OUT number,
    fs2_blocks OUT number,
    fs2_bytes OUT number,
    fs3_blocks OUT number,
    fs3_bytes OUT number,
    fs4_blocks OUT number,
    fs4_bytes OUT number,
    full_blocks OUT number,
    full_bytes OUT number,
    partition_name IN varchar2 DEFAULT NULL);
    Parameters
    Parameter Description
    segment_owner Schema name of the segment to be analyzed
    segment_name Name of the segment to be analyzed
    partition_name Partition name of the segment to be analyzed
    segment_type Type of the segment to be analyzed (TABLE, INDEX, or CLUSTER)
    OUTPUT ARGUMENTS
    unformatted_blocks Total number of blocks that are unformatted
    unformatted bytes Total number of bytes that are unformatted
    fs1_blocks Number of blocks that has at least 0 to 25% free space
    fs1_bytes Number of bytes that has at least 0 to 25% free space
    fs2_blocks Number of blocks that has at least 25 to 50% free space
    fs2_bytes Number of bytes that has at least 25 to 50% free space
    fs3_blocks Number of blocks that has at least 50 to 75% free space
    fs3_bytes Number of bytes that has at least 50 to 75% free space
    fs4_blocks Number of blocks that has at least 75 to 100% free space
    fs4_bytes Number of bytes that has at least 75 to 100% free space
    ful1_blocks Total number of blocks that are full in the segment
    full_bytes Total number of bytes that are full in the segment
    Summary of DBMS_SPACE Subprograms
    Example
    variable unf number;
    variable unfb number;
    variable fs1 number;
    variable fs1b number;
    variable fs2 number;
    variable fs2b number;
    variable fs3 number;
    variable fs3b number;
    variable fs4 number;
    variable fs4b number;
    variable full number;
    variable fullb number;
    begin
    dbms_space.space_usage('U1','T', 'TABLE',
    :unf, :unfb,
    :fs1, :fs1b,
    :fs2, :fs2b,
    :fs3, :fs3b,
    :fs4, :fs4b,
    :full, :fullb);
    end;
    print unf ;
    print unfb ;
    print fs4 ;
    print fs4b;
    print fs3 ;
    print fs3b;
    print fs2 ;
    print fs2b;
    print fs1 ;
    print fs1b;
    print full;
    print fullb;
    all the best
    DN

  • How to find the size of a Oracle 11g table

    I want to find the size of a table in Oracle 11g.
    I hope, my question is clear.
    Please revert with the reply to my query.
    Regards

    --- List all tables sorted by size
    set lines 100 pages 999
    col     segment_name     format a40
    col      mb           format 999,999,999
    select     segment_name
    ,     ceil(sum(bytes) / 1024 / 1024) "MB"
    from     dba_segments
    where     segment_type = 'TABLE'
    group     by segment_name
    order      by ceil(sum(bytes) / 1024 / 1024) desc
    --- List all tables owned by a user sorted by size
    set lines 100 pages 999
    col     segment_name     format a40
    col      mb           format 999,999,999
    select     segment_name
    ,     ceil(sum(bytes) / 1024 / 1024) "MB"
    from     dba_segments
    where     owner like '&user'
    and     segment_type = 'TABLE'
    group     by segment_name
    order      by ceil(sum(bytes) / 1024 / 1024) desc
    /

  • Query to find the memory of database in oracle,sql

    Hi All,
    Please let me know the query to find the memory of database in oracle,sql.
    Thanks,
    sajith

    How do I find the overall database size?
    The biggest portion of a database's size comes from the datafiles. To find out how many megabytes are allocated to ALL datafiles:
    select sum(bytes)/1024/1024 "Meg" from dba_data_files;
    To get the size of all TEMP files:
    select nvl(sum(bytes),0)/1024/1024 "Meg" from dba_temp_files;
    To get the size of the on-line redo-logs:
    select sum(bytes)/1024/1024 "Meg" from sys.v_$log;
    Putting it all together into a single query:
    select a.data_size+b.temp_size+c.redo_size "total_size"
    from ( select sum(bytes) data_size
    from dba_data_files ) a,
    ( select nvl(sum(bytes),0) temp_size
    from dba_temp_files ) b,
    ( select sum(bytes) redo_size
    from sys.v_$log ) c;
    Another query ("Free space" reports data files free space):
    col "Database Size" format a20
    col "Free space" format a20
    select round(sum(used.bytes) / 1024 / 1024 ) || ' MB' "Database Size"
    , round(free.p / 1024 / 1024) || ' MB' "Free space"
    from (select bytes from v$datafile
    union all
    select bytes from v$tempfile
    union all
    select bytes from v$log) used
    , (select sum(bytes) as p from dba_free_space) free
    group by free.p
    This is what I use :P From http://www.orafaq.com/wiki/Oracle_database_FAQ#How_do_I_find_the_overall_database_size.3F

  • Find the size of a blob in a table

    Hi,
    I have a table with a blob type column,
    How to find the size of the blob in one specific row ?
    Can it be done through a Select query ?
    Thanks.

    Dear A-K!
    Please have a look at the following example:
    conn pm/pm
    desc print_media
    SELECT dbms_lob.getlength(ad_photo)
    FROM print_media;this example is from [http://www.psoug.org/reference/dbms_lob.html].
    Yours sincerely
    Florian W.

  • FREE SPACE : To find the size of the report on INFO VIEW.

    Hello,
    We have recently started using BO XI R2.Could anybody please let us know how to find the size of reports from INFO VIEW ?
    Please find a brief of the situation we are currently encountering
    We use the web portal " INFOVIEW PROD " to access all the reports in BO. However, the all these reports are stored on the E drive of a production machine . Now the  E drive has reached 80% of its capacity and we need to free some space . We cannot delete files directly from E drive of the machine as it stores reports merely on the basis of numbers .The other option is to delete the unused reports from web portal. However , we are talking about 1000's of reports.Also , from the INFO VIEW we are not able to determine the size of the report to delete based on size and unusability.
    We would like some input on how to tackle this issue.
    Regards,
    BO USER R2

    Hello,
    Well that's really surprising to see that you have recently started using XIR2 since this is already an end of life product from SAP Business Objects.
    Well nevertheless there is an option to check these details.
    There is tool known as "Query Builder" in BOE
    The direct URL to start this is: - http://<servername>:<port>/AdminTools/querybuilder/ie.jsp
    and provide below query: -
    select SI_ID, SI_NAME,SI_FILES,SI_SIZE from CI_INFOOBJECTS where SI_KIND='Webi' Order BY SI_SIZE DESC
    SI_ID: - ID of the infoobject.
    SI_NAME: - name of the object
    Under SI_FILES you will get SI_PATH which will tell you the location from IFRS
    SI_SIZE: will tell you the size.
    But I would like to highlight one thing you need to check the instances of the document as well.
    Don't just start deleting everything, it can create more problems with the system.
    Take the backup of IFRS, OFRS and CMS DB as well.
    My reply is just to tell how you can find the webi document according to size and IFRS path
    Thanks,
    Vivek
    Edited by: Vivek Chauhan on Sep 12, 2011 1:50 PM

  • How to find the size of a database?

    I'm not an oracle dba but a report developer. I'd like to find out the size of my database.
    Is this possible using simple query?

    francislazaro wrote:
    I'm not an oracle dba but a report developer. I'd like to find out the size of my database.
    Is this possible using simple query?There are many threads related to the same topic,
    http://forums.oracle.com/forums/search.jspa?threadID=&q=How+to+find+the+size+of+a+database&objID=f61&dateRange=all&userID=&numResults=15&rankBy=10001
    HTH
    Aman....

  • How do I find the size of my JPEG photos

    I want to find the size of my JPEG photos so I know how many photos I can fit per GB on my flashdrive.
    I know that my photos are in the "all images" section, on the left side  of my "Mcintosh HD" dialogue box, a box which contains just about everything in my computer.
    I click on "all images" and then a list of all my photos show up in the dialogue box. Then I can click on a photo and it will show the photo, but not the size of the photo. I would like to know the size of my photos, ie how may MBs per photo. (Let's say I find out a typical photo I have has 2.3 MBs. Then I can divide 1000 by 2.3 and that gives me the number of photos per GB in my flash drive.)  Thanks.

    I'm using iPhoto 11 Version 9.3.2
    Highlight or open a photo. In iPhoto 11, at the bottom right there is an i/info tab.
    Selecting info should give you a window similar to this.
    As for the difference in file sizes there can be a few possibilities.
    1) you may have periodically changed the resolution settings in the camera
    2) you may have resized/scaled or edited the original photos

  • Where do I find the size of my Hard Drive in the MacBook

    I can't believe it, but I am unable to find the size of my built-in hard drive on the MacBookPro; I tried in Apple>About this Mac>More Info.. but cannot find the required info.
    Help please. Thanks. Cheers, Veit

    Open finder and look for Macintosh HD on the left sidebar. Control click it and then select "get info" Capacity and Available are listed there.
    Cheers,
    Captfred

  • Query to find the list of users having access to a particular scenario

    Hi,
    I am learning Hyperion Planning 9.2 x version. I wanted to know the query to find the list of users having access to Plan Iteration - 1 scenarion.
    As I am new to Hyperion Essbase and Hyperion Planning, I am assuming these ideas work out to get the desired result.
    1) As Hyperion Planning uses Relational DB to store the User Security information, we can query the list of users who is having access to Plan Iteration - 1 Scenario.
    I am not sure if this solution works. Please correct me If I am wrong.
    2) We can also query from the essbase editor to find out who all having access to this scenario.
    If the above is correct, can you please provide me the query.
    I am really need of this and I will be happy if any one provide the solution.
    Thanks & Regards,
    Upendra. Bestha

    Hi,
    If you are looking for some SQL to retrieve the access rights by member then you can use something like (SQL Server code though can easily be modified for Oracle)
    SELECT usr.object_name as Username,mem.object_name as Member,
    'Access Rights' = CASE acc.access_mode
    WHEN -1 THEN 'None'
    WHEN 1 THEN 'Read'
    WHEN 2 THEN 'Write'
    WHEN 3 THEN 'Write'
    ELSE 'Unknown' END,
    'Relation' = CASE acc.flags
    WHEN 0 THEN 'Member'
    WHEN 5 THEN 'Children'
    WHEN 6 THEN 'Children (inclusive)'
    WHEN 8 THEN 'Descendants'
    WHEN 9 THEN 'Descendants (inclusive)'
    ELSE 'Unknown' END
    FROM
    hsp_access_control acc, hsp_object mem, hsp_object usr
    WHERE acc.object_id = mem.object_id
    AND acc.user_id = usr.object_id
    AND mem.object_name = 'Plan Iteration - 1'
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • HT5766 Where can I find the size of a download for a software update now?

    Hello,
    Where can I find the size of a download for a software update now?
    Since I upgraded to Mountain Lion (Mac OSX 10.8.3) this information is no longer available in software updates listing you get if you click on the Software Update menu item from the Apple menu.
    I found the download size (often hundreds of megabytes for an individual update and sometimes a set of updates might amount to a few gigabytes) to be very helpful, and now that it seems no longer available (I can't even see it on the web page I came to for more information, thinking the download size would surely be specified there), it is frustrating. My current example is iTunes 11.0.3
    I would greatly appreicate having this information back in the software updates listing, but since it is no longer available there, and I don't know where else to find it, if anybody can enlighten me to its whereabouts, I'd be grateful.
    Thanks and cheers!

    stewedapples wrote:
    I would greatly appreicate having this information back in the software updates listing, ...
    You can leave Feedback for Apple here...
    http://www.apple.com/feedback/
    stewedapples wrote:
    ... I don't know where else to find it...
    http://support.apple.com/downloads/#

  • How to find the size (in Mb) of a project in Aperture 3?

    I do not know a quick way to find the size of the originals e versions in a project in Aperture 3.  Would any one know how to do this?
    Tks
    Pedro

    Take a look in the "More Like This" section in the right-hand column for discussions about this.
    The answer is: you can't.  Aperture is not so simply structured that you can select a group of Images and "weigh" them.
    If needed, your easiest solution is to export the Images as a new Library and include the Originals.  The size of that Library is more than but close to the size of the Originals and the Versions.
    HTH.

  • How can i find the size and contents of playlist created by genius?

    How can i find the size and contents of i-tunes playlist created by genius?

    Have a look at this article written by the CEO of our company (MoviMED):
    http://www.qualitymag.com/articles/91010--d-imaging-enters-the-machine-vision-world?v=preview
    What is the object you are going to be making with the CNC?  Is it a cube? Is it an intricate statue?
    Are you making an object with a CNC, or just mounting a camera to a CNC to image the object?
    www.movimed.com - Custom Imaging Solutions

Maybe you are looking for