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.

Similar Messages

  • 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

  • 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 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 can we find the size or dimensions of an object by interfacing an smart camera to the ni labview

    I am right now doing a project on automation of a CNC were i need to find the dimensions of an object in 3 dimension. I don't know exactly weather to use IMAQ tool... if so how to use the tool instead....
    pls provide sufficient information.

    arunrajrajasekar wrote:
    I am right now doing a project on automation of a CNC were i need to find the dimensions of an object in 3 dimension. I don't know exactly weather to use IMAQ tool... if so how to use the tool instead....
    pls provide sufficient information.
    Hi Anurag,
    You may want to post this query to Machine Vision Board, and then you'll gain the probability of getting good solutions.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • 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 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
    /

  • 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

  • How to find the size of an arrayList through Expression Builder.

    Hai OTN,
    How to find the size of an arrayList through Expression. I have a managed bean in View Scope.I am using Jdeveloper 11.1.1.2 with ADF Faces components.
    Managed Bean :
    ArrayList<IllnessEmployeesObj> employeeGridList =
    new ArrayList<IllnessEmployeesObj>();
    JSPX :
    Value="#{viewScope.PandIVH.employeeGridList.size}"
    Error : java.lang.NumberFormatException: For input string: "size"

    Hi Dinil,
    I have provided you with a sample that would show you the how you can get the size of an arraylist
    the sample has a page untitled1 and a bean named test.
    I have run in on jdev 11.1.2 and it is ok, it will be ok on 11.1.3
    after running the sample you will see the 2.
    please remember that you must add the JSTL taglib on the viewcontroller.
    just right click on viewcontroller, go to tag lib select the jstl.
    page
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>untitled1</title>
    </head>
    <body>
    <h:form>
    <h:outputText value="#{fn:length(test.a)}"/>
    </h:form>
    </body>
    </html>
    </f:view>
    bean
    import java.util.ArrayList;
    public class Test {
    public Test() {
    a= new ArrayList();
    Object o=new Object();
    a.add(o);
    a.add(o);
    ArrayList a;
    public void setA(ArrayList a) {
    this.a = a;
    public ArrayList getA() {
    return a;
    I hope this sample came handy.
    regards,

  • 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.

  • 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....

  • Nternal ERROR: Can not find the ACL containter for object ...

    We are using OWB 10.2.0.3. We tried to introduce two basic roles to prevent user A from accessing certain parts of our project. Somehow (I cannot really say how) we ended up in the error message below whenever we want to modify the security properties of an object.
    Neither in metalink nor in the oracle forums I could find any hint about that error.
    Can anyone help??
    Thanks in advance, Maren
    Internal ERROR: Can not find the ACL containter for object:CMPMap@1ba11bc/id=2023180/owningFCO=2023180/proxyFor=(CMPMapGen@1a4d5c6/id=2023180/stname=CMPBatchMap/pname=LOAD_XML/lname=LOAD_XML/status=CLEAN/committed=true/persistent=true/propsLoaded=false)
    Internal ERROR: Can not find the ACL containter for object:CMPMap@1ba11bc/id=2023180/owningFCO=2023180/proxyFor=(CMPMapGen@1a4d5c6/id=2023180/stname=CMPBatchMap/pname=LOAD_XML/lname=LOAD_XML/status=CLEAN/committed=true/persistent=true/propsLoaded=false)
         at oracle.wh.repos.pdl.security.SecurityPolicyManager.getAccessCharMapOfPrivilegeOwner(SecurityPolicyManager.java:166)
         at oracle.wh.repos.impl.foundation.CMPElement.getAccessCharMapOfPrivilegeOwner(CMPElement.java:2743)
         at oracle.wh.repos.pdl.security.OWBSecurityImpl.hasPrivilege(OWBSecurityImpl.java:820)
         at oracle.wh.repos.pdl.security.OWBSecurityImpl.internalSecurityCheck(OWBSecurityImpl.java:1449)
         at oracle.wh.repos.pdl.security.OWBSecurityImpl.securityCheck(OWBSecurityImpl.java:649)
         at oracle.wh.repos.pdl.security.SecurityModuleImpl.securityCheck(SecurityModuleImpl.java:660)
         at oracle.wh.repos.pdl.security.SecurityModuleImpl.securityCheck(SecurityModuleImpl.java:623)
         at oracle.wh.ui.common.WhSecurityHelper.securityCheck(WhSecurityHelper.java:112)
         at oracle.wh.ui.console.commands.EditObjectCmd.performAction(EditObjectCmd.java:107)
         at oracle.wh.ui.console.commands.TreeMenuHandler$1.run(TreeMenuHandler.java:188)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:189)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:478)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    Hi Maren
    Like you I get this error and do not know what steps caused it.In my scenario I have some mappings that give the error and some that do not - the repository user gets the error but the repository owner does not.
    Thinking back over the last number of months (as this project contains 7-8 months od work - we do have exports of the project) I think the ones giving the error are those that perhaps were copied from another to start the coding but I cannot be sure.
    I have read the metalink note mentioned above as well as the the queries posted by Oleg and yourself. The queries posted are slightly different, one has a where clause
    fco.classname = 'CMPACLContainer' (Maren's)
    and the other
    fco.classname='CMPMap' (Oleg's).
    Was this intentional Maren on your behalf for your problem to be fixed?
    We are using 10.2.0.3.33 OWB client and 10.2.0.3.0 OWB repository.
    Thanks
    Edwin

  • 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

Maybe you are looking for