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.
Tags: Database
Similar Questions
-
Heavy calculations in the database.
Is it wise to place heavy calculations in the database?
Lets say, we need to create in-app to calculate a problem heavy matimathical.
In Apex, each code is run in the oracle database. What are the resources used for this calculation?
Java database programming is only used for the extraction of the code. That's what I see in other departments. so I guess the resources of computers (where the java application is installed) are used for calculations.
For heavy, so apex calculations always a good option?
RaoulHi Raoul,.
It depends on what you mean by heavy calculations.
As you say, Apex code is executed in the database, most of this is PL/SQL that runs in the server of database resources. for example, memory, processor, etc. IO. PL/SQL is a mature programming language that can be stored in a compiled state, which gives it a factor of performance approaching compiled languages such as C. While it may be true that you can get better performance of well written code compiled like C, overload caused by the first extraction of data to perform the calculations on in the first place often means THAT PL/SQL has an advantage. In other words, more calculations are the data, the better.
I don't know what you mean by "Java database programming is only used for the extraction of the code". The database is used for the storage and retrieval of data. Java is used as a general programming language which has the advantage of running in a variety of environments. Overhead, he pays for it are that it isn't really a compiled language and therefore performed accordingly. Accordingly, it is a good language for the presentation layer, where there need work on a wide variety of customers, but you would not use it as general processing language.
If you condition is to do some heavy math and you use a database to store the raw data for these calculations so I think that you will find the database and internal languages such as SQL and PLSQL will be run and any other environment in General and certainly much better than the Java language.
Concerning
André -
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.
-
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 BLKSIZEVALUE 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 (+)
/ -
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
RIFuser10737570 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 -
Want to migrate the database (4node RAC) 4 TB size of 10.2.0.5(8 rompt = 4 prim/4 veille) to 11.2.0.4 on the new servers where the new type servers Primary (4 nodes) and Eve (4 nodes). So with minimum downtime I have restore and recover again on 11.2.0.4 server must then clone that to create the day before. Here, my question is can I take 0 backupp level before hand and restore on target (new) then primary at the time to leave the downtime take backup of level 1 of 10g and then retrieve it on 11g (new server) after successful recovery I'll perform clone to form eve of database on the new server. does this strategy work? If it works, can someone suggest me steps how can I need recover with backup after restoring the backup of level 0 on 11g. Like should I upgrade before you retrieve it with level 1 backup or I can update and then recover with the level 1 backup from the old server to the new server.
Here is former servers of RHEL 5 version and new servers are RHEL 6 release.
Post edited by: Umair_ali
1 backup L0
2 restore L0
3. L1 and ArchiveLogs database backup
4. copy BackupPieces L1 and ArchiveLog BackupPieces on new server
5 CATALOGUE START WITH... to catalog the BackupPieces
6. TOGETHER until lastavailable SNA / Archivelog + 1
7 RECOVER DATABASE (should automatically identify the L1s and to apply ArchiveLogs)
8 STOP
9 START UPGRADE
10. run catupgrd.sql
You should also take care on the locations of the data file, dump, instance settings destinations, all link database from the database, connectivity application etc.
Hemant K Collette
-
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.
-
Cannot start the database after reducing the size of the RAM
Hi all
I have a database of GR 11, 2 installed in virtual box VM. Initially, I got 3 GB of RAM for this machine (when the database has been installed).
I then reduced it to 1 GB. Then I tried to start the database, but I got error below.
Help, please.
Thank you
Mauricette.
User618902-OC says:
Is it not possible to reduce the size of the RAM and start the database with configuration on MEMORY_TARGET changes?
What part of "MEMORY_TARGET not supported on this system" do you NOT understand?
-
Approxmately how long it would take for the copy of application to be completed, if the size of source database is about 15 GB?
Tool: Utility HFM CopApp
Database: SQL 2008
Server operating system: windows 2008
RAM: 64 GB
Source HFM App DB(Assume HFM_Source) Dimensions: 15 GB
HFM version: 11.1.2.2.306
Note: The DB(Assume HFM_Source) Source and the Tatget DB(Assume HFM _Target) are existed in a DB server (suppose HFMDBServerName)
Hello
A similar copy we did recently in version 11.1.2.3, it took us less than an hour. However, the time is related to the performance of the database and the performance of the server.
Kind regards
Thanos
-
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
-
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
-
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 you790072 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
-
Hello
How to get the total size of the database?
Thanks in advanceTry this link
http://nimishgarg.blogspot.com/2010/05/Oracle-total-size-of-database.html
-
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 youHello..
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
-
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)...
I would like to know the a daring ijn...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.
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 AMHello..
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
-
ENVY 100 D410a: Printer loses connectivity after mode "Eve"
I have 2 printers, OfficeJet 5746 and Envy 100 D410a and both meet the same problem. They work very well, then after having been slowed, printing "printer not connected" is displayed. I did the exercises to unplug the router, remove printers from t
-
NB100 - Surface is very prone to scratches
Hello I noticed the NB100 surface is quite prone to scratches and Ive managed to gather some light of myself that show when the light reflects against it Are there methods/tips/disguses to hide this? Thank youx
-
I'm giving away a phone to my friend so I erase all settings
SO when I erase everything on my iPhone in the settings. It goes back to the lock screen saying to slide to set up so then makes me choose a language, wifi, etc. & when he gets to the part to activate the iphone. It tells me to enter the Apple ID & p
-
Usable RAM remains at 2.75 gb when going from 3 to 4bg
-
I get an error message (80070005) when download windows updates.
I get an error message (80070005) when download windows updates. This laptop is only 6 months old. I tried everything I know to do. Please help if anyone know what I should do to fix this problem.