Size of Database
Experts,
We are in ahead of Archiving project in SAP.
I want to know, how I could find size of Database tables under Objects.
For eg . Object MM_EKKO under that there many database table (A068,A081 etc)
I want to know size of that database table.
I know function DB05 and DB02 but it is very time consuming to run one record.
Is there any other table name or any other option to find?
Thanks
Hi,
DB05 calculates "Total number of rows * Requested bytes per row" which is not a physical requirement over the tablespace. This is a simple approach and can be used buffer requirements of the table, for example.
DB02 shows space allocation of the table, over the tablespace. The data is not store raw format when the database write the data to the datafile. It performs some algorithms to save space then writes to the datafile.
Because of this reason the calculations are different between DB02 and DB05.
Best regards,
Orkn Gedik
Similar Messages
-
Hi,
How to get total size of database??
Advance ThanksHi,
select
"Reserved_Space(MB)", "Reserved_Space(MB)" - "Free_Space(MB)" "Used_Space(MB)","Free_Space(MB)"
from(
select
(select sum(bytes/(1014*1024)) from dba_data_files) "Reserved_Space(MB)",
(select sum(bytes/(1024*1024)) from dba_free_space) "Free_Space(MB)"
from dual); -
Want to reduce the size of database
Hi Guys,
We have Oracle 10G database over Unix platform, Customer want to reduce the size of database as much as possible and the ami of customer to move the storage area of this database to other one. so we resize some datafiles and get lots of free space at mount point but while checking the utilzation of table is showing somw what different as other . kindly the below O/P:
% MaxPoss Max
Tablespace Name KBytes Used Free Used Largest Kbytes Used
*a DATA 45,875,200 8,740,992 37,134,208 19.1 1,728,512 100,663,248 45.6
*a HIGH_S_DATA 21,504,000 1,331,520 20,172,480 6.2 3,048,704 0 .0
*a HIGH_S_IND 15,360,000 853,568 14,506,432 5.6 1,661,504 0 .0
*a IND_DATA 57,241,600 3,512,832 53,728,768 6.1 3,995,648 100,663,248 56.9
*a LOW_S_DATA 357,376,000 28,436,736 328,939,264 8.0 4,063,232 167,772,080 213.0
*a LOW_S_IND 268,902,400 12,148,352 256,754,048 4.5 4,063,232 67,108,832 400.7
*a SYSAUX 1,433,600 897,152 536,448 62.6 485,312 33,554,416 4.3
*a UNPARSED_DATA 102,400 128 102,272 .1 102,272 0 .0
*a USERS 4,096,000 64 4,095,936 .0 4,063,232 33,554,416 12.2
*m SYSTEM 1,433,600 835,520 598,080 58.3 597,952 33,554,416 4.3
*m TEMP 54,033,408 54,033,408 0 100.0 0 33,554,416 161.0
*m UNDOTBS1 37,650,416 426,416 37,224,000 1.1 4,063,232 33,554,416 112.2
sum 865,008,624 111,216,688 753,791,936
SQL> select sum(bytes/1024/1024/1024) from dba_segments;
SUM(BYTES/1024/1024/1024)
54.5392456
SQL> select sum(bytes/1024/1024/1024) from dba_data_files;
SUM(BYTES/1024/1024/1024)
773.406235above all o/p is different, no able to understand it. please help me in this .
Could you please tell me is there any way to reset the HWM at Datafile level and how we reset the HWM of those tables having Materlized view?Hello,
I'm not really sure what is the problem here? Everything seems to be OK. From what I have seen ,your database can stand to be resized down quite a bit.
The actual amount it can be resized down depends on the highet HWM for the segments in the datafile, as in:
set line 200col file_name format a90
select file_name,
ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) USED_SPACE,
ceil( blocks*&&blksize/1024/1024) SIZE,
ceil( blocks*&&blksize/1024/1024) -
ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) ECONOMY --how much of the space can be reclaimed
from dba_data_files a,
( select file_id, max(block_id+blocks-1) hwm -- here we get the max hwm for the datafile from the extents residing within it
from dba_extents
group by file_id ) b
where a.file_id = b.file_id(+)
and ceil( blocks*&&blksize/1024/1024) -
ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) > 2000
>
You can also do a reorganization of the segment you suspect has a high degree of reclaimable space within its extents (high HWM and low actual space used). You can run segment advisor to help with that.
Hope it helps, -
Approximate physical size of database
Hi Experts,
I wanted to know my physical size of database like datafiles, tempfile occupied currently and free space can any one let me know do we have any query to get the information.
Thanks,
S@ntosh.psantosh wrote:
I wanted to know my physical size of database like datafiles, tempfile occupied currently and free space can any one let me know do we have any query to get the information.Why do you want this (mostly useless IMO) information? If the total is for example 6123MB, what does this tell you? How does this enable you to manage the database better? Or understand database performance, or database growth? That number alone is a pretty meaningless number.
Also, what about database's footprint ito control files, archive logs, rman backups, bdump, udump, cdump and other directories? What about database tables that use BFILE datatype referencing external files and using that as part of the database's data? Etc.
Database size of x amont of MB/GB/TB is IMO a number that says nothing about the database - and is pretty much useless. Database space is not just a single number. It is much more complex than that. The important thing is to understand what space is needed, for what purpose, and how Oracle uses it. -
How to calculate the size of database (a different one)
Hello Friends,
I am told to move the data from server to another machine (cloning is one very good option, I agree. But I expect a different answer regarding exports and imports). so How should I go about the task. The destination machine has got unlimited space. So thats not a problem. My questions are :
1) How should I start the task ( I generally go for studying the structures and their sizes. Is it ok ?)
2) If I am using Unix machine and there is a limitation that my server will not support file sizes of more than 2 GB, What should I do ?
3) Shall I have to go for a full database backup or fragment the task ? If I do that , there are many schemas, so it will become tedious. But full backup will exceed OS size limitation. What should be done ?
4) Is there anyway, I can go through a dump file, to find out, the database objects present inside that and note the related dependencies.
Please respond.
Regards,
Ravi Duvvuri1) They are Unix machines. So will the size problem occur(if there is a limitation). How to overcome that?
If the OS are of the same version you will have any problem. Regarding the storage only you have to have space in disk to store the datafiles, redo logs and controlfiles and nothing else.
2) I am trying Export/import measure. Though there are other good methods, I just want to explore the full capabilities of Exp/Imp
r.- Recreate the controlfiles is more effective and fast if the OS are of the same version.
3) And the oracle version is 9i 2. (If I have to perform this on 8i (both source and destination, will the methods are going to differ ?)).
R.- The method is the same for 8i/9i/10g.
How should I go about doing this export/import ?
r.- To use this method you have to have the original database started.
To recreate the controlfile without having the datafile that you mentioned you have to get out it from the CREATE CONTROLFILE sentence and that's it.
For Example: I mean, if your database has 8 datafiles and you have only 7, you have to include only 7 in the CREATE CONTROLFILE sentence.
Joel Pérez
http://otn.oracle.com/experts -
List of exchange users with mailbox size per database.
Hello Friends,
Need small help i need to take out the list of users start with Alphabet A, B , C till Z per database along with their mailbox size limit so is there any simple way to get the list.
Thanks
AmitHi,
How about this?
http://help.outlook.com/en-us/140/gg576861.aspx
EDIT: Or maybe this:
$out = @()
$users = Get-Mailbox -ResultSize Unlimited
ForEach ($user in $users) {
$userMailboxStatistics = Get-MailboxStatistics $user
$props = @{
Username = $user.SamAccountName
DisplayName = $user.DisplayName
Database = $user.Database
OrganizationalUnit = $user.OrganizationalUnit
'Quota Status' = $userMailboxStatistics.StorageLimitStatus
TotalItemSize = $userMailboxStatistics.TotalItemSize
$out += New-Object PsObject -Property $props
$out | Sort-Object Database,DisplayName | Export-Csv .\mbxDetails.csv -NoTypeInformation
Adjust the $props hash as needed to add/remove properties to the output object.
Don't retire TechNet! -
(Don't give up yet - 12,420+ strong and growing) -
Managing more than 1 TB size of Database
Is there any guidance available to handle more than 1 TB size Database
on Unix
and Windows NT/2000
Thanks
Regards
JagI don't know that there is anything magical that changes when you reach a particular size database. You face the same type of challenges with a 1 Tb database as with a 100 Gb database, it's a question of magnitude.
The data warehousing guide is probably useful here. If you're not familiar with RMAN, you should take a look at the RMAN reference. You may want to purchase Robert Freeman's RMAN book as well-- it's an excellent reference. Whatever parts of database administration you're the weakest on are probably due for a refresher course.
The documents I referred to (and a number of others) are available at http://tahiti.oracle.com
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
How to know used space(size) of database or user?
Hi
can anyone let me know how to caluculate the used space(size) of the database ans user(schema).
Thanks in advance.Hello,
For the used space of the database you may use the following query:
select sum(bytes)/(1024*1024) "Mo" from dba_segments;For the used space of the Schemas you may use the query below:
select owner, sum(bytes)/(1024*1024) "Mo"
from dba_segments
group by owner;Hope this help.
Best regards,
Jean-Valentin -
To check incremental size of database
hello guys
is there any way i an check through query what was my database size tomorrow.
actually i want to check my database increamental size.
i want how much my database expand on daily bases.actually we take backup from 3rd party tool & in that daily size is not mentionedAman.... wrote:
Hi there,
First apologies for the 100f part. That was just a comment for fun since you must have guessed, there is no such package called DBMS prophet ;). So I just pulled it a little bit more further that it would come in a really futuristic version like 100f. Please don't mind and once again apologies if you found it offensive. It was just meant for fun.
I am not in front of machine right now so can't tell you but it's somewhere where segment information is shown. Try checking in the administration tab. I am traveling right now so can't be of much help.
Aman....Aman,
Don't despair. I got the joke. Just couldn't come up with a worthy reply! OP probably is too young to have understood the bit of history at the link, but I would have thought reference to dbms_prophet should have been pretty obvious. -
Is tablespace block size and database block size have different meanings
at the time of database creation we can define database block size
which can not be changed afterwards.while in tablespace we can also
define block size which may be different or same as define block size
at the time of database creation.if it is different block size from
the database creation times then what the actual block size using by oracle database.
can any one explain in detail.
Thanks in Advance
RegardsYou can't meaningfully name things when there's nothing to compare and contrast them with. If there is no keep or recycle cache, then whilst I can't stop you saying, 'I only have a default cache'... well, you've really just got a cache. By definition, it's the default, because it's the only thing you've got! Saying it's "the default cache" is simply linguistically redundant!
So if you want to say that, when you set db_nk_cache_size, you are creating a 'default cache for nK blocks', be my guest. But since there's no other bits of nk cache floating around the place (of the same value of n, that is) to be used as an alternate, the designation 'default' is pointless.
Of course, at some point, Oracle may introduce keep and recycle caches for non-standard caches, and then the use of the differentiator 'default' becomes meaningful. But not yet it isn't. -
Change initial size Log Database
Hi All,
I have the same situation with http://social.technet.microsoft.com/Forums/en-US/e9c58be8-d4f2-4bb9-9cd6-921583f90afe/log-file-initial-size-is-not-changing?forum=sqldatabaseengine but didn't solve my issue.
If I change the initial size (smaller size), it revert back. When I want to shrink, it said I have 99% available space. But after I execute it, the size doesn't shrink :(
Autogrowth is by MB, not percentage.
Any idea ?
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Krisna Ismayanto | My blogs: Krisna Ismayanto | Twitter:
@ikrisnaHi,
You can not shrink Data or log file below its initial using alter database command, however you can use DBCC Shrinkfile command to shrink individual files (Data/log).
Refer below article on Database Initial Size.
SQL Server: Misleading Database Initial Size Label
Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
Praveen Dsa | MCITP - Database Administrator 2008 |
My Blog | My Page
Hi Praveen
im Ichwan, Krisna college.
based on your article, i tried to repro the case with my dummy database
I run this query to expand my initialize log file
and then the file changes to 1500 MB,
and then i try to use DBCC query to shrink LDF file
the result my ldf file change to 50 MB.
can i use the same methode to my production server?
is there any preparation or impact?
thanks before :)
regards
Ichwan -
Dump File Size vs Database Table Size
Hi all!
Hope you're all well. If Datapump estimates that 18 million records will produce a 2.5GB dumpfile, does this mean that 2.5GB will also be consumed on the database table when this dump file is imported into a database?
Many thanks in advance!
Regards
ACdoes this mean that 2.5GB will also be consumed on the database table when this dump file is imported into a database?No since the size after import depends on various factors like block size, block storage parameters etc.
-
How to control the size of Database's image
hi,
I have already saved image in database, & i also can retrieve image from database. But My problem is that when i save big image then it shows with it's original size. But i want to see its size what i want? But how this possible?i want to see it's small size. i cannot do it. I know how to control the image with ImageIO . But i don'nt know how to control the size of an image from database. I cannot do it. Please Help me.
Thanks
binaHi,
You can control the database size at technical setting level based on ur requirement. Field name is Size category.
Thanks. -
How can we see what is the CPU and RAM size for the database?
<div class="jive-quote">select * from v$version</div>
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for HPUX: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Productioncat /proc/meminfo
root: total: used: free: shared: buffers: cached:
Mem: 1055760384 1041887232 13873152 0 100417536 711233536
Swap: 1077501952 8540160 1068961792
MemTotal: 1031016 kB
MemFree: 13548 kB
MemShared: 0 kB
Buffers: 98064 kB
Cached: 692320 kB
SwapCached: 2244 kB
Active: 563112 kB
Inact_dirty: 309584 kB
Inact_clean: 79508 kB
Inact_target: 190440 kB
HighTotal: 130992 kB
HighFree: 1876 kB
LowTotal: 900024 kB
LowFree: 11672 kB
SwapTotal: 1052248 kB
SwapFree: 1043908 kB
Committed_AS: 332340 kB
cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 31
model name : AMD Athlon(tm) 64 Processor 3000+
stepping : 0
cpu MHz : 994.927
cache size : 512 KB
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce (snipped)
bogomips : 1956.97
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp -
Size of database dump using DBMCLI
Hi,
Anybody know of a one liner (or more) to get the size of a database backup dump to disk using DBMCLI?
ThanksHi Mark,
you should be able to use the following DBMCLI syntax for both liveCache/Unix and CS/Windows:
<b>dbmcli -d <SID> -n <host> -u <dbm-user>,<dbm-pwd> -uSQL <sap-user>,<sap-pwd> sql_execute select serverdbsize from serverdbstatistics</b> [followed by Enter]
example:
dbmcli -d LC1 -u control,control -uSQL sapr3,sap sql_execute select serverdbsize from serverdbstatistics
(in the above example I omitted the '-n <host>' part, because the database resides locally)
I hope that helps you out.
Kind regards,
Roland
Maybe you are looking for
-
Question: why isn't how to delete a file available.
How come you have to search for the information on how to delete a file from Adobe Reader. This should be in the instructions on how to use with how to download. Does anyone agree?
-
I am getting what appear to be SSL errors in the apache logs when I try and use an SSL certificate on a website listening on a non-standard port. I have a site, lets call it test.example.com, that is setup on port 8843. When I use no SSL cert, I have
-
IPlanet version and Windows 2003
What is the lowest iPlanet version supported with Windows 2003?
-
Pass parameter between programs
Hi, I need to pass one parameter between 3 programs : That is the actual flow of my parameter. SAPF110V -> RFFOBE_I -> which include ZRFFORI99B) get param <- RFFOBE_I <- set param with statments SET PARAMETER ID 'ZDBL' FIELD p_doublon. GET paramete
-
How do i remove a incompatible addin that is still working ?
I had Kaspersky anti banner working on my previous version of Firefox, Auto updated Firefox, now says anti banner is incompatible with this version of firefox! BUT it is still working, and stopping me logging into some sites. I want to disable or pre