To know the size of multiple tables

Hi Oracle Dons:
I need to check the size of multiple tables via a SQL query. The way I would do this for a single table is
select bytes from dba_segments where segment_name='table_name';
But I need to do this for about 4 dozen tables.
Can someone point me along the right corridor?
Thanks.
RHLE 5
11.2.0.1

If you want separate sizes by table and type of segment:
select segment_name,segment_type,sum(bytes)
  from dba_segments
where segment_name in ('TABLE1','TABLE2','TABLE3')
group by segment_name,segment_type;If you want the total and don't care about individual sizes or types of segments
select sum(bytes)
  from dba_segments
where segment_name in ('TABLE1','TABLE2','TABLE3');

Similar Messages

  • 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

  • How to know the size of a table by using sql command?

    i've got a question that i hope to know a table size by using sqlcommand?
    what to do?
    thanks in advice,

    Select sum(bytes) bytes, sum(blocks) blocks
    from dba_segments
    where segment_name = 'YOUR_TABLE';This will give you the space in the database allocated to the table. If you want to know the actual space it takes up then you'll have to analyze the table and interrogate the stats using DBA_TABLES.
    APC

  • How to know the size of a DATABASE ?

    Guys,
    How to know the size of a DB ?
    Also
    How to know the size of a TABLE ?
    How to get the content of a procedure/view/trigger ?
    Inputs are welcome !

    How to know the size of a DB ?If you want to know the physical size, query dba_data_files + dba_temp_files. if you need to know the actual consumed space in those files, compute sum of bytes from DBA_SEGMENTS.
    How to know the size of a TABLE ?Query all/dba/user_segments.
    How to get the content of a procedure/view/trigger ?all/dba/user_source, all/dba/user_views, all/dba/user_triggers.
    Message was edited by:
    Satish Kandi

  • How to know the size of a webservice request

    Hello...
    I'd like to know if you know how do I get the size of a Web request? I mean, I need to know the size of a Web Request 'cause I'll fill a Gauge Object up based on the quantity that I have received from the WebService.
    I'm using the KSOAP and KXML API's for consuming that WebServices and I used the Content-lengh Method and it didnt return anything to me... it returned empty. So, do you know how do I fill a Gauge Object based on the size of the WebRequest? Could you tell me some examples plz?
    Thanx...
    Lucas Abrao

    How to know the size of a DB ?If you want to know the physical size, query dba_data_files + dba_temp_files. if you need to know the actual consumed space in those files, compute sum of bytes from DBA_SEGMENTS.
    How to know the size of a TABLE ?Query all/dba/user_segments.
    How to get the content of a procedure/view/trigger ?all/dba/user_source, all/dba/user_views, all/dba/user_triggers.
    Message was edited by:
    Satish Kandi

  • How to know the size of data in some columns of a table?

    Hi,
    How can the size of of data for some specified column be determined?
    For example : TableA has 20 columns and the size of table is 20 GB. I want to know the size of data kept in last four columns.
    Thanks in Advance,
    Vishu

    You could use vsize to determine the size of a column element and sum them upselect sum(vsize(column_of_interest)) from whatever_table;

  • How to know the size of bad sector block after zero out erase?

    I found some problems on my USB external harddisk recently. After I backup all the files, I erased the whole volume by choosing "zero out data" option. According to some web articles, "zero out" detects and marks those bad sectors to avoid further read/write action on the damaged area.
    My question is that how can I know the size of disk space marked as bad sector? Because I can only see how many space is used or available when I check a disk in disk utility. There are about 600MB used for my 1TB hard drive. I guess there is some storage used by spotlight or other hidden files. But I have no idea for how many MB is occupied by bad sector...

    Yes you can look at see the original number of spares, the number used, and the number remaining spares.
    Disk Warrior for one, writes the SMART data to system.log Other programs can also read and report (not sure which if any write to system.log though) those field values from SMART table entries.
    IF the number of spares is declining, time to replace. Trouble is OS X hasn't had a good record of reporting I/O errors, let alone remapping. Some 3rd party utilities will. I've found the vendor (WD, Hitachi etc) have the best utility for their own drives, but those are Windows programs or LinuxCD. Also the best way to zero and map out bad sectors, too.

  • How can we know the size of the partition

    HI,
    can any one give me a query or procedure to know the size of a partition in a table in bytes
    Thanks in advance

    user8884944 wrote:
    HI,
    can any one give me a query or procedure to know the size of a partition in a table in bytes
    Thanks in advanceQuery dba_segments
    select bytes, segment_name, partition_name from dba_segments
    where segment_name = 'Table_name' and partition_name = 'Name of partition'
    and owner = 'Owner'Regards
    Anurag

  • I want to know the size of of database

    hi, iam using HP-UX with oracle10G so that, i want to know the size of of database in my system, for that i can use the follwing queries is this is correct or not?
    1. select sum(bytes) as total_size from dba_data_files;
    ANS is:
    TOTAL_SIZE
    29718740992
    2.select sum(bytes) as free_size from dba_free_space;
    ANS is:
    FREE_SIZE
    6940393472
    3. select sum(bytes) as used_size from dba_segments;
    ANS is:
    USED_SIZE
    25215827968
    i GOT like this iam not getting is this TOTAL size is 28 GB?????????????
    4.select * from DBA_FREE_SPACE_COALESCED;
    ANS for this ????????????????
    please help me anyone......

    i want to know the size of of database in my systemDefine "size":
    - The total size of the dbf files?
    - The total data space used?
    - The total tablespace size?
    For example, this show the size of a single table, in meg:
    select
    segment_name table_name,
    sum(bytes)/(1024*1024) table_size_meg
    from
    user_extents
    where
    segment_type='TABLE'
    and
    segment_name = 'MYTAB' ;
    Mike Ault has a script collection that measures all possible ways to measure database size:
    http://www.oracle-script.com
    Hope this helps. . .
    Don Burleson
    Oracle Press author
    Author of “Oracle Tuning: The Definitive Reference”
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

  • How to know the size in byte of a file before importing it with ftp

    hello
    i have a file in witch there is the pathe of many file
    i reade these path and i use ftp to get these file
    my problem is that i want to display a progress bar during the getting of file
    so dont no how i can know the size of these file to put a maximum to the progress bar

    package cni;
    import javax.swing.*;
    import sun.net.ftp.*;
    import sun.net.ftp.FtpClient.*;
    import java.io.*;
    import java.lang.*;
    import sun.net.TelnetInputStream;
    import java.util.*;
    import java.lang.String;
    public class FTPclients
    //Variables
    private static String server = "faycal";
    private static int port = 21;
    private static String user = "anonymous";
    private static String passwd = "[email protected]";
    public String toString(JTextField tx)
    String txt;
    txt= new String(tx.getText());
    return txt;
    public static void main(String args[])
    ConnFile cf = new ConnFile("d:\\cni\\adresse.txt");
    FTPclients fc = new FTPclients();
    ConnFile cfbis = new ConnFile("d:\\cni\\chemin.txt");
    try
    //String s=cf.lectureid();
    String s;
    while((s=cf.br.readLine())!=null)
    String s1=s.substring(0,s.lastIndexOf("\\"));
    String s2=s.substring(s.lastIndexOf("\\")+1);
    System.out.println(s1);
    System.out.println(s2);
    //ajout du double anti slash a la chaine s1
    String name =s1;
    StringBuffer sb = new StringBuffer(s1.length()+10);
    for(int index=0; index<s1.length();index++)
    char c = s1.charAt(index);
    sb.append(c);
    if(c=='\\')
    sb.append('\\');
    System.out.println(s1);
    s1= sb.toString();
    System.out.println(s1);
    //creation d un client ftp
    FtpClient client = new FtpClient();
    System.out.println("gggggggggggggalut");
    client.openServer(server,port);
    System.out.println("xxxxxxxxxxxxalut");
    client.login(user, passwd);
    client.binary();
    client.cd(s1);
    System.out.println("la taille de "+s1+" est "+taille+" octets");
    System.out.println("ssssssssssssalut");
    System.out.println(client.welcomeMsg);
    System.out.println("buhhhhhhhhhhhhh");
    //copie du chemin saisi par l utilisateur
    String chemre;
    cfbis = new ConnFile("d:\\cni\\chemin.txt");
    String chemvir = cfbis.lectureid();
    System.out.println(chemvir);
    if (chemvir==null)
    chemre="d:\\";
    System.out.println(chemre);
    else
    chemre=chemvir;
    System.out.println(chemre);
    String chem=chemre+"\\"+s2;
    System.out.println(chem);
    //pour creer le nouveau fichier
    TelnetInputStream fich = client.get(s2);
    FileOutputStream out = new FileOutputStream(chem);
    //pour ecrire dans le nouveau fichier
    int i;
    while(true)
    i = fich.read();
    if(i == -1)
    { break; }
    out.write((byte)i);
    System.out.println("bahhhhhhhhhhhh");
    //fermeture du serveur ftp
    client.closeServer();
    System.out.println("ok");
    }//fin while
    String chemvir = cfbis.lectureid();
    }//fin du try
    catch(IOException e)
    System.out.println(e);
    }//fin du main
    }// fin de la classe
    do you know how

  • How to know the size in bytes of a directory?

    I would like to know if there's a class or a function which allows to know the size of all files in a directory?

    You have to create a File object for your directory, then list all files (using the list() method) and create a File object for each item returned. Then ask each File object for it's size and add them up.
    Thomas

  • How to know the size of the EEPROM after loading any Applet

    How can I know the size of the EEPROM after loading any applet..
    Any comments on this is appreciated
    Thank you in advance

    kishansaralaya wrote:
    Thanks for your suggestion.
    But when I try to use
    short memRemaining = JCSystem.getAvailableMemory(JCSystem.MEMORY_TYPE_PERSISTENT);
    it always shows 32767. Even after loading some applet.
    And I am using 72K Java card then how it can show only 32Kbyte as the remaining memory value.This is because a short isn't big enough to display a number above 32767. One way around this is to use a byte[] to fill up some of the space with your temporary applet.
    byte[] memoryFiller = new byte[32767];
    short memRemaining = JCSystem.getAvailableMemory(JCSystem.MEMORY_TYPE_PERSISTENT);The value of memRemaining + 32767 is the amount of persistent memory left on the card. If memRemaining is still 32767, you can add another byte[] starting with small values and increase the size until you get a meaning ful result (less than 32K).

  • HT1752 Ineed a new lithium 3.6v battery for my G4. Do you know the size, and where to buy it? Thank you, Shaby.

    Hi, I need to change my old lithium battery 3.6v on my  G4.
    Do you know the size of this battery, and where to buy it on the web?
    Thank you. berdavid.

    You need to identify your PowerMac G4's specific model.
    Refer to these guides: http://www.ifixit.com/Device/Power_Mac

  • How can i know the size of client

    hi
    how can i know the size of client ?
    SAP  ECC6
    OS AIX 5.2
    DB  ORACLE10g
    regards
    Karan

    Hi,
    1)Test run normal client copy .
    =DDt will give the size.
    2)There is SAP note for Client size analyse.
       Here is 118823
    3)run program YSTABSIZ.
    Regards,
    Muralidhar

  • How can I know the size of a JViewport laid out in BorderLayout.CENTER?

    I have a JPanel inside a JScrollPane. The scroll pane is laid out inside of BorderLayout.CENTER. I need to know the size of the JViewport to do stuff like centering and zooming.
    Where can I find the size? All these methods return 0 values for X and Y:
    myScrollPane.getViewport().getSize()
    myScrollPane().getSize()
    myScrollPane.getHorizontalScrollbar().getValue()
    Yes, even the scrollbars won't give me any values! It's all because of the BorderLayout!
    Any ideas? Thanks.

    Sounds like you are accessing the sizes before the views are realized (that is before a call to frame.pack()/show()) They are available only after the layoutManager had a go on it. What is available earlier are preferred/min/max, though.
    Greetings
    Jeanette

Maybe you are looking for