How to get the size of the table

Hi All,
How to get the size of the table in Oracle 10g?
Is there any script which needs to be run?
Regards,
Apoorv

Hi All,
Sorry but somehow the table user_segments is not populated in my case. But we have another table SYS.ALL_TABLES whose structure is given below. Would I be able to calculate the table size based on the columns given below:
ColumnName     Data Type
OWNER     VARCHAR2 (30 Byte)
TABLE_NAME     VARCHAR2 (30 Byte)
TABLESPACE_NAME     VARCHAR2 (30 Byte)
CLUSTER_NAME     VARCHAR2 (30 Byte)
IOT_NAME     VARCHAR2 (30 Byte)
STATUS     VARCHAR2 (8 Byte)
PCT_FREE     NUMBER
PCT_USED     NUMBER
INI_TRANS     NUMBER
MAX_TRANS     NUMBER
INITIAL_EXTENT     NUMBER
NEXT_EXTENT     NUMBER
MIN_EXTENTS     NUMBER
MAX_EXTENTS     NUMBER
PCT_INCREASE     NUMBER
FREELISTS     NUMBER
FREELIST_GROUPS     NUMBER
LOGGING     VARCHAR2 (3 Byte)
BACKED_UP     VARCHAR2 (1 Byte)
NUM_ROWS     NUMBER
BLOCKS     NUMBER
EMPTY_BLOCKS     NUMBER
AVG_SPACE     NUMBER
CHAIN_CNT     NUMBER
AVG_ROW_LEN     NUMBER
AVG_SPACE_FREELIST_BLOCKS     NUMBER
NUM_FREELIST_BLOCKS     NUMBER
DEGREE     VARCHAR2 (10 Byte)
INSTANCES     VARCHAR2 (10 Byte)
CACHE     VARCHAR2 (5 Byte)
TABLE_LOCK     VARCHAR2 (8 Byte)
SAMPLE_SIZE     NUMBER
LAST_ANALYZED     DATE
PARTITIONED     VARCHAR2 (3 Byte)
IOT_TYPE     VARCHAR2 (12 Byte)
TEMPORARY     VARCHAR2 (1 Byte)
SECONDARY     VARCHAR2 (1 Byte)
NESTED     VARCHAR2 (3 Byte)
BUFFER_POOL     VARCHAR2 (7 Byte)
ROW_MOVEMENT     VARCHAR2 (8 Byte)
GLOBAL_STATS     VARCHAR2 (3 Byte)
USER_STATS     VARCHAR2 (3 Byte)
DURATION     VARCHAR2 (15 Byte)
SKIP_CORRUPT     VARCHAR2 (8 Byte)
MONITORING     VARCHAR2 (3 Byte)
CLUSTER_OWNER     VARCHAR2 (30 Byte)
DEPENDENCIES     VARCHAR2 (8 Byte)
COMPRESSION     VARCHAR2 (8 Byte)
DROPPED     VARCHAR2 (3 Byte)

