How to determine the size of a table partition

Hello

Can anyone share please sql code that can be used to list the size of a partition table? I would appreciate it a lot.

Thank you

Scott

Version Oracle 11.2.0.1

Select
Sum(bytes/1024/1024)
Of
dba_segments
where
nom_segment = "MYTABLE";

Select
owner,
nom_segment,
nom_partition,
segment_type,
bytes / 1024/1024 "MB".
Of
dba_segments
where
nom_segment in ('SEG1', 'SEG2","SEG3");

Select
owner,
nom_segment,
nom_partition, segment_type, bytes/1024/1024 "MB"
Of
dba_segments
where
segment_type = "PARTITION TABLE";

Tags: Database

Similar Questions

  • How to determine the size of the file and the pixel of an image?

    How to determine the size of the file and the pixel of an image?

    1 MB is 2 ^ 20 bytes. It is easy to represent long:

    final long MegaByte = 1048576L; //1048576 is 2^20 and L denotes that this is a long
    if(fileConn.fileSize() > MegaByte)
    {
    do something here
    }
    
  • System tablespace allocation how oracle determines the size of the measure

    Hello

    It may be a silly question, but the I must request and obtain a few knowdge

    Assume that the allocation_type tablespace is system so how oracle determines the initial measurement and size max measure?

    Osama has provided useful links to the information you need. I'll just add with locally managed tablespace that the maximum number of spans is always unlimited even if you specify a value in the storage of declaration of establishment clause. Oracle does not take into account the value you provide and will with unlimited. I consider this unfortunate since in most cases, I know how large tables can reach and if the table extends beyond that point a developer made a mistake.

    HTH - Mark D Powell.

  • Soft pictures for Mac: how to determine the size of the image file

    Question: in the Photos for Mac, how can I determine the size of a photo or a video file

    Set-up the info panel does not include the size of the file.

    Furthermore, I don't see any place where I can do a "show in finder" to find the information in this way.

    Thank you!

    Can you not with the right button on the image file in the folder, the images are stored in, select "Get Info" and then find the size of the file in this way?

  • How to determine the size of a VARCHAR2?

    I want to determine the size of a column VARCHAR2 with PL/SQL.

    So, if I have:
        foo some_table.some_column%TYPE;
    where some_column is a VARCHAR2, how can I programatically tell how many characters will be insert in foo? I do not want to hard-code, because someone might come along and change the width of column on me later, and then my code would break. I search for a function in the SQL documentation, but fails.

    USER_TAB_COLUMNS

  • How to determine the size of the screen

    Is there a way in OS Version 4.3.0 to determine when executing what the resolution of the screen of the device on which the application is running?

    Thanks for the help.

    Take a look at the net.rim.device.api.ui.Graphics class

    To determine the size of the screen use the static methods:

    Graphics.getScreenWidth ();

    Graphics.getScreenHeight ();

    To determine the resolution of the screen in pixels per meter (PPM), use the following static methods:

    Graphics.getScreenHorizontalResolution ();

    Graphics.getScreenVerticalResolution ();

  • How to determine the size the virtual machine using the VI SDK files

    VirtualMachineFileLayout a lot of files like snapshots, configuration files, log files. I have not found any object determine the size of them, but the VI Client GUI shows the sizes of them.

    Is there a VI SDK objects that provide the size of every file?

    Thank you

    RAM

    The virtual machine, you can find warehouses of data associated with (ownership of the data store). Each data store, you can find the HostDatastoreBrowser corresponding (the property browser). HostDatastoreBrowser object, you can call SearchDatastore_Task() or SearchDatastoreSubFolders_Task.

    When you call one of the methods, a task object is returned. To the success of the task, check the property info.result of the task, the object of HostDatastoreBrowserSearchResults actual result is there. Discover the FileInfo objects - they include sizes and lately of the modified files.

    Good luck.

    Steve JIN, VMware engineering

    Creator of VI Java API: http://vijava.sf.net/

  • need help to determine the size of all tables in a table space

    Hello

    I want to know the size of individual Tables belonging to a particular Tablespace (ULTGNP), ordered by the size in MB. I have to analyze the tables before I have a discovery of the size. I tried this script, could someone please go through the script and correct it, if necessary errors.

    Select owner, segment_name, tablespace_name, sum ((bytes/1024/1024)) bytes
    of sys.dba_extents
    where owner in 'ULTGNP' and segment_type = 'TABLE '.
    Group by tablespace_name, owner, nom_segment
    order by owner, nom_tablespace, nom_segment bytes


    Thank you
    SELECT
    SUBSTR(s.segment_name,1,20) TABLE_NAME,
    SUBSTR(s.tablespace_name,1,20) TABLESPACE_NAME,
    ROUND(DECODE(s.extents, 1, s.initial_extent,
    (s.initial_extent + (s.extents-1) * s.next_extent))/1024000,2) ALLOCATED_MB,
    ROUND((t.num_rows * t.avg_row_len / 1024000),2) REQUIRED_MB
    FROM
    dba_segments s,
    dba_tables t
    WHERE
    s.owner = t.owner AND
    s.segment_name = t.table_name
    and SUBSTR(s.tablespace_name,1,20)='TABLESPACE_NAME',
    SUBSTR(s.segment_name,1,20) )='Your_table'
    
    ORDER BY s.segment_name;
    

    Published by: Adigozalov Qurban on January 25, 2011 11:08

  • How to determine the size of the binary file data set

    Hi all

    I write specific sets of data in table in a binary file, by adding each time so the file grows a set of data for each write operation.  I use the set file position function to make sure that I'm at the end of the file each time.

    When I read the file, I want to read only the last 25 data sets (or numbers).  To do this, I thought using the position set file to set the file position where it was 25 sets of data from the end.  Math easy, right?  Apparently not.

    Well, as I was collecting data file size as I began the initial tet run, I find the size of the file (using file order size and get number of bytes so) as the size increases the same amount every time.  My size and the format of my data being written is the same every time, a series of four numbers double precision.

    I get increments are as follows, after the first write - 44 bytes, after 2nd - 52 bytes, 3 - 52 bytes, bytes 44 4th, 5th - 52 bytes, 6 - 52 bytes, 7th - 44 bytes and it seems to continue this trend in the future.

    Why each write operation would be identical in size of bytes.  This means that my basic math for the determination of the poistion of correct file to read only the last 25 sets of data won't be easy, and if somewhere along the line after I've accumulated hundreds or thousands of data sets, what happens if the model changes.

    Any help on why this occurs or on a working method, all about the problem would be much appreciated.

    Thank you

    Doug


  • How to find the size of a table with CLOB

    Hello

    I have a table with CLOB as follows:

    SQL > desc INFO_MESSAGES

    Name                                      Null?    Type

    ----------------------------------------- -------- ----------------------------

    CLNT_OID NOT NULL VARCHAR2 (16)

    USR_OID NOT NULL VARCHAR2 (16)

    LAST_client_msg_ID VARCHAR2 (36)

    LAST_client_msg_DATE DATE

    LAST_client_msg CLOB

    LAST_USR_MSG_BOD_ID VARCHAR2 (36)

    DATE OF LAST_USR_MSG_DATE

    CLOB LAST_USR_MSG

    Now I just want to find out what is the size/area total absorbed by the table (including the CLOB columns), so how can I find? I think that the usual command does not - the

    Select format from dba_segments where nom_segment = "INFO_MESSAGES" is only showing 7 MB, while I think that the table has several GB of space due to the CLOB.

    Also to add one more detail: when dba_segments seeking, I see a result like this:

    Select * of dba_segments order by bytes DESC;

    MIGRTN SYS_LOB0000111131C00008$ $ LOBSEGMENT SAMS DATA1 20690 6 1963 14528000 119013376000 <-the top row

    MIGRTN this is the schema where this INFO_MESSAGES table is present.

    Thanks,

    OrauserN

    you will need to add the segment_size of the LOB segments to the segment_size of the table. The connection between the two pieces of information you find in USER_LOBS (or the corresponding ALL_, DBA_ objects).

  • How to determine the "size of extraction" application?

    Hi all.

    The BP is 11.2.0.3 on a linux machine.

    I would like to know the size of 'extraction' of an application, but I wasn't able to find any related meteris in v$ statname.

    The configuration of the application is invisible to me.

    Do I need to do some calculations based on statistical v measurement $ statname?

    If so, what meteris should consider the hypothesis of "size of extraction?

    The following is from manual, but the application configuration is invisible to me.
    
    http://docs.oracle.com/cd/E11882_01/java.112/e16548/resltset.htm#i1023619
    
    Setting the Fetch Size
    The following methods are available in all Statement, PreparedStatement, CallableStatement, and ResultSet objects for setting and getting the fetch size:
    
    •void setFetchSize(int rows) throws SQLException
    
    •int getFetchSize() throws SQLException
    Thanks in advance.
    Best regards.

    Hello.

    Produce a trace for a session of the sample file and have a look through it for lines like

    FETCH #n, c =, e = r =

    R = entry will display the number of rows returned for each extraction. If you make several extractions to get your full value at the time line, you will see a number of these lines with the same r = value .

    I'm sure there is an easier way, but this is the first in mind.

  • Find the size of a table with partitions; Two questions

    DB version: 11.2.0.4

    Platform: Oracle Linux 6.4

    The slot table MH_PKT_HEADR in UTMSBL schema has more than 5000 partitions.

    Because there partitions, you cannot use just view DBA_SEGMENTS to determine the size of the table.

    So, I tried to use 2 SQLs mentioned below. Query1 returned 5 GB. But Query2 has returned a value zero. Query2 is actually a note metalink mentioned below, so he cannot deceive you, I guess.

    That is the reliable accurate query: Query1 or Query2?

    No idea why Query2 returns a Null value?

    - Query1

    fixed lines 200

    Col TABLE_NAME format a18

    with

    BaseData as)

    Select the owner

    nom_segment

    segment_type

    , round (sum (bytes) / 1024/1024/1024) GB

    sum (bytes) bytes

    count (*) segment_count

    of s dba_segments

    Group by owner, nom_segment, segment_type

    )

    ,

    LOB type as data)

    Select the owner

    table_name

    nom_segment

    of dba_lobs

    )

    ,

    all_segs like)

    Select coalesce (lobs.table_name, basedata.segment_name) table_name

    basedata.*

    of basedata

    left outer join

    type LOB data

    on (basedata.segment_name = lobs.segment_name

    and basedata.owner = lobs.owner)

    )

    Select table_name

    sum (bytes) bytes

    sum (gb) GB

    of all_segs

    where table_name = 'MH_PKT_HEADR'.

    and owner = 'UTMSBL. '

    Table_name group;

    TABLE_NAME BYTES GB

    ------------------ ---------- ----------

    5869469696 5 MH_PKT_HEADR

    - Request 2

    -Source: how to calculate the size of a Table that contains outline CLOB and BLOB (Doc ID 118531.1()

    SELECT

    (SELECT SUM (S.BYTES) - the Segment of Table size

    FROM DBA_SEGMENTS S

    WHERE S.OWNER = UPPER ('UTMSBL') AND

    (S.SEGMENT_NAME = UPPER ('MH_PKT_HEADR'))) +

    (SELECT SUM (S.BYTES) - the size of the Lob Segment

    FROM DBA_SEGMENTS S, DBA_LOBS L

    WHERE S.OWNER = UPPER ('UTMSBL') AND

    (L.SEGMENT_NAME = S.SEGMENT_NAME AND L.TABLE_NAME = UPPER('MH_PKT_HEADR') AND L.OWNER = UPPER('UTMSBL'))) +

    (SELECT SUM (S.BYTES) - the size of the Lob Index

    FROM DBA_SEGMENTS S, DBA_INDEXES I

    WHERE S.OWNER = UPPER ('UTMSBL') AND

    (I.INDEX_NAME = S.SEGMENT_NAME AND I.TABLE_NAME = UPPER('MH_PKT_HEADR') AND INDEX_TYPE = 'LOB' AND I.OWNER = UPPER('UTMSBL')))

    "TOTAL TABLE SIZE.

    FROM DUAL;

    TOTAL TABLE SIZE

    ----------------

    SELECT

    (SELECT nvl (SUM (S.BYTES), 0)-dimensions of the Segment Table)

    FROM DBA_SEGMENTS S

    WHERE S.OWNER = UPPER ('UTMSBL') AND

    (S.SEGMENT_NAME = UPPER ('MH_PKT_HEADR'))) +

    (SELECT nvl (SUM (S.BYTES), 0)-Segment Lob size)

    FROM DBA_SEGMENTS S, DBA_LOBS L

    WHERE S.OWNER = UPPER ('UTMSBL') AND

    (L.SEGMENT_NAME = S.SEGMENT_NAME AND L.TABLE_NAME = UPPER('MH_PKT_HEADR') AND L.OWNER = UPPER('UTMSBL'))) +

    (SELECT nvl (SUM (S.BYTES), 0)-size of the Lob Index)

    FROM DBA_SEGMENTS S, DBA_INDEXES I

    WHERE S.OWNER = UPPER ('UTMSBL') AND

    (I.INDEX_NAME = S.SEGMENT_NAME AND I.TABLE_NAME = UPPER('MH_PKT_HEADR') AND INDEX_TYPE = 'LOB' AND I.OWNER = UPPER('UTMSBL')))

    "TOTAL TABLE SIZE.

    FROM DUAL;

    David Fitzjarrell

  • Installation on RHEL 5.4 11.2.0.1.0 (64-bit) &gt; how to determine the shmmax

    Hi, everyone-

    I try to install on RHEL 5.4 11.2.0.1.0 (64-bit). I have a total of 46G of memory.

    It is said that in the Oracle documentation:
    "The minimum required value for shmmax is 0.5 GB. However, Oracle recommends to set the value of shmmax 2.0 GB for optimal performance of the system. ».

    In the other docs it says it should be 50% of the total memory.

    Please advise!

    If you have access to the Support of Oracle, see notes

    Semaphores and shared memory - an overview [ID 153961.1]
    How to determine the size of the SGA (7.x, 8.x, 9.x, 10g) [ID 1008866.6]

  • How can I determine the size of the files and photo albums?

    How can I determine the size of the files and photo albums?

    It is not really in any way, nor is it necessary-what you trying to accomplish?

    LN

  • How to find the size of the table?

    Hi all

    Can anyone suggest how to find the size of the table? I had a few (15272 selected lines) on the name of "CMPT_" How can I check only 'CMPT_' size tables?





    Please someone help give the SQL query to run.


    Thanks in advance.


    Vincent

    madala03 wrote:

    Hi thanks for the reply

    I'm out like below

    SUM(BYTES/1024/1024)

    --------------------

    25383.25

    But how to check all the name of tables CMPT and their sizes?

    Select nom_segment, dba_Segments sum(bytes/1024/1024) where nom_segment like ' % CMPT GROUP BY nom_segment;

Maybe you are looking for