size of the database

Hello

on 11 GR 2, when I do sum (bytes) of dba_segments, I get 8 to size.

But there are only several data files in the database, each with perhaps 1 to 5 GB, and a with 8TB bigfile tablespace is allocated, but it showes

only 3 TB free and used 5 TB.

It's because I droped several table partitions yesterday.

The question is how is the sum (bytes) of dba_segments gives 8TB size when I droped aprox. 5 TB of data?

And another, how can I reduce the db so that um dba_segments (bytes) shows the size near utilization as reported in data files, and it is slightly more than 3 TB.

You have RECYCLEBIN = ONE and if if you use the PURGE option when you fell? Otherwise, PURGE RECYCLEBIN.

Tags: Database

Similar Questions

  • Calculation of the size of the database.

    Salvation of DBA. Which is exactly the way to calculate the size of the database? Is it calculate the sum of the sizes of the segments or the calculation of the sum of the sizes of the redo logs, data files, control files?

    You please suggest the correct answer

    Thank you

    As usual: depends: do you need to calculate the size allocated on storage, you simply go to the current size of the file dba_data_files bytes column data. If you need the storage used the sum of dba_segments fits better. If you need the size of all files used for the database, you must add the controlfiles, newspapers and db_recovery_file_dest_size files.

  • What command is used to find the size of the database?

    Hi all

    I want to know what command to use to find the total size of the database?

    Select sum (bytes) of dba_data_files;

    (more dba_temp_files, v$ log etc.)

    Published by: Robert Geier on December 6, 2011 13:25

  • Total size of the database

    Hello

    How to get the total size of the database?

    Thanks in advance

    Try this link

    http://nimishgarg.blogspot.com/2010/05/Oracle-total-size-of-database.html

  • Query for the size of the database

    I need a query that should display the database size and the size of the database a month back. I tried with the OEM, but if the database goes down between the two, it will not display the result. (OS-HP-Unix, Linux, worm - 8i, 9i, 10g)

    Check this query:

    SELECT ADD_MONTHS (SYSDATE, -1),SUM (BYTES) / 1073741824
      FROM v$datafile
     WHERE creation_time < ADD_MONTHS (SYSDATE, -1)
    UNION ALL
    SELECT sysdate, SUM (BYTES) / 1073741824
      FROM v$datafile;
    

    - - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev a. (10g OCP)
    http://kamranagayev.WordPress.com

  • size of the database file

    Hello
    I have a database in which two table contains millions of data and the size of the entire database becomes larger. y at - it an option to archive the old data that was stored before 2012 and can be restored if necessary data required for 2011 or 2010.
    Please suggest if there is a method.

    Yes, partitioning is the right option. You can archive the old data in the warehouse using the copy of

    http://docs.Oracle.com/CD/B19306_01/server.102/b14220/partconc.htm
    Common questions about the Option of partitioning installed in the Oracle (licenses, Install, Remove) [ID 1312416.1] database
    How to partition an existing Table using the DBMS_Redefinition [ID 472449.1]

    Thank you
    Amit Golia

  • Size of the database necessary for the composer

    Hey all,.

    I have composer view installation in my lab at home to learn and test its functionality, use SQL Express. Now, I want to test with my business deployment. I need to contact my DBA for the SQL database has been created. I'm not really familiar with databases at all. My manager suggested I join him and our dba ask tell them what size of database we need and create the database. Since then, I don't know much about databases, I have no idea what database size I should be in him asking to create. In addition, should I get this database created on our production or test sql server? I guess production since my end-users will use this and once set up it would be problems move the DB later? Yet once again, I have no idea... so I ask the experts

    Thanks in advance

    Mike

    check this: http://communities.vmware.com/message/1619807

  • find the size of the database

    Hi gurus,

    Can someone suggest me to find the full database size and free space left in the database.

    as I am doing the update just gather the statistics.


    Thank you

    790072 wrote:
    Hi gurus,

    Can someone suggest me to find the full database size and free space left in the database.

    as I am doing the update just gather the statistics.

    Thank you

     1  select round(sum(df.bytes/(1024*1024))+sum(tf.bytes/(1024*1024))) TOTAL,
      2  round(sum(fs.bytes/(1024*1024))) FREE
      3* from dba_data_files df, dba_temp_files tf, dba_free_space fs
    SQL> /
    
         TOTAL      FREE
    ---------- ----------
       6839688     56127
    
  • With regard to the size of the database

    Hi all

    Sorry for the interruption of you and your time for the clarification.

    The size of my database is:
    Select sum (bytes) / 1024/1024 of dba_data_files;

    SUM (BYTES) / 1024/1024
    --------------------
    19035.0938

    The size used is:
    Select sum (bytes) / 1024/1024 in dba_segments;

    SUM (BYTES) / 1024/1024
    --------------------
    5488.22656
    Free size is:
    Select sum (bytes) / 1024/1024 dba_free_space;
    SUM (BYTES) / 1024/1024
    --------------------
    13890.1016

    When I take plenty of RMAN backup I found the size almost 2304 MB (but in dba_segments his ~ 5488), my doubt is how to remove the higherwatermark (HWM) so that I can get exactly space used by database (excluding higher watermark).

    Thank you in advance,

    The SMALLEST_SIZE_POSS column will be the exact size used in the database.
    The column CURRENT_SIZE is allocated size.

    SET VERIFY OFF
    COL NOM_TABLESPACE FORMAT A20
    COL FILE_NAME FORMAT A60 WORD_WRAPPED
    COL MORE SMALL FORMAT 999 990 TOPIC "SMALLER | SIZE | POSS."
    COL CURRSIZE FORMAT 999 990 HEADING ' CURRENT | SIZE '.
    COL OF SAVING FORMAT 999 990 TOPIC "POSS | SAVINGS. "
    BREAK THE REPORT
    SUM OF CALCULATION OF THE SAVINGS ON THE REPORT
    CALCULATE THE SUM OF THE SMALLEST REPORT
    CALCULATION AMOUNT REPORT CURRSIZE
    VALUE OF COL NEW_VAL BLKSIZE

    VALUE SELECT FROM V$ PARAMETER WHERE NAME = 'db_block_size.
    /

    SELECT A.TABLESPACE_NAME, A.FILE_ID, FILE_NAME,
    CEIL ((NVL(HWM,1) * & BLKSIZE) / 1024/1024) SMALLER.
    CEIL (BLOCKS * & BLKSIZE/1024/1024) CURRSIZE,.
    CEIL (BLOCKS * & BLKSIZE/1024/1024).
    CEIL ((NVL(HWM,1) * & BLKSIZE) / 1024/1024) SAVINGS
    FROM DBA_DATA_FILES,.
    (SELECT FILE_ID, MAX (BLOCK_ID + BLOCKS - 1) LET HIGH WATER
    FROM DBA_EXTENTS
    FILE_ID GROUP) B
    WHERE A.FILE_ID = B.FILE_ID (+)
    /

  • How to reduce the size of the database

    Hello
    My database size is 100 GB and used space is that 24GO means 76 GB of free space. I want to eliminate this free space. What should be the best solution for it?

    Thank you

    Hello..

    Can you name the database version?

    You can create new spaces for storage of the required size (little more size in use) and move all objects (TABLES) to new bases and then rebuild the index corresponding to these tables.

    Anand

  • vCenterops the size of the database - management of disk space

    Hi people, Does there, anyone know how to configure the period of retention of data for vCops standard edition? We just had the score of DB PostgreSQL running out of space and wan to be able to limit growth size or the length of time data are kept for. I thought that there is a setting for this during the intitial configuration but can't seem to find in the doco.

    Pointers would be much appreciated.

    Found the KB Article, hopefully that's what I do: 1035655

  • Need help on expdp and the size of the database.

    Hi all

    I ran a command expdp
    expdp NOLOGFILE ESTIMATE_ONLY = Y Y =.

    Here is the output I got.


    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    . estimated 'SCOTT '. "' MS_DATA_STORE ' 539.1 MB
    . estimated 'SCOTT '. "' SYS_EXPORT_FULL_03 ' 488 MB
    . estimated 'SCOTT '. "' SYS_EXPORT_FULL_04 ' 432 MB
    . estimated 'SCOTT '. "' URL_URL ' 267 MB
    . estimated 'SCOTT '. "' MS_BUFFER_TRACK ' 203 MB
    . estimated 'SCOTT '. "" NCS_ADAPTER_TABLE_OUT "168 MB
    . estimated 'SCOTT '. "' SYS_EXPORT_SCHEMA_19 ' 102 MB
    . estimated 'SCOTT '. "' SYS_EXPORT_SCHEMA_11 ' 100 MB
    . estimated 'SCOTT '. "' SYS_EXPORT_SCHEMA_12 ' 100 MB
    . estimated 'SCOTT '. "' SYS_EXPORT_SCHEMA_13 ' 100 MB
    . estimated 'SCOTT '. "' SYS_EXPORT_SCHEMA_14 ' 100 MB
    . estimated 'SCOTT '. "' SYS_EXPORT_SCHEMA_15 ' 100 MB
    . estimated 'SCOTT '. "' SYS_EXPORT_SCHEMA_16 ' 100 MB
    . estimated 'SCOTT '. "' SYS_EXPORT_SCHEMA_20 ' 100 MB
    . estimated 'SCOTT '. "' SYS_EXPORT_SCHEMA_21 ' 100 MB
    . estimated 'SCOTT '. "' SYS_EXPORT_SCHEMA_22 ' 100 MB
    . estimated 'SCOTT '. ' SYS_EXPORT_SCHEMA_18 '99 MB.
    . estimated 'SCOTT '. ' SYS_EXPORT_SCHEMA_09 '98 MB.
    . estimated 'SCOTT '. "' SYS_EXPORT_FULL_05 ' 95 MB
    . estimated 'SCOTT '. "' SYS_EXPORT_SCHEMA_17 ' 95 MB
    . estimated 'SCOTT '. "" SYS_EXPORT_SCHEMA_01 ' 92 MB


    I had read that, SYS_EXPORT_SCHEMA_XX are created while taking the dump with expdp and if stop you it without a showdown at work, this kind of remains of tables in the DB.

    I CAN DELETE THESE TABLES, BECAUSE IT IS TOO MUCH SPACE. ???

    Thank you
    Nitin

    Oracle will create master tables in the format you mentioned taking the export using expdp
    You can drop them and nothing will happen even if the database is running.

    Please mark as correct and answered so this can help...

  • The total size of the backup database and Total database size.

    Hi Experts,

    How can I find the size of the size of the database and the size of the backup with only the RMAN catalog help.
    I use Oracle 10.2.0.5. and Tivoli TSM

    I have

    Hello

    See this doc...
    http://download.Oracle.com/docs/CD/B28359_01/backup.111/b28270/rcmreprt.htm#CHDBIGHG

    Connect to SQL * for the database you intend to question the backup history.

    Ask the view V$ RMAN_BACKUP_JOB_DETAILS for more information on the backup type, status, and the start and end time.

    The following query shows the history of the backup jobs sorted by the session key, which is the primary key for the RMAN session:

    COL STATUS FORMAT a9
    COL hrs    FORMAT 999.99
    SELECT SESSION_KEY, INPUT_TYPE, STATUS,
           TO_CHAR(START_TIME,'mm/dd/yy hh24:mi') start_time,
           TO_CHAR(END_TIME,'mm/dd/yy hh24:mi')   end_time,
           ELAPSED_SECONDS/3600                   hrs
    FROM V$RMAN_BACKUP_JOB_DETAILS
    ORDER BY SESSION_KEY;
    

    Ask the view RMAN_BACKUP_JOB_DETAILS V$ at the rate of tasks of backup in an RMAN session.

    The following query shows the speed of backup job sorted by the session key, the primary key of the RMAN session. The in_sec and out_sec columns columns display the input data and output per second.

    COL in_sec FORMAT a10
    COL out_sec FORMAT a10
    COL TIME_TAKEN_DISPLAY FORMAT a10
    SELECT SESSION_KEY,
           OPTIMIZED,
           COMPRESSION_RATIO,
           INPUT_BYTES_PER_SEC_DISPLAY in_sec,
           OUTPUT_BYTES_PER_SEC_DISPLAY out_sec,
           TIME_TAKEN_DISPLAY
    FROM   V$RMAN_BACKUP_JOB_DETAILS
    ORDER BY SESSION_KEY;
    

    Ask the view RMAN_BACKUP_JOB_DETAILS V$ for the size of the backups in an RMAN session.

    If you run the DATABASE BACKUP, then V$ RMAN_BACKUP_JOB_DETAILS. OUTPUT_BYTES indicates the total size of backup games written by the backup task for the database that you are backing up. To view the backup set sizes for all registered databases, ask RC_RMAN_BACKUP_JOB_DETAILS.

    The following query shows the speed of backup job sorted by the session key, the primary key of the RMAN session. The in_sec and out_sec columns columns display the input data and output per second.

    COL in_size  FORMAT a10
    COL out_size FORMAT a10
    SELECT SESSION_KEY,
           INPUT_TYPE,
           COMPRESSION_RATIO,
           INPUT_BYTES_DISPLAY in_size,
           OUTPUT_BYTES_DISPLAY out_size
    FROM   V$RMAN_BACKUP_JOB_DETAILS
    ORDER BY SESSION_KEY;
    

    The following sample output shows the speed of the backup jobs:

    I hope this will help...

    Kind regards
    Levi Pereira

  • How to check the size of the Application database

    Hello

    I work as a DBA of the Application. I want to check the size of the database.

    Please suggest.

    Kind regards
    Vincent

    Select the owner, segment_type, sum (bytes) "bytes."
    from dba_segments
    Group by the owner, segment_type.

    OR

    SELECT SUM (BYTES) / 1024/1024 "MB" FROM DBA_SEGMENTS WHERE OWNER = "";

    OR

    Select dba_segments nom_segment, segment_type, bytes/1024/1024 MB
    where segment_type = 'TABLE' and nom_segment = '';

  • exact size of data in the database and schema

    Hi master,

    I always wonder if I could get the exact size of the data in a schema and size exact of a database with the following queries... I will be grateful if someone could tell me what's wrong in the following query, because it shows the different size of the data in the diagram... and any request to find the exact size of my database (not just data files)...
    SQL> ed
    Wrote file afiedt.buf
    
      1  select d.owner,sum(u.bytes)/1024/1024 "MB USED"
      2  from dba_segments d,user_segments u
      3  where d.tablespace_name=u.tablespace_name
      4* group by d.owner
    SQL> /
    
    OWNER                             MB USED
    ------------------------------ ----------
    MDSYS                            9484.375
    TSMSYS                              303.5
    DMSYS                               303.5
    OUTLN                                4027
    CTXSYS                            5614.75
    OLAPSYS                         18892.875
    *VD                                503.375*
    SYSTEM                         132100.625
    EXFSYS                            4400.75
    DBSNMP                           1896.875
    ORDSYS                                607
    
    OWNER                             MB USED
    ------------------------------ ----------
    SYSMAN                              57665
    XDB                             57133.875
    SYS                              543965.5
    WMSYS                             8346.25
    
    15 rows selected.
    
    SQL> select sum(bytes)/1024/1024
      2  from dba_segments;
    
    SUM(BYTES)/1024/1024
    --------------------
                1353.875
    
    SQL> select owner,sum(bytes) from dba_segments
      2  group by owner;
    
    OWNER                          SUM(BYTES)
    ------------------------------ ----------
    MDSYS                            34013184
    TSMSYS                             262144
    DMSYS                              262144
    OUTLN                              524288
    VD                              519897088
    CTXSYS                            4849664
    OLAPSYS                          16318464
    SYSTEM                           23265280
    EXFSYS                            3801088
    SCOTT                              393216
    DBSNMP                            1638400
    
    OWNER                          SUM(BYTES)
    ------------------------------ ----------
    ORDSYS                             524288
    SYSMAN                           54067200
    XDB                              50397184
    SYS                             702218240
    WMSYS                             7208960
    
    16 rows selected.
    I would like to know the a daring ijn...

    can we get the exact size of the database by querying select sum (bytes) / 1024/1024 "size in MB' from dba_segments;
    ???

    I know there are a lot of website that gives the same queries... but I trust oracle forums...

    any help will be appreciated...

    Thanks and greetings
    VD

    Published by: vikrant dixit on April 9, 2009 12:06 AM

    Hello..

    To know the size of the scheme: -.

    select owner,sum(bytes/1024/1024)MB from dba_segments group by owner;
    

    TO know the actual size of the database

    select sum(bytes/1024/1024/1024) Actual_size_gb from dba_segments
    

    HTH
    Anand