Similar Messages

  • How to get real size of the JLable with wrapped text

    Hello all,
    I have a JLable, which should display error message or some tips to the user. Text can have different length. Something like this:
    jlblText.setText("<html><body>Error. Please do this and that. </body></html>")
    view.pack();The lable is on the top of the JDialog.
    If user typed wrong data, an error message will be displayed in the lable. If the text is too long, jlable will be wrapped. JDialog should also adjust it's size, so I use pack().
    In this case nothing happens. I wanted to get the height of the component and to increase the size of the JDialog, but
    System.out.println("height = "+view.jlblText().getHeight());returns the same result all time. No matter whether the lable contains 20 lines or just some words.
    Is it possible to automatically adjust the size of the JDialog, if the size of the JLable is changed?
    In this case I can't use JScrollPane.
    Thanks in advance.

    component listener solved the problem.
    Try something like:
    label.setText(....);
    SwingUtilities.invokeLater(new Runnable()
         public void run()
              frame.pack();
    This construction didn't do the trick. I tryed to invoke this.pack() of my JDialog in a run method.
    I am still wonder, why only the component listener get the right (actual) value, and the getHeight() method called after the setText method returns the old value.

  • How can I know the size of DB Table

    Hi, Guys,
    1. How can I know the size of the DB Table in terms of kb
    2. If I delete some records from the Table, does the actual size of the Table remains  same or will it be reduced.
    3. If size remains same after deletion, how to reduce the size ( i.e. occupied space).
    thanks
    Mahesh

    Hi
    1. How can I know the size of the DB Table in terms of kb
    There is no precise method/tcode/program to know the Table size of a tables.
    Just based on the record size of a table(say for example 2kb), and if 200 records are there then, we roughly assume that it occupied 400 kb.
    All the tables are stored in Table spaces.
    2. If I delete some records from the Table, does the actual size of the Table remains same or will it be reduced.
    Time being it remains same. it won't get reduced immediately
    during some next DB reorganisation it gets reorganised by reducing it.
    3. If size remains same after deletion, how to reduce the size ( i.e. occupied space).
    during next DB reorganisation it gets reorganised by reducing it.
    Reward points if useful
    Regards
    Anji

  • Get the size of the table as per row wise.( Rows in group by clause)

    Hello,
    I am using ORACLE 11g Standard edition and RHEL 4.
    I have a situation in which i want to know the size of the limited rows of the table.
    I am moving table's rows from one table(one tablespace) to another table(another tablespace) While moving the rows I want to be sure that the size of the rows is good enough to fit in the another table's tablespace free size. So before inserting rows in another table i will check the size of rows and the free space in tablespace and perform the action as per.
    Here is the senario with example :-
    I have a table called MAIN_TAB which has a column as DATE_TIME which stores the systimestamp when the data was inserted. See the code below ...
    select * from main_tab;
    ID     VALUE DATE_TIME
    1     DATA      18-MAY-11 12.00.00.000000000 AM
    2     DATA      18-MAY-11 12.00.00.000000000 AM
    3     DATA      17-MAY-11 12.00.00.000000000 AM
    4     DATA      17-MAY-11 12.00.00.000000000 AM Now i will fire a group by date_time query to know how many rows for each systimestamp.
    select trunc(date_time),count(id)
    from MAIN_TAB
    group by trunc(date_time)
    DATE_TIME     COUNT(ID)
    17-MAY-11               2
    18-MAY-11               2So now you can see i have 2 rows for 17th and 18th May. I want to know what is the size of the data for 17th and 18th May in MB. I know how to get the size of the whole table but i want only the limited rows size as per date.
    So the question is how can i get the size of a table's 2 rows data ???
    Provide me some guidance.
    If the question is not clear to you , let me know ....
    Thanks in advance ...

    Thanks Pravan for your reply. But Its still not so usefull for me. Can you please give some clear idea about what you wanna say ??
    I fired the DBA_TABLES view for my table i.e. 'MAIN_TAB' The AGV_ROW_LEN column showed 0 but that does not mean that my table has no data it, for sure it has 4 rows in it and consists of some data . . . . .
    Please clarify what i can do to get the size of rows related to that particular date ......
    thanks.

  • How to Increase the size of the table?

    Hi All:
    I'm a newbie and i'm trying to understand how can I increase or set the size of the table. I want to display all the columns and rows of the table but for doing that I understand that the size of the tbale has to be increased . The following is the warning I would get when looking at the database. How can I get over it. Any suggestions?
    The table GOESDBA.SAT_PARAM_VALUES contains more than 2000 rows. Displaying all the columns and rows of the table could be time-consuming.
    best,
    Sri

    I'm migrating the database from Oracle to MySQL through a migration kit.I don't know anything about MySQL or your migration kit (this is an Oracle forum after all).
    Is there some way that the size of the table can be increased on the oracle sideBut this doesn't make sense anyway. What you're saying is that the table is too large. So why would you want to make it larger?

  • How to get the size of the doc in XMLType

    Hi,
    I am using BFile to get an XML document into a table with an XMLType field. To get the content back out through COM I need to specify the size of the content to be returned. Is there a query I can run or function to call that will provide me with the size of the data? Its a 9.2 DB on NT.
    Thanks in advance for your help.
    Mike
    [email protected]

    Custom painting should be done in the paintComponent(...) method of the component. The is known at that time.
    Read the Swing tutorial on "Custom Painting":
    http://java.sun.com/docs/books/tutorial/uiswing/painting/index.html

  • How to get the size of the cuurrent illustration

    Sorry, I made a mistake before this one. The questios is this: can anybody tell me how can I get the size of the current illustration, (as oposed to the page size) in points. Something like 120 points wide and 87 points High?. What function do I need to call?

    From AI Function reference (included with CS2 SDK):
    AIDocumentSetup setup;
    error = sDocument->GetDocumentSetup(&setup);
    if (error) goto processError;
    writeDocumentSetup( &setup );
    The AIDocumentSetup record returns the following information:
    typedef struct {
    AIReal width, height;
    AIBoolean showPlacedImages;
    short pageView;
    AIReal outputResolution;
    AIBoolean splitLongPaths;
    AIBoolean useDefaultScreen;
    AIBoolean compatibleGradients;
    AIBoolean printTiles;
    AIBoolean tileFullPages;
    } AIDocumentSetup;

  • How to get the size of the webpage?

    I am designing a program to
    analyse the webpage content.
    wondering how to get the size of
    the webpage including its image's
    size and etc. Thanks in advance.

    As i know , the getContentLength just return
    then number of characters of its HTML code.
    By knowing the length of the HTML code, is
    not possible for me to calculate its download
    time... i wonder is there any way to get the
    total size of the page including its image size,
    applet size, and etc... Thanks : )

  • How to get the size of the file

    Hi All,
    I want to get the size of the file in terms of bytes. I used the following code it returns the value in long how can get it in bytes
    import java.io.File;
    public class ServerBackupCheck {
         public static void main(String args[]){
              File f = new File("C:/Program Files/Apache Software Foundation/Tomcat 5.5");
              System.out.println(f.isDirectory());
              System.out.println(f.getTotalSpace());
    output:
    true
    20964163584
    regards,
    Maheshwaran Devaraj

    if it is a folder you can use this recursive algorithm
    public static long recurse(File f) throws IOException
              long bytes = 0;
              File files[] = f.listFiles();
              for(int i =0 ;i<files.length;i++)
                   File file = files ;
                   if(file.isFile())
                        FileInputStream fis = new FileInputStream(file);
                        byte[] by = new byte[fis.available()];
                        fis.read(by);
                        bytes = bytes + by.length;
                   if(file.isDirectory())
                        bytes = bytes + recurse(file);
              return bytes;
    System.out.println(recurse(f));  gives you the total bytes....
    Ayberk Cansever ..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to get the size of the blob file uploaded ?

    Hi ,
    Is there anyway to get the size of the file i have uploaded to a blob type attribute ?
    What i can see is that when we upload a file in contributor UI ,once the file is uploaded successfully and if we hover on it , it will show the filename , type and size of the uploaded file .
    From where can we get that details so that we can reuse these details in our code ?
    Thanks and Regards,
    Praveen

    A filter is a sensible solution, or you can get it in a roundabout way like this for example if you have the blobid (this is paraphrased from OpenMarket/Gator/AttributeTypes/IMAGEPICKERShowImages.jsp):
    <ics:sql sql='<%="select urldata,filevalue from MungoBlobs where id=" + ics.GetVar("blobid")%>' listname="blobdata" table="MungoBlobs" />
    <ics:listget listname="blobdata" fieldname="urldata" output="urldata" />
    <ics:setvar name="blobpath" value='<%=ics.GetProperty("cc.urlattrpath", "gator.ini", true) + ics.GetVar("urldata")%>' />
    <%
    File blobFile = new File(ics.GetVar("blobpath"));
    long length = blobFile.length();
    %>
    Phil
    Message was edited by: pgleghorn

  • I have a question about the new version of itunes. in the old version at the bottom of the sceen it display the total number of media and the size of the files. how can i get the new version to diplay this?

    in the old version at the bottom of the sceen it displayed the total number of media and the size of the files. how can i get the new version to diplay this?

    You're welcome. It was frustrating for me as well until I stumbled across "the fix"

  • Browser oppen and minimize fine but webpages do not. how do i get it to open to the size of the browser and stay that way with out zooming all the time

    I can not get a webpage to stay the size of the browser with out zooming in every time i go to a web page. With out zooming it just stay small with white on both sides. How do i get it to stay the size of the browser and stay that way Have no trouble with my internet explorer doing this on my new computer. or fire fox on my old computer.

    You can use an extension to set a default font size and page zoom on web pages:
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • How to find the size of a Table

    Dear all,
    How can i find the size of a table in a schema and size of the schema also.
    Thanks
    Mahi

    Try out with the help of this package, which will give out the total bytes, unused bytes, calculate the free bytes from total byes-unused bytes.
    dbms_space.unused_space(
    upper(oname),upper(tbname),upper('TABLE'),
    total_blocks, total_bytes,
    unused_blocks, unused_bytes,
    last_used_extent_file_id ,
    last_used_extent_block_id,
    last_used_block
    );

  • How to get to know the size of the biggest file in ContentServer

    Dear colleagues!
    Does anybody knows how to get to know the size of the biggest file in the ContentServer?
    Vladimir
    Edited by: Vladimir Pavlovsky on Mar 2, 2010 11:11 AM

    Vladimir Pavlovsky wrote:>
    > Dear colleagues!
    > Does anybody knows how to get to know the size of the biggest file in the ContentServer?
    Hi Vladimir,
    I assume you want to know the size of the biggest file stored in the content server don't you?
    This information is available through the content server API layer only - so better open this question in the knowlegde management forum.
    regards,
    Lars

  • If I access the website of Cebu Pacific I get as reply upon entering a search request "HTTP Error 400. The size of the request headers is too long.", but if i use private browsing i do not get this reply. How do i resolve that?

    If I access the website of Cebu Pacific Air I get as reply upon entering a search request "HTTP Error 400. The size of the request headers is too long.", but if i use private browsing i do not get this reply. This refers to Firefox 5.0 on ubuntu 11.04
    I have tried to resolve this through deleting history and the cookies, but i always get the same reply. Although if i use firefox (ubuntu) private browsing or Firefox on Windows 7 i do not get this error message.
    What causes this error and how do i resolve this?

    Copied from the link mentioned below.
    ''That is usually a problem with corrupted cookies. Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies" ''
    https://support.mozilla.com/en-US/questions/785186?s=http+error+400&as=s
    Check and tell if its working.

Maybe you are looking for