My Oracle Database Size

Hi,
I need to check the current size of my Oracle database, and the remaining storage space.
Does anyone know if I could do that from my SQL prompt? If yes, how would I do that?
thanks,
Matty

Hi,
In resume, you can use these query's below:
select sum(bytes) as total_size from dba_data_files;
select sum(bytes) as free_size from dba_free_space;
select sum(bytes) as used_size from dba_segments;Cheers

Similar Messages

  • Oracle Database Size Estimation Technique

    Hello All,
    I am planning to estimate a database in Oracle. Its a fresh database and will not take any data from any other legacy or flat file systems.
    Do anyone of you can provide me with a checklist sort of thing which will enable me to estimate the size of my database considering its future growth as well?
    Or if you have a document which guides to do the estimation of the size of Oracle database, could you please share it with me as well?
    Thanks in advance
    Himanshu

    This estimation will depend on your installation type and your configuration like your OS, Oracle edition, release information. For example below information is from Oracle® Database Installation Guide
    10g Release 2 (10.2) for Linux x86 Chapter 2 Preinstallation Tasks - http://download.oracle.com/docs/cd/B19306_01/install.102/b15660/pre_install.htm#sthref95
    # 400 MB of disk space in the /tmp directory
    # Between 1.5 GB and 3.5 GB of disk space for the Oracle software, depending on the installation type
    # 1.2 GB of disk space for a preconfigured database that uses file system storage (optional)
    Best regards.

  • Use OEM to monitor oracle database size

    Hello All,
    We currently have several database which are currently monitored via OEM however i will appreciate if anyone can tell me how i can monitor the the size of my oracle databases via oem
    Thanks

    Hi,
    I'm not sure of OEM will monitor database size, but many 3rd party tools do.
    There are many ways to achieve Oracle table monitoring, and many create specialized extension metadata tables to monitor Oracle table growth. In Oracle 10g you can perform Oracle tables monitoring with the dba_hist_seg_stat tables, specifically the space_used_total column.
    On my databases, I create STATSPACK extension tables to track table and overall database growth:
    http://www.dba-oracle.com/te_table_monitoring.htm
    The full scripts are in my Oracle Press book, Oracle tuning with STATSPACK . . .
    http://www.amazon.com/Oracle9i-High-Performance-Tuning-STATSPACK-Burleson/dp/007222360X
    Hope this helps . . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference"
    http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm

  • Oracle database size

    how can I get the maximun size allocated by DBA for the database.
    and in this size how much space is free now.

    user10648897 wrote:
    how can I get the maximun size allocated by DBA for the database.
    and in this size how much space is free now.Tried google for the same?
    http://www.google.co.in/search?hl=en&q=query+to+find+database+size+oracle&meta=
    And this forum as well?
    http://forums.oracle.com/forums/search.jspa?threadID=&q=query+to+find+database+size+&objID=f61&dateRange=last90days&numResults=15
    Cheers
    Aman....

  • Best Oracle datafile size for a SAP ECC6 database.

    Hello,
    We plan to migrate our ECC6 SAP database on a new Windows X64 plateforme running with :
    - Windows 2008 R2
    - Oracle 10.2.0.5.
    The actual Oracle database size is more 2 Tbytes.
    Please could help me to find the best size for the Oracle datafile in this new plateform ?
    Today we create Oracle Tablespace for SAP with 8 GBytes datafiles but we have too many datafiles to managed.
    Do you have experimented 16 GBytes, 32 GBytes, 64 Gbytes datafiles for Oracle Tablespaces on this kind of SAP Plateform ?
    Thank you very much for your reply.
    Best regards.
    Jean-Pascal.

    Hello Jean-Pascal,
    well the answer as usual - it depends )
    We already discussed that topic some time ago - please check this thread:
    big file or small file
    Your storage sub system and stripping matters of course too.
    Regrds
    Stefan

  • Migration from SQL Server to Oracle database

    I have got 2 questions:
    1. We are planning to convert our OLTP sql server databases to oracle databases. I tried using SQL Developer to migrate a small sql server database to oracle database(size 5Gb). It was fine. when I tried to migrate another database(size 90G), it is taking too long. The problem with sql developer is I cannot choose and pick tables. out of 250 tables, I need to migrate abt 80 tables(size will be abt 50G). can anybody share their experiences, if any, in converting medium size sql server databases to oracle databases? any others options??
    2. I am planning to convert sql server ddl to oracle ddl. I am testing bcp out and use sql loader to import the data. Right now, I am manually creating oracle tables from sql server tables. I am using http://download.oracle.com/docs/cd/E11882_01/gateways.112/e12069/apa.htm#BABCIIDI to convert the code. Are there any other better ways to convert sql server DDL to Oracle DDL?
    Thanks in advance

    DDLs should be converted manually. Oracle is not SQL-Server.
    If you for example have the partitioning option, you should consider using partitioning and local indexes where possible. Not all tables need to be hash tables. Do you defer segment creation or not? What is the type of tablespace? Do you set percentages for free and used to manage when the data block is on the free list and how much is reserved in the data block for updating rows in that block?
    There are numerous considerations to make in terms of the physical database design.
    Using BCP and SQL*Loader sound good. SQL*Loader is fast and scalable - am using it to load up to 3.6 million rows every 60 seconds. Direct and parallel loads provide the best performance in this regard (assuming that the underlying table structure and usage supports this approach).

  • Estimating The Database Size before build up

    Hi,
    how can i estimate oracle database size before building up. is there any query or formula there to estimate the size.
    i read a thread of Sir. Joel Pérez if he is available then i m requesting him to send me that docs that you are posted for the estimation query.
    my mail is [email protected]
    Regards
    Avnish

    Use the DBMS_SPACE built-in package to estimate table and index cost (size).
    http://www.psoug.org/reference/dbms_space.html

  • How to reduce the database size based on MS SQL/Oracle?

    Hi,
    I had deleted severy clients via SCC5, but the database size is more and more bigger. Do you know how to reduce the database size.
    my platform is: NT, MS SQL 2005
                           NT, Oracle 10.2
    Best Regards,
    Simon Shen

    Hi Simon,
    In the case of SQL you need to check how many space free you have in your datafiles and the based on that you need to Shrink them using DBCC SHRINKFILE command.
    Find a couple of reference docs here,
    http://www.intermedia.net/support/kb/default.asp?id=996
    http://doc.ddart.net/mssql/sql70/dbcc_21.htm
    Also i'm pretty sure that if your check the properties of the datafiles in MSSQL Enterprise Manager you get a "Shrink" option.
    Regards
    Juan
    Please reward with points if helpful

  • What is limit of database size in oracle 10g standard edition/edition one

    Hai All,
    What is the limit of database size in oracle 10g standard edition and standard edition one.. I see the white paper of oracle says that the limitation is 500 GB. This limitation is correct.? if correct then what happened after the limit..?
    Please help?
    Shiju

    What white paper would that be? I can't see any limit in the Oracle Database 10g Editions comparisons.
    C.

  • How to change field size using SQL against an oracle Database

    I am an admitted novice user, looking to become more proficient.
    I have a field in a table that I need to expand the field size. The table is called Inquiries. The data type is text. The current Field Size is 10. I want to increase it, to either the max, or somethign long enough to fit TECHNOLOGY LEADERSHIP PROGRAM.
    What is the SQL command to change the field size, and what is the max for a Text Field Size

    And/Or, an even better question might be,
    Do I need to use SQL*PLUS to do this, or are there better tools. I.e, I like how in Access, you can open up a database in Design view and just change the amount for the field size. Is there a similar "easy" method to do something like that with an Oracle database.
    My current version of the server/database is:
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning option
    JServer Release 9.2.0.6.0 - Production
    I was thinking I had to do SQL commands to perform the action, but there may be another way that I am not thinking about with all of the tools at my disposal. When I installed Oracle on my desktop, I installed most of the management tools and networking services, if that helps

  • Oracle 9i Lite database size growing

    The database size on Oracle 9i Lite is increased.
    If I extract data and recreate database with them, volume can be reduced at 5-10 of time.
    Whether there are any other ways of reduction of the size? Some tools, or may be internal Java classes.

    Can i create the database without using the sync or the create db. Or programatically how do i create the database Check out the client side APIs, examples can be found in the documentation, see WINCE (PocketPC) Developer's Guide.
    RP.

  • How to set the sga size in Windows NT Oracle Database

    Hi,
    Can any one tell me how to estimate the appropriate sizes for SGA and sorts..etc, Any estimate based on the total database size..?
    Regards,
    G. Rajakumar.

    Hi All,
    Got the answer. How I wish this can be define declaratively.
    Code below for the soln.
    OATableBean table01 = (OATableBean)webBean.findChildRecursive("table01RN");
    table01.queryData(pageContext, true);
    table01.prepareForRendering(pageContext);
    DataObjectList aColFormat01 = table01.getColumnFormats() ;
    oracle.cabo.ui.data.DictionaryData ColFormat01 =(oracle.cabo.ui.data.DictionaryData)aColFormat01.getItem(pageContext.findChildIndex(table01, "ColLabel"));
    //Column Width
    ColFormat01.put(WIDTH_KEY, "30%");
    //Column Format - Right-aligned varchar
    ColFormat01.put(COLUMN_DATA_FORMAT_KEY,NUMBER_FORMAT);cheers,
    Elmer
    Edited by: Elmer on Mar 8, 2010 2:46 AM

  • Oracle database Structure Size

    HI ,
    Can any one tell me how to find the size of a oracle database with out data , meaning only the structure meta data only.
    Thanks
    lbn76

    Hi
    plese explain Youre question
    Do You want to get DDL-statement to recreate objects ?
    The space which You allocated for database is reserved and marked on blocks.
    Free bloks doesn't belong to a reserve of an empty space of operating system .
    I think if You whant to get size of the absolutely empty database
    You need to calculate sizes of minimum necessary files in tablespaces SYSTEM, SYSAUX, Redo-files, control files , password- and controlfiles
    or shrinking every table to a minimum space, move HWM and then calculate the size that Youre database occupy
    Regards,
    Pavel

  • Any maximum size limit to an Oracle database?

    Is there a maximum size limit to Oracle database?
    What is the maximum columns and rows the database can grow to?
    Is there any documentation stating the max size for the Oracle database?

    The maximum size supported by Oracle in respect of the Oracle RDBMS is 512 Petabytes or
    536,870,912 GigaBytes. This was introduced w/ Oracle Release 8.0.3 and higher. The Oracle Release 7 limit was 4 Terabytes.
    Anatoli Grishin

  • Oracle Database Maximum size (Linux)

    What is the maximum size possible
    for an Oracle Database on Linux ?
    Is it limited to 2GB ? (the max file size
    under Linux)
    Mysql allows 4GB max, but for each table.
    In fact 2GB with Linux (due to Linux
    Max file size = 2GB).
    null

    Log to sqlplus as system ...
    1. Create a new tablespace & datafile.
    CREATE TABLESPACE "TESTSPACE" DATAFILE '/db/u01/oradata/testdata.dbf' SIZE 1000M DEFAULT STORAGE ( INITIAL 100K NEXT 2K MINEXTENTS 2 MAXEXTENTS UNLIMITED PCTINCREASE 0 ) MINIMUM EXTENT 2K
    2. Then add datafiles to the tablespace as needed...
    ALTER TABLESPACE "TESTSPACE" ADD DATAFILE '/db/u01/oradata/testdata2.dbf' SIZE 1000M
    This will add two 1000m datafiles...
    You can alter and make the files sizes larger and smaller... You can also add more files...
    Also when you create tables make sure you reference them to the testspace tablespace or they will default to the user tablespace which will not be able to accomodate large data without modification.
    This is really just the tip of the iceberg...
    I really recommend reading the server concepts manual.
    -eggbert
    null

Maybe you are looking for

  • New Line Generation in ABAP

    Hi, I need to generate a new line in ABAP.Is there a command which generates a new line. For Example: Input: lv_string1 = 'ABC', lv_string2 = 'XYZ' Concatenate : lv_string1 <newline> lv_string2  INTO lv_string. Output: lv_string should look like this

  • Some of the Artist names are not showing up in iTunes or my iPod

    I have a couple of songs by Yanni on iTunes and my iPod Video (5th Generation). The songs are listed and so are the albums, but the artist name is not. I tried retyping the artist's name but that didn't work.

  • AVI files play badly with no sound

    My system upgraded Quicktime to 7.5 and now I am having this problem. The only file I have is one my dead son made trying to get his infant son to talk. It is so special to me and his wife. I really want to get the sound working again. Thanks so much

  • Rendering @Fontface distorted in input fields

    Safari only is rendering am @fontface font poorly. Once you leave the tab/window then come back to it, it renders. The textarea is fine because it's not using the font-face. The @fontface is imported and not imbedded. Solution Ideas: 1. Don't use spe

  • How do you resolve error 213:11 for photoshop elements 9 and 8

    how do you resolve error 213:11 for photoshop elements 9 and 8?