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

Similar Messages

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

  • 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 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 archived logs created under ASM

    I using Oracle 10g on Linux x86-64.
    I need to ship the archived logs(not the entire directory, only a few) from the Live database to the DR site, so I need an estimate of how much time it will take to ship them across the network ?
    Is there anyway I can know the size of a specific archived log file stored under ASM ?
    We can use du in ASM to know the size of directory but I dont find a command in ASM to get the size of a file ?

    No we are also switching logfiles manually , so the maximum size may not
    have reached.
    What I need is something like ls -l command in the Unix prompt which will
    help us to find the size of the file , a similar command to help us determine
    a size of file in ASM ?What is the objective?
    Anyways, you can get the size of an archived log file by quering V$ARCHIVED_LOG view.
    SQL> select sequence#, name, blocks*block_size from v$archived_log where sequence# > 180;
    SEQUENCE# NAME                                     BLOCKS*BLOCK_SIZE
           182 C:\MYDB\ARCH\ARC00182_0633314306.001             223053312
           181 C:\MYDB\ARCH\ARC00181_0633314306.001             264281600
           183 C:\MYDB\ARCH\ARC00183_0633314306.001              26209280
           184 C:\MYDB\ARCH\ARC00184_0633314306.001                  4096
           185 C:\MYDB\ARCH\ARC00185_0633314306.001                 16384
    SQL>

  • 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 to extend the size of c3k database in Sybase(Adaptive Server Enterprice 15.5)?

    Hi All,
    I am trying to extend the size of c3k database in my system.
    I tried like the above screen short but it could not work because the increament button is disable.
    how can i increase the size?
    can any one help at this?

    Hi,
    From Central go to devices, find the C3000Device, right click and add space on it and then retry what you just posted.
    Regards,
    Kimon

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

  • 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 reduce the size of a database ?

    Hi,
    I would like to know what are the possibilities for reducing the size of a database storage.
    I have thought about compressing big indexes and tables.
    Have you others ideas ?
    thx

    user4865031 wrote:
    Hi,
    I would like to know what are the possibilities for reducing the size of a database storage.
    I have thought about compressing big indexes and tables.
    Have you others ideas ?
    thxIt depends. Have you evaluated what takes up the space? Do you have data that can be archived? Do you have high water marks that will never be reached? Do you have sparse data that could have free space removed, just leaving expansion space in new or updateable blocks? Do you have unused indices or tables? What type of systems do you have, OLTP, DW, DSS? Is your data normal? Is your app software enterprise? Are your datatypes correct? Is your storage cheap?
    So many possibilities!

  • How to know the size of a file in a program ?

    I am compiling a program and I have to use a function in Java to know the size of some files. How can I do? Thanks

    File.length() not good enough?

  • 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 a message I wrote

    When I created a photojournal, with comments before each photo, I got a message "The size of the message you are trying to send exceeds the global size limit of the server."
    So it was not sent and I was told to reduce it and try again. I did that with the photos, deleted a few, as well, but still got the error message, and have not discovered how to find the size of the message.

    save it to drafts.
    in the drafts folder, click on the little table widget right on the right side of the column headings... select size
    Remember size increases about 30% for attachments.

  • How to know the Size of the Database?

    Hi All,
    Is there a Transaction which will give me the size of the Database. The Database System which we have is MS Sql Server 2000. Will the Transaction have the option where I could select the Client so that I could get the exact size of the Production Systems Database, will this also provide the size of the Data & Log file.
    Thanks,
    Kishan

    check transaction db16/db17
    here are db related tx:
    DB01  Analyze exclusive lock waits
    DB02  Analyze tables and indexes
    DB03  Parameter changes in database
    DB11  Early Watch Profile Maintenance
    DB12  Overview of Backup Logs
    DB13  Database administration calendar
    DB14  Show SAPDBA Action Logs
    DB15  Data Archiving: Database Tables
    DB16  DB System Check: Monitor
    DB17  DB System Check: Configuration
    DMIG  Start Transaction for Data Migration
    DB2   Select Database Activities
    DB20  DB Cost-Based Optimizer: Tab. Stats
    DB21  DB Cost-Based Optimizer: Config.
    DB24  Database Operations Monitor
    DB26  DB Profile:Monitor and Configuration
    DB2J  Manage JCL jobs for OS/390
    DBCO  Database Connection Maintenance
    check them may be they help you to some extent.
    regards.

Maybe you are looking for

  • My ipod is restarting again and again with a crack like sound

    I have a iPod Classic. Few days ago i was listening music and i noticed that the power suddenly reaches to half. After few second it was just about to empty. And after few second my iPod turned off and restarted again but not completely. When ever it

  • Bug in rand() function?

    Purpose : Displaying 4 random images, get de 4 image url's out of a sql-database. I have a database wich contains a table images wich contains 30 records, record1 = 00001.jpg, record 2 = 00002.jpg ..... When I use this code i always seem to get the f

  • Can I use the Shuffle over USB in a car?

    Hi all, Have a brand new iPod Shuffle 4th gen that I want to setup for use in a car.  Have a Nano in one car, using a USB connection...that works great.  I'm trying to do the same with a Shuffle in a different car, but with no luck.  The stereo doesn

  • Using shatter to extrude (comp camera)

    I'm using shatter (in CS3) to add extrusion to a text. I've done it successfully before, but this time when I change the camera (inside the effect) to (comp camera) it shows only the sideview of the text. When I rotate the layer it treats it like the

  • Parcel tracking  - cheating XSI

    Hi, I was wondering if there's a way to use parcel tracking functionality without actually connecting to the express delivery company. I went through all the posts found on this site as well as SAP manual for setting up XSI and parcel tracking. I've