Calculation of the size of database

Hello

I gave a not sure DB of the size but its more than 50 or 100 GB, so how can I check the size of the entire database by using the query.
I tried these
"SELECT SUM (BYTES) / 1024/1024 MB" "FROM DBA_SEGMENTS;"
give me 1 GB

and
Select sum (bytes / (1024 * 1024)) 'DB size in MB' from dba_data_files; gave me 1.6 GB then something is wrong.

can anyone provide me with the exact query to get the full size of a database.

Thank you

>
I have to run all three queries to get the total size of the database?
>

Yes, you must include the temporary tablespace and recovery logs and files.

And you also need to include the archive generated logs that you can get from V$ ARCHIVED_LOG.

Tags: Database

Similar Questions

  • Determine the size of database

    Hi all

    I'll be really grateful if someone will help me please in determining the size of database.

    Concerning

    Select sum (bytes) of dba_data_files;
    Select sum (bytes) from dba_temp_files;
    Select sum (bytes) of the log v$.

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

  • BlackBerry smartphone how to increase the size of database - please help please please

    Hi all

    I'm new to the world of blackberry and am stuck with problems. The first is that the size of the database of my BB 9000 is 812.3 K, which I think is default. Now, it's full I get many emails on my phone. For this reason my call logs is deleted automatically, and all the data that I left in the call logs are for the last 24 hours only.

    I need help to understand if it is possible to change the size of the database, or if my emails can be downloaded on my media card that is 2 GB. If none of the above is possible then please tell me a solution I need to have for at least 1 week call logs.

    Help, please

    Jousset

    jousset wrote:
    Sorry for that database thing... I was wrong... Call log stores only 20 entries. any idea y than what is happening?

    Look at your Messages folder > Menu > view folder > Call Logs... now do you see more than the last 20 calls?

  • Check the size of database objects

    Hello

    How can I see the size of the tables and other objects in the database on the disk?

    Thank you!

    You can check it using this query.

    Select nom_segment, sum (bytes) / 1024/1024 dba_segments group by nom_segment;

    give the size in MB.

  • Wrong calculation of the size of the hard drive

    Hello people. As you can see, I had this crazy problem. My laptop is a Macbook Air mid 13 13 ". I tried everything... even with the removal of more:

    But "cinema" is still bigger than my flash storage. If someone knows how to fix it please help. If anyone is an Apple programmer, please do a "Refresh" or "Recalculate" button when this happens.

    Omni DiskSweeper can show you the exact size and location of all your files. It will be the inventory of your disc from files that occupy more space. It can also give you a fairer read disk space than the Finder or storage tab of the about this Mac. If you want you can even delete files from OmniDisk Sweeper.

  • Small problem of calculation for the size of the Page when using overflow online

    Hello world:

    It seems to me that in 11g when I use:

    (1) a presentation of table form
    (2) overflow online
    (3) calculate the width of the Table

    The calculation does not take into account the width of the "twistie" as I call it, which is a small triangular arrow pointing at the time where there is something to the overflow inline and points downwards when you look at what is in the overflow online.

    Pages that have these 3 features have a scroll bar on the bottom, which needs a little more room. I guess that's the width of "twistie" is not taken into account.

    I looked on this forum as well as the Release Notes to see if it was a known problem, but did not find, and I can send you a unit with the HRSchema test, if you want to.

    I realize that I can use the "pixels" instead of calculating the width of the Table, but I thought I should report it to you if you didn't know already.

    Mary
    U

    Mary,

    You use JDeveloper 11.1.1.4?
    I so that explained. This version of JDev has some annoying layout changes. The good news is that JHeadstart 11.1.1.3 who has just been released should solve these problems of presentation.

    Steven Davelaar,
    Jheadstart team.

  • Time machine, the size calculation

    -What this means: calculation of the size? I'm trying to locate a document missing in my application Pages. I enter Time Machine, go back, and then select Pages, which is followed by the window with the eternal message: size calculation. I do something wrong, but I don't know what. Happy new year.

    OS X El Capitan: recovering items using Time Machine and Spotlight

  • Size of database

    Hi all

    We need to know the size of our database, we have below 2 queries

    1. Select sum(bytes/1024/1024/1024) 'Total size of database in the UK' in sys.sm$ ts_used;

    2 SELECT SUM (a.log_space + b.data_space + c.tempspace) "Total_DB_Size (G)"
    FROM (SELECT ROUND (SUM (BYTES/1024/1024/1024), 2) data_space)
    FROM dba_data_files) b.
    (SELECT ROUND (SUM (BYTES * Member/1024/1024/1024), 2) log_space)
    (LOG v$).
    (SELECT NVL (ROUND (SUM(BYTES/1024/1024/1024), 2), 0) tempspace)
    FROM dba_temp_files) c;

    1. the question of whether these requests are correct?

    2 should we consider temp tablespace also interviewed for the size of the database, or it should b omitted?

    3 only the first query result is correct?

    4. If none of above things are correct, please suggest me to get the size of database with the appropriate query

    DB: 10.2.0.4
    OS: RHEL 4.7

    Please suggest

    Thank you

    Hello

    Well, being simplistic (not taking into account, redologs, CF and archives):

    Database size (sum of data files):
    Select sum (MB) TotalDB)
    Select sum (bytes) / 1024/1024 MB of dba_data_files
    Union
    Select sum (bytes) / 1024/1024 MB of dba_temp_files
    );

    Used space:
    Select sum (MB) UsedMB)
    Select sum (bytes) / 1024/1024 MB of dba_data_files
    Union
    Select-1 * sum (bytes) / 1024/1024 MB from dba_free_space
    );

    Free space:
    Select sum (bytes) / 1024/1024 MB of dba_free_space;

    ARO
    Pinela.

  • Dynamics Processor Calc does not reach more than [100] ESM blocks during the calculation, please increase the CalcLockBlock setting, and then try again (a small data cache setting can also cause this problem, check the size of data cache setting).

    Hello

    Our environment is Essbase 11.1.2.2 and work on Essbase EAS and components of Shared Services. One of our user tried to execute the Script of Cal of a single application and in the face of this error.

    Dynamics Processor Calc does not reach more than [100] ESM blocks during the calculation, please increase the CalcLockBlock setting, and then try again (a small data cache setting can also cause this problem, check the size of data cache setting).


    I did a few Google and found that we need to add something in the Essbase.cfg file as below.

    Dynamics Processor Calc 1012704 fails to more blocks ESM number for the calculation, please increase the CalcLockBlock setting, and then try again (a small data cache setting can also cause this problem, check the size of data cache setting).

    Possible problems

    Analytical services cannot lock enough blocks to perform the calculation.

    Possible solutions

    Increase the number of blocks of analytical Services can allocate to a calculation:

    1. Set the maximum number of blocks of analytical Services can allocate at least 500.
      1. If you are not a $ARBORPATH/bin/essbase.cfg on the file server computer, create one using a text editor.
      2. In the essbase.cfg folder on the server computer, set CALCLOCKBLOCKHIGH to 500.
      3. Stopping and restarting Analysis server.
    2. Add the command SET LOCKBLOCK STUDENT at the beginning of the calculation script.
    3. Set the cache of data large enough to hold all the blocks specified in the CALCLOCKBLOCKHIGH parameter.

    In fact in our queue (essbase.cfg) Config Server we have given below added.

    CalcLockBlockHigh 2000

    CalcLockBlockDefault 200

    CalcLockBlocklow 50


    So my question is if edit us the file Essbase.cfg and add the above settings restart services will work?  and if yes, why should change us the configuration file of server if the problem concerns a Cal Script application. Please guide me how to do this.


    Kind regards

    Naveen

    Yes it must *.

    Make sure that you have "migrated settings cache of database as well. If the cache is too small, you will have similar problems.

  • 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 (+)
    /

  • Time of calculation relative to the size of the db

    Hello

    I have a database with versions and various scenarios. I have an estimate every night (not just an aggregation) that runs on a scenario and version. As other versions and scenarios have been created, the size of the database has grown up a bit, and the nightly calculation every time develops new scenario/version data sets are created. Has always been my understanding that education fix limit the number of blocks in the calculation, and in theory, existing data in other intersections not being set to should have nothing to do with the calculation time. However, this is not my experience. I even tested out in app development by erasing all the data in 8 of the other versions and scenarios and saw my time reduced by 27%. Does anyone know why this should be? It comes to me that we save more historical copies of the data, the computing time on the active data will grow and develop.

    We are currently implementing a BSO/ASO solution to reduce the data in the cube of the BSO, but I do not see why it should be necessary and want all overview of this.

    Thank you

    Sabrina

    You can be calculate on these blocks, but the charge of these operations increases grows the database

    Whenever he has to calculate on a block, it must go in the index file - find the location of the block in the .pag file, and then open the .pag file and integrate this memory block.

    I am not opposed to the segregation of historical data which is not often used and which moving a cube separated from a design perspective, and it probably would be a good idea if the cycle on your calcs time take forever.

    You can try and improve performance by changing the cache settings - but that is performance tuning and is beyond the scope of your original question.

    -Matt

  • Creation of the database - the size of the SGA

    Hi all

    When I try to create a database using DBCA, my default SGA size: 128. PGA:794. When I click on the next button, I get the following caveat...

    The following settings do not meet the requirements of the minimum recommended size:

    A size of SGA to at least 160 MB is recommended

    Do you want to Setup Wizard to change the setting of the database? I gave ignore, and I changed the size of the SGA at: 160, I received the warning below

    The SGA size cannot be greater than the segment size memory maxmimum shared (1342177728). Refer to the guide to installing oracle for configrue your operating system kernel parameters.

    Please suggest me on the same...

    Thank you
    RIF

    user10737570 wrote:
    My other SGA_MAX_SIZE database is 1 G.

    Now, I am creating the database using DBCA. My default allocated sga size is 128 MB. Recommended size of SGA 160MO. I'm not able to extend the size of the SGA. Please refer my previous post...

    Could you please tell me why my default screen is only showing 128 MB.

    Thank you

    The oracle Installer determines the sga_size bij available calculation free "shared memory".
    It is the setting of the maximum shared memory such as published in the first message less memory used by your first database, less some other stuff shared memory.

    To remedy, you increase the size of memory amount shared in your kernel and reboot the system if necessary.

    If your system is a Redhat Enterprise system, then search the variable called

    kernel.shmmax =

    in /etc/sysctl.conf

    Increase this value, and then save the file (as root)
    Then run/sbin/sysctl Pei to activate the new configuration

  • For an IMAQ image, how is calculated the size of the area of alignment to the left or to the right?

    For an IMAQ image, how is calculated the size of the area of alignment to the left or to the right? My initial assumption of the diagram

    http://zone.NI.com/reference/en-XX/help/370281M-01/imaqvision/imaq_getimagepixelptr/

    is that the left and right are equal. But that doesn't seem to be the case. Can someone tell me the magic formula? A combination of the border width and the width of the image?

    Thank you...

    Andrew

    Andrew_Scott_SPCi.ca wrote:

    All this appeared when I relalized that the mapss Pixel pointer the value 0,0 point of the image, not the point 0,0 of the largest container with areas of alignment and borders. Would be nice if the drawing in the documentation put it.

    This described in help, is not?

    Andrey.

  • I need to write a vbscript script to retrieve the size of an access database

    Could someone help me write a vbscript script to retrieve the size of an access database. I need to put this in my schedular system to run every morning.

    Hi Rob,

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the Office IT Pro. You can follow the link to your question:

    http://social.technet.Microsoft.com/forums/en-us/officeitpro/threads

Maybe you are looking for