Maybe you are looking for

  • How can I get rid of the virus?

    I have a virus of this address:[email protected] the total number of messages is huge. I've moved to the trash directly, but how do I get rid of this?I checked all the files using Norton. (Tools/export-import EML) but what do I do

  • Cannot access 28.0 FF dock or finder

    "If I close the Firefox window and then try to come back by clicking on the dock icon I get the error message:" server not found. Firefox can't find the server at herot.com>. "I can get to Firefox only a link of a person (someone) link of e-mail to a

  • Cannot update iOS 9.2.1 on the air of the iPad 2

    Update iOS 9.2.1 for UN-athorised fix comes out. Working victory over 6s but fail after downloading and during treatment on Air2 iPad download using iTunes. Everything an els having this problem?

  • Re: Satellite L500-14N (PSLJ3E) - no DVD burning

    Hello In recent weeks, my dvd writer does not burn more. whenever I try to write things on a dvd, I get an error, but playback works fine. Furthermore, I have no problem with the CD. I've tried 3 programms (Nero 9, CloneDVD2 and the own program of Wi

  • Error in harmonic distortion VI Analyzer?

    Hello Today, I tried to use the harmonic distortion VI Analyzer and it seems that there is a mistake in the VI (or I misunderstood something...). The phenomenon I've observed may very well shown in the attached example. Description: -THD - calc: outp