Database Size calculation

Hi,
i have given a DB not sure of the size but its more than 50 or 100gb so how can i check the size of the entire database using the query.
i tried these
SELECT SUM(BYTES)/1024/1024 "MB" FROM DBA_SEGMENTS ;
giving me 1 GB
and
select sum(bytes / (1024*1024)) "DB Size in MB" from dba_data_files; gave me 1.6gb so something is wrong.
can someone provide me the exact query to get the complete size of an database.
Thanks

Your queries are correct..
SELECT SUM(BYTES)/(1024*1024*1024) from dba_data_files; --Size in GB
plus
SELECT SUM(BYTES)/(1024*1024*1024) from dba_temp_files;
plus
SELECT SUM(BYTES)/(1024*1024) from V$LOG --Size in MB
They should tell you the size of the database.
DBA_SEGMENTS will give you the size that has been allocated to the segments. This will be less than the size in dba_data_files total size
Edited by: user12035575 on Sep 7, 2011 8:04 PM

Similar Messages

  • Best practice on mailbox database size & we need how many server for deployment exchange server 2013

    Dear all,
    We have  an server that runs Microsoft exchange server 2007 with the following specification:
    4 servers: Hub&CAS1 & Hub&CAS2 & Mailbox1 & Mailbox2 
    Operating System : Microsoft Windows Server 2003 R2 Enterprise x64
    6 mailbox databases
    1500 Mailboxes
    We need to upgrade our exchange server from 2007 to 2013 to fulfill the following requirment:
    I want to upgrade the exchange server 2007 to exchange server 2013 and implement the following details:
    1500 mailboxes
    10GB or 15GB mailbox quota for each user
    How many
    servers and databases  are
    required for this migration<ins cite="mailto:Mohammad%20Ashouri" datetime="2014-05-18T22:41"></ins>?
    Number of the servers:
    Number of the databases:
    Size of each database:
    Many thanks.

    You will also need to check server role requirement in exchange 2013. Please go through this link to calculate the server role requirement : http://blogs.technet.com/b/exchange/archive/2013/05/14/released-exchange-2013-server-role-requirements-calculator.aspx
    2TB is recommended maximum database size for Exchange 2013 databases.
    Here is the complete checklist to upgrade from exchange 2007 to 2013 : http://technet.microsoft.com/en-us/library/ff805032%28v=exchg.150%29.aspx
    Meanwhile, to reduce the risks and time consumed during the completion of migration process, you can have a look at this proficient application(http://www.exchangemigrationtool.com/) that would also be
    a good approach for 1500 users. It will help you to ensure the data security during the migration between exchange 2007 and 2013.

  • Using MaxL in batch script to get Essbase database size before proceeding

    I have a batch script which dynamically generates some MaxL before passing it to ESSMSH. I would like to insert a command at the beginning of the MaxL script, to get and assess the size of the database before proceeding. If the database is empty I would like the script to quit. This is to prevent the script from exporting data and overwriting the previous export file if the database is empty.
    The generated MaxL (modified) is currently as follows. What logic can I add to the MaxL script, to assess the database size and go to the "errorhandler" label if it is empty? Is this even possible?
    login %USER% identified by %PASS% on %SERVER%;
    iferror "errorhandler";
    /* log file */
    spool stdout on to '<directory>.log';
    iferror "errorhandler";
    /* error file */
    spool stderr on to '<directory>.err';
    iferror "errorhandler";
    /* export data */
    set timestamp on;
    execute calculation %APP%.%DB%.C_Export;
    iferror "errorhandler";
    /* reset database */
    alter database %APP%.%DB% reset data;
    iferror "errorhandler";
    /* import data */
    import database %APP%.%DB% data from server data_file "<filename>.txt" on error abort;
    iferror "errorhandler";
    /* calculate database */
    execute calculation default on %APP%.%DB%;
    iferror "errorhandler";
    /* error handler */
    spool off;
    define label "errorhandler";
    logout;
    exit;

    Hi Stuart,
    Yes I was aware of display database "app"."db"; however this will output a table rather than a specific value. And what logic can I then add to the MaxL script to assess the specific value of "Db Status" and go to the "errorhandler" label if it is empty?
    It would seem this needs to be done via a VBScript, to loop through the file rows to find the value before proceeding accordingly. But I was hoping there might be a way to do this within MaxL.

  • Maximum database size Exchange 2013 Standard

    Hi,
    Does anybody is aware of database size limitation for Exchange 2013 Standard. I remember in older version there was a registry tweak to increase database limits.
    Thank you 
    alfa21

    Hi,
    This is the official answer :
    Supported: Approximately 16 terabytes.
    Best practice:
    2 terabytes or less.
    Provision for 120 percent of calculated maximum database size.
    https://technet.microsoft.com/en-us/library/ee832792%28v=exchg.150%29.aspx
    Cordialement,
    Mickaël LOPES
    Blog : http://lopes.im 
      

  • Is filestream filegroup size considers in database size?

    while calculating database size will it necessary to consider filestream filegroup size??
    sp_spaceused stored procedure returns size of database but it consider only data and log files. 
    my question is : can we consider filestream filegroup size while calculating database size or is there any other way which already consider filestream filegroup size??

    Hi priyanka,
    Since you can get the size of
    filestream files via  the T-SQL statement and the sys.database_files, I will mark their post as answer for your question.
     That way, other community members could benefit from this sharing. Thanks for your understanding.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • SQL azure database size not dropping down after deleting all table

    Dear all,
    I have a simple database on Azure for which I have deleted all table data. The size of the database is still showing 5Mb of data and I am charge for that. I have heard that this may happen from cluster index getting fragmented.
    I have run  a querry I found on internet on all my table index to show percentage of fragmentation and all report 0%.
    DBA is not so my job but what could it be or how can I reduce that size ?
    ON premise I would use COMPACT DB but not available in azure like some others DB action
    Thnaks for tips
    regards

    user created objects/data are not the only ones stored in your database. you got system objects and metadata as Mike mentions above.
    are you trying to skip being charged if you're not storing data? looking at the pricing table,  you'll still get charged the $4.995 for the 0-100MB database size range.

  • Tables are deleted but database size does not change in sql server 2008r2

    Hi All,
    20GB Tables are deleted in my database but database size does not change and disk size showing same size.

    Hi ,
    I have ran the Disk usage by Top Tables report and Identified couple of tables with unwanted data for last 5 years. I have deleted the data for the first 3 years and then ran the Disk usage by Top Tables report again. When I compared the report before
    and after the data deletion, I have noticed certain facts which is not matching with what I know or learned from experts like you. The following are the points where I am looking for clarification:
    1.Reserved (KB) has been reduced. I was expecting the data Reserved (KB) will remain the same after the data deletion. 
    2. The Data(KB) and Indexes(KB) fields have been reduced as expected. The Unused(KB) field have been increased as expected.
    I was expecting the total of Data(KB) and Indexes(KB) field space gained will be equal to the Unused(KB) field gained after deleting the data. But that is not the case. When I deducted(subtracted) the difference in  the Reserved(KB)(Difference before
    and after data deletion) field from the Total of space gained from the data deletion is equal to the Unused(KB) gained field value.
    I am not a SQL expert and not questioning but trying to understand whether we really gain space by deleting data from the tables. Also keen to get the concepts right, but my testing by deleting some records confused me.
    Looking ahead to all your expert advice.
    Thanks,
    Vennayat

  • What is the best practice on mailbox database size in exchange 2013

    Hi, 
    does anybody have any links to good sites that gives some pros/cons when it comes to the mailbox database sizes in exchange 2013? I've tried to google it - but hasn't found any good answers. I would like to know if I really need more than 5 mailbox databases
    or not on my exchange environment. 

    Hi
       As far as I know, 2TB is recommended maximum database size for Exchange 2013 databases.
       If you have any feedback on our support, please click
    here
    Terence Yu
    TechNet Community Support

  • How to get the database size of several system

    Hi
    We've got a lot of database system on our landscape. I want to make a simple report to get the size the all our database on a weekly base.
    I try to get a RZ20 value on it without succes.
    Do you know a sql request that i could launch on all my database to get this information ? i did'nt find any V$^view with this information.
    thanks for your help
    florent

    "The database size" can be
    - the total size
    - the filled size
    - the filled size without undo/temp
    You can use DBACOCKPIT to centrally manage multiple instance and check the sizes.
    Markus

  • How to determine the database size corresponding to the nber records in DSO

    Hi Colleagues,
    I would like to determine the database size corresponding to my new BI project.
    I know the number of records uploaded in the DSO from the source system for the intialization phase.
    How can I deduct the database size / disk size corresponding to the number of record uploaded ?
    Thanks,

    Hi Ram,
    I am with SAP BI Release SAPKW70019
    I do not have the option Single Table analysis -
    I have in DB02 or ST04 the following options.
    *- Space*
    -- space overview
    ->database
    --overview
    ->users
    --overview
    --detailed analysis
    -> tablespaces
    --overview
    --detailed analysis
    -> segments
    --overview
    --Detailed analysis
    --Detailed Analysis Aggregated
    -> Additional Functions
    --Collector Logs
    --BW Analysis
    Where should I go through ?
    Thanks

  • Sharepoint 2010 - configuration database size limit

    Hi,
       We have below scenario in our production farm. Ours is a SharePoint 2010 Enterprise Edition server.
    Medium size farm (4 WFE, 4 App Servers, Content DBs in separate tier. No SharePoint search in this farm)
    Configuration DB reached 250+ GB. Please clarify below queries.
    1. What is the boundary limit for configuration database size?
    2. How we can scale the configuration database?
    3. Can we add multiple configuration database per farm?
    4. What are the best practices and regular maintenance activities to be done to keep the configuration db size under control?
    It would be really really great if someone gives some good knowledge in this area.

    1) Not aware of one
    2) You can add multiple files to the file group
    3) No
    Is the growth in the MDF or the LDF (log file)? If it is in the log file, are you using high availability (Clustering, Mirroring, Log Shipping, AlwaysOn)? If so, you need to run a BACKUP LOG periodically to maintain the LDF size, or allow you to truncate
    the LDF.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Best Trategy to reduce the Database Size

    Hi Everyone,
    In our Client's Landscape SAP systems have been upgraded to newer versions whereas our client want
    one copy of older Production systems (one copy to retain)
    1) SAP R/3 4.6 C system  (database size of this system is approx 2TB)
    2) SAP BW 3.0 (database size of this system is approx 2TB)
    Now CLient wants us to reduce the database size via re-organization because Archiving of IDOCs & Links we have already done
    Client has recommended for :
    1) Oracle Export/Import: Only Oracle DBA can do (ignore this one)
    2) Database Reorganization : We have tried Reoragnization via BRtools but found very tedious 9 (ignore this one)
    3) SAP Export/Import : Via this way we want to reduce the database size
    Can anybody Tell us How much Free space do we require in order at OS level in order to store the Database Export
    of Two Databases of size around 4TB & what would be the best strategy of reducing the Dabase size.
    Via SAP Export/Import how much approx how much database size will be reduced
    Thanks & Regards
    Deepak Gosain

    Hi,
    >Can anybody Tell us How much Free space do we require in order at OS level in order to store the Database Export
    >of Two Databases of size around 4TB & what would be the best strategy of reducing the Dabase size.
    The only realistic way to know is to do a system copy of the production system on a testbed system and to test the Database Export.
    If you really want to decrease the database size you will have to archive a lot more than the IDOC archiving object.
    Regards,
    Olivier

  • One of the BizTalk Server processes in the affected computer is being throttled for significant periods because of high database size exceeding the threshold

    Hello Experts,
    I have complex Biz Talk 2013 farm having 20 servers,15 Hosts. In my production environment even if there is no traffic i am getting throttling errors from SCOM for my all the production hosts.
    Error : One of the BizTalk Server processes in the affected computer is being throttled for significant
    periods because of high database size exceeding the threshold
     I checked following things:
    1. MsgBoxDB size 748732 KB
    2. Spool table size  53 MB
    3. Tracking DB size 26724 KB
    4. Host settings --  Message Queue Size = 100, MsgCount = 50000 , Spool MP = 10 , Tracking MP = 10
    5. Ran Message Box viewer  and did not found any error related to DB size. (which counter i should focus on in MBV)
    Note -- for DB i am sharing full backup size because it does not have log file size.
    Please suggest where i should focus?
    Is SCOM reporting correctly because everything is fine in biztalk ?
    Thanks
    Yagya
    https://www.mcpvirtualbusinesscard.com/VBCServer/card.aspx?tag=YagyaDattMishra&wa=wsignin1.0

    Hi Yagyam
    I remember this error from SCOM when you use the standard SCOM BizTalk pack.
    Check the eventlog of the server, do you see any errors in event log, this could give some clue to the root cause. Whenever you have this alert from SCOM, you must have
    some entries in eventlog relating to the alert raised by SCOM.
    Is your message processing by BizTalk hosts are normal? Run the performance monitor to see the bottleneck. Check if there is really throttling.
    As mentioned in this blog, check the state of the SQL Agent on BizTalk's SQL database server, may be try restart the SQL Agent on BizTalk's SQL database server.
    http://blogs.msdn.com/b/timdel/archive/2008/11/19/why-i-love-scom.aspx
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Finder Folder Size Calculations

    When I'm archiving, I have to do a lot of Get Info to calculate the folder sizes for DVD burning. Problem I'm having is the file size calculations start taking forever after working for a few minutes, or they don't calculate at all. Usually works fine when I start but after a minute or so It's like the computer get's tired and just stops. Even if it's a 1mb folder it will have trouble.
    Is this normal? Seems really odd that something so incredibly simple can make my archiving process so difficult.
    Files reside on a network HD.
    Thanks for any help.

    I'd create a disk image of appropriate size, mount it, copy items to it until it tells you there's no more room. Then, burn it.

  • How is the font size calculated in pixel sized documents?

    Hello to all,
    I am working with Illustrator CS4 on a web design. In the document setup, I set the size to 1000*1600 pixels. Then, I tried to add some text in font size 12 pt. The font appears *very* small. My objective was to use the same font size settings in my Illustrator file as I will later do in the HTML/CSS coding. How do I get Illustrator to scale the fonts in the same way as the browser does - i.e. a 12 pt text in the browser has the same size as a 12 pt text in Illustrator? Infact, I am looking for a setting where I can define the resolution of text size calculation.
    Best regards
    Joerg

    Illustrator is a print-oriented, object-based vector drawing program, not a web-oriented, pixel-based raster painting program.
    Illustrator's ruler is designed to represent real-world measure, not counts of pixels.
    A pixel is not a measure. Pixels have no real-world measure.
    Therefore, when Illustrator's ruler pretends to represent "pixels," it has to assign some real-world scale to them. It defaults to the measure of a point. A point is a real-world measure.
    Similarly, a computer's operating system has to decide how many screen pixels it will use to represent a real-world measure at 100% zoom.
    Mac OS defaults to using 1 pixel to represent 1 point. (72 PPI)
    Windows and web browsers default to using 1.33 pixels to represent 1 point. (96 PPI)
    So tell a browser to display 12 point type, and it will use 16 pixels to do that.
    Given Illustrator's default that 1 pixel measures 1 point at 100%, Illustrator uses about 9 pixels to render the cap height of 12 point Verdana.
    GIven the browsers' default that 1 point renders to 1.3 pixels, the browser uses about 12 pixels to render the cap height of 12 point Verdana.
    So given that Illustrator and the browser are going to use different numbers of pixels to rasterize 12 point type, how do you get a browser to use the same number of pixels to render 12 point Verdana as Illustrator does? Simple: Specify the type size in the HTML code by pixels, not by points. This is a screenshot of Internet Explorer on Windows displaying a web page which contains:
    A raster image of 12 point Verdana exported from Illustrator, using its default 72 PPI rasterization
    Live 12 pixel Verdana HTML text.
    Live 12 point Verdana HTML text.
    Inversely, there are other ways to work around Illustrator's 72 PPI default when you want to rasterize Illustrator type so that it looks the same as the same-point-size text in HTML.
    When using Save For Web & Devices, specifiy 133% instead of the default 100%.
    Scale the artwork to 133% before exporting via Save For Web & Devices using the default 100%
    When rasterizing, rasterize to 96 PPI instead of 72 PPI. (1.33 as many pixels)
    When exporting, export to 96 PPI instead of 72 PPI. (1.33 as many pixels)
    Or, do what I do: Get a decent screenshot utility. When I want to rasterize something from Illustrator that contains text that I want to appear online at the same scale that it appears to me when working in Illustrator, I simply zoom to 133% and take a screenshot.
    JET

Maybe you are looking for

  • How to find out the locks in BPS & IP

    Hi Viewers, Can any body tell me how to find out the locks in BPS and same thing in IP.If possiable provides navigation steps also. Thanks & Regards, Venkat Vanarasi.

  • Blackberry 9300 Small clock icon and fast battery drain

    Hello there! My girlfriend's been having problems with her 9300. A couple of days ago, a small clock icon started appearing whenever she would try to use a menu item on her blackberry, or when she would try and turn off the lock. She also found that

  • I got locked out of my ipod how do i get back in

    how do i get unlocked out of my ipod

  • Foreign Vendors ACH Payment

    Hi All, In my company, we are already processing Domestic Vendor Payments (USA) using ACH payment. We send EDI 820 to bank. Our company requirement is to process Foreign Vendor Payments also using ACH Payment. Could any one let me know what are the n

  • Adding file names so an Encore Slide Show

    I've installed Encore 2.0 as part of the production studio. I want to build a DVD which includes a load of Family assets such as stills and video. I have worked out how to do everything I want in encore EXCEPT I would like to overlay the name of the