ASM space consumption

Hi,
We have 2 node RAC (10.2.0.3 db) hosted in ASM in AIX 5.3. Our db size is currently 1.8TB. We have purging policy to hold only 3 months data + current month data. Some tables use XML Blobs which take most of the spaces. We do purge from this table as well.
What i believe is, after this purging is complete, a rebuild of the indexes involved in the tables purged will reclaim the space (extents for that matter) used and be used by incoming data thereby the size of the table will not grow more. This has been the case with the application's old version (which was 9.2.0.6 HACMP clustered). But now in this 10.2.0.3 ASM database this is not happening. The purged space is not being reclaimed and only new space from ASM is utilized increasing the ASM space.
Is this how ASM is supposed to behave or any way to make Oracle use the purged space back. Comments are welcome.
Thanks

v$asm_disk will show the free space in whole disk which has not been allocated by any segment. Since deleting some LOB data doesn't release the space from segment, you wont be able to see that free up space in v$asm_disk view. You need to check the free space in tablespace using DBA_FREE_SPACE and also importantly, check the free space in segment itself using DBMS_SPACE package. After purge, once you shrink the lob segment then only that free space will be released by that segment to the tablespace and you should be able to that space in DBA_FREE_SPACE, again not in V$ASM_DISK because the free space is part of tablespace or datafiles and since we never shrink data files, that free space will not be visible in v$asm_disk. But before shrinking LOB, read metalink doc: 386341.1, that will be real helpful.
Truncate should have deallocated all the space by default, so check DBA_FREE_SPACE to find out total free space you have.
Thanks
Daljit Singh
Edited by: Daljit on Jul 9, 2009 11:50 AM

Similar Messages

  • ASM space increased after compression of tables

    Hi all,
    I will have compressed some my huge tables in dataware house database , tables size are reduce  after compression, while on ASM space has been increased.
    datbasebase is 10.2.0.4 (64 bit) and OS is AIX 5.3 (64 bit)

    I have checked the tablespaces of compressed table now. And it shows huge free space:
    Tablespace size in GB
        Free space in GB
    658
    513
    682
    546
    958
    767
    686
    551

  • Space Consumption by Schemas

    Hi All,
    How do I determine space consumption of each schema present in my DB's ? Is there any tool or any Query that can perform this task ?
    Thanks

    907490 wrote:
    Hi All,
    How do I determine space consumption of each schema present in my DB's ? Is there any tool or any Query that can perform this task ?
    Thanksquery DBA_EXTENTS

  • Migrate to new ASM space..

    What I should do, if I want to migrate to new ASM space? How to migrate from old to new?

    tutus wrote:
    What I should do, if I want to migrate to new ASM space? How to migrate from old to new?What's the db version? What you mean by "migrate to new asm space" ? You mean from File system to ASM or from ASM on disk group1 to another disk group?
    HTH
    Aman....

  • Diagnosing an ASM space issue for a primary and a standby database instance with external redundancy.

    I've received an alert from Enterprise manager saying "Disk Group DATA_SID requires rebalance because at least one disk
    is low on space". My colleague who I would go to with this question is unavailable, so this is a learning opportunity
    for me. So far google and Oracle documentation have provided lots of information, but nothing that answers my questions.
    I've run the following query on both the primary and standby databases ASM instances:
    select name, disk_number, sector_size,os_mb, total_mb, free_mb, redundancy from v$asm_disk;
    On the primary I get 4810M Free space and 18431M Total Space
    on the standby I get 1248M Free space and 18431M Total Space -- this is the one that complained via OEM
    When I run the following query in the database instance:
    select sum(bytes)/1024/1024 MB from dba_segments;
    I get 3736.75M as a result.
    My questions are:
    1. Will OEM's suggestion to rebalance the disk actually help in this situation since the instance is set up with external redundancy?
    2. If I've got 18G of space and only 3.7G of data, why is OEM complaining?
    3. How can I reclaim what I presume is allocated but unused space in my problem disk group?
    4. How can I determine what extra data the standby has that the primary doesn't since both have the same total space allocation, but different amounts of free space?

    Thank you for the reply. That link is very good.
    We are an 11.1 version of our database. Linus is OEL 5.6.
    So, looking at the portion of the link that refers to 'Add Standby database and Instances to the OCR' - If we use SRVCTL to give the STANDBY the role of ‘physical_standby’ and the start option of ‘mount’, what effect will that have if the STANDBY becomes our PRIMARY?
    Would these database settings need to be modified manually with SRVCTL each time?
    We understand why the instance is not starting when the node is rebooted, we are looking for a best practice of how this is implemented.
    Thank you.

  • ARCHIVELOG space consumption

    Hi!
    I am new to DBA world and would like to ask how much space is consumed when ORA XE database is in archivelog mode. That is if XE is limited to 5 GB of data how much of that space is ment to be for archivelog segment. Furthermore what exactly(besides DATA) is consuming those 5 GB of available space(db objects, data, ???)?
    Thank you in advance,
    Marinero

    Thank you C.
    I wasn't sure weather files for archivelog were part of those 5 GB DATA space. I was thinking that if you have lets say 2 of 5 GB of space consumed and last backup was made when there was only 1 GB of data in DB that actual consumption is 3 GB(2GB for data and 1 GB for archive log). Thank you once again for clarification.
    Regards,
    Marinero

  • Unecessary Space Consumption

    ok sooo when you plug in your ipod and it comes up under devices and you click on it to view it. The bar that shows you how much you ipod holds and what catagories are taking up what about of space, is showing that i have 10 gigs being taking up under the catagory of OTHER. and i have no idea what this other is. Ive checked contacts, tv shoes, podcasts, anything and everythign that isnt Music videos and Photos. and i cant find anything on the ipod either. Does anyone know whats taking up this space

    i figured it out guys

  • Sql server log shipping space consumption

    I have implemented sql server logs shipping from hq to dr server
    The secondary databases are in standby mode .
    The issue is that after configuring it , my dr server is running out of space very rapidly
    I have checked the log shipping folders where the trn files resides and they are of very decent size , and the retention is configured for twenty four hours
    I checked the secondary databases and their size is exactly same as that of the corresponding primary databases
    Could you guys please help me out in identifying the reason behind this odd space increase
    I would be grateful if you could point me to some online resources that explains this matter with depth

    The retention is happening . I have checked the folders they do not have records older then 24 hours .
    I dont know may be its because in the secondary server (Dr) there is no full backup job working , is it because of this the ldf file is getting bigger and bigger but again I far as my understanding goes we cannot take a database full backup in the stand
    by mode .
    The TLog files of log shipped DBs on the secondary will be same size as that of primary. The only way to shrink the TLog files on secondary (I am not advising you to do this) is to shrink them on the primary, force-start the TLog backup job, then the copy
    job, then the restore job on the secondary, which will sync  the size of the TLog file on the secondary. 
    If you have allocated the same sized disk on both primary and secondary for TLog files, then check if the Volume Shadow Copy is consuming the space on the secondary
    Satish Kartan www.sqlfood.com

  • Cluster and space consumption

    I'm confused about some thing in regards to clusters. I have about 1GB wort of data when it is not in a cluster, just in a normal table. If I create a cluster and insert the data in to this cluster it consumes more space, and that was fully expected. When I tried the first few times it took 13GB of space. The table space was 30GB large and contained a few other tables. Then I cleaned out the table space so only 2% of the space was used and added another 30GB to the table space and ran the test once more. Now it is consuming more than 40GB and is still not completed. So my question is does the size the cluster consume depend on the size and available space of the tablespace it is in? Is there a way to limit the size it is allowed to use other than to put it in a separate tablespace?

    Hi Marius,
    First, by "cluster" you mean sorted cluster tables, right?
    http://www.dba-oracle.com/t_sorted_hash_clusters.htm
    So my question is does the size the cluster consume depend on the size and available space of the tablespace it is in?These are "hash" clusters, and you govern the range of hash cluster keys, and hence, the range where Oracle will store the rows.
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10739/hash.htm
    Oracle Database uses a hash function to generate a distribution of numeric values, called hash values, that are based on specific cluster key values. The key of a hash cluster, like the key of an index cluster, can be a single column or composite key (multiple column key). To find or store a row in a hash cluster, the database applies the hash function to the cluster key value of the row. The resulting hash value corresponds to a data block in the cluster, which the database then reads or writes on behalf of the issued statement.

  • ITunes Space Consumption

    I have about 3,700 songs on ITunes:
    Does it make sense that it would consume close to 16GB's?
    If I have downloaded albu, graphics (which I assume also consumes space), how can I turn off and delete existing to free up space?

    "Does it make sense that it would consume close to 16GB's?"
    Yes.  It makes perfect sense.  That would mean an average of 4.25 or so MB per song.  At highest quality they would take up more space than that.
    "If I have downloaded albu, graphics (which I assume also consumes space), how can I turn off and delete existing to free up space?"
    Doubtful that takes up much space at all.

  • Log file disk space consumption

    Do I need to care to any log files (excluding website access logs), like mail logs or anything else that could grow indefinitely and consuming much disk space ?
    How about the bayesian filter of SpamAssassin - does it have a maximum size limit or grows it forever ?
    Any other logs or files or whatever to keep an eye upon ?
    Currently I have made these settings on SA:
    FTP: Log anything (all checkboxes marked)
    Mail: Log anything at level "Information"; archive every one day
    Firewall: Log max. of 1000 packets
    DNS: Log enabled, level "Information"

    I looked into /ezc/weekly and it seems that this does already what I want, doesn't ? It seems that there log files are cleaned up so I feel that anything is okay as it is currently...
    Especially since I don't have an real idea which log files are missing there (and finding out their path, which is the hardest task
    I just want to prevent that such undeleted logs are eating my diskspace slowly but steadily.

  • Disk Space Consumption - iTunes TV Videos

    I am in the process of buying a 60G V ipod. I am curious how much disk storage is consumed by say a 42 minute "Desperate Housewives" TV file. Also when you purchase the video clip on iTunes, do you have the option to set the bit rate to modulate the quality vs size tradeoff like you do on music files? Thanks in advance for the responses.

    It will all depend on he data rate at which your movies (or purchases) are encoded. A 25 minute episode of Doctor Who targeted as a 100MB file has a typical rate of 540-560 kbits/sec. Using a 2-pass encode, the rendering on the iPod remains very sharp and crisp -- quite viewable on an SD TV, Thus, you should expect to put about 5 such shows on your iPod per 1G of space used. You can, of course double or triple this rate, but the increase in quality will be minimal as far as the iPod screen is concerned. Hope this is of some help.

  • Request Space consumption

    Dear All,
                     I am pulling data in cube from ODS through infosource. The requests for data in this case always begins with "ODSR". What I want to know is that do these requests take hard disk space? I do know that ODS requests that involve pulling of data from source system does consume space but what about pulling requests in cube from an ODS?
    Yours truly,
    Abhijit

    Hi,
    Even if the req ID consumes space, it would be very much small. I think to create some space in your BW system, try to delete the old PSA data. Also make sure that you delete  PSA data for  Master data attributes that are loaded on daily basis.
    Regards
    Srini

  • How can validate the ASM size and free space correctly?

    Dears ,,
    I faced problem in ASM size as it appeared in alert file as below
    ORA-19504: failed to create file "+DG_DATA"
    ORA-17502: ksfdcre:4 Failed to create file +DG_DATA
    ORA-15041: diskgroup space exhausted
    So we resize ASM space and large it. But we faced the same problem also although there is free space in ASM.
    It seems that the shown free space is not real.
    How can validate the ASM size and free space correctly?
    Thanks & Regards,,

    *Oracle DBA* wrote:
    Dears ,,
    I faced problem in ASM size as it appeared in alert file as below
    ORA-19504: failed to create file "+DG_DATA"
    ORA-17502: ksfdcre:4 Failed to create file +DG_DATA
    ORA-15041: diskgroup space exhausted
    So we resize ASM space and large it. But we faced the same problem also although there is free space in ASM.
    It seems that the shown free space is not real.
    How can validate the ASM size and free space correctly?
    Thanks & Regards,,
    I was having this problem. Im my case i couldn add datafiles to a tablespace despite the fact that i was having a lot of space in the asm. Try rebalancing. It might help. In my case rebalancing also didn work because it seems that there need to be a threshold space in all the disks for the rebalancing to happen which was not in my case, so i had to shrink some unused space in the tablespace and then after gaining the required space I rebalanced the disk and then the disks got rebalanced, also i was able to use the free space that was showing .

  • Confusion about required_mirror_free_mb in asm

    Hi!
    i have confusion about required_mirror_free_mb in asm.
    i have 6 disks with normal redundancy and 4 failgroups.
    SQL> select STATE,TOTAL_MB,FREE_MB ,NAME,FAILGROUP from v$asm_disk;
    STATE TOTAL_MB FREE_MB NAME FAILGROUP
    NORMAL 2047 1421 ASMDISK1 FG1
    NORMAL 2047 1424 ASMDISK2 FG1
    NORMAL 2047 1424 ASMDISK3 FG2
    NORMAL 2047 1424 ASMDISK4 FG2
    NORMAL 2047 1423 ASMDISK5 ASMDISK5
    NORMAL 2047 1422 ASMDISK6 ASMDISK6
    6 rows selected.
    Almost all 6 disk have same space consumption.
    SQL> select GROUP_NUMBER,DISK_NUMBER,STATE,TOTAL_MB,FREE_MB ,NAME from v$asm_disk;
    GROUP_NUMBER DISK_NUMBER STATE TOTAL_MB FREE_MB NAME
    1 0 NORMAL 2047 1421 ASMDISK1
    1 1 NORMAL 2047 1424 ASMDISK2
    1 2 NORMAL 2047 1424 ASMDISK3
    1 3 NORMAL 2047 1424 ASMDISK4
    1 4 NORMAL 2047 1423 ASMDISK5
    1 5 NORMAL 2047 1422 ASMDISK6
    6 rows selected.
    SQL>
    SQL> select name, type, total_mb, free_mb, required_mirror_free_mb,usable_file_mb from v$asm_diskgroup;
    NAME TYPE TOTAL_MB FREE_MB REQUIRED_MIRROR_FREE_MB USABLE_FILE_MB
    DATA NORMAL 12282 8538 4094 2222
    SQL>
    Here is my question that how asm desides REQUIRED_MIRROR_FREE_MB i.e 4GB in above case........
    please can anybody answer me.....
    regards
    M.usman

    thank you for your reply...now confusion has increased even more....
    now i have change configuration a bit....
    STEp 1)
    i have 6 Disks each of 2 gb in size And 3 Failgroups FG1,FG2,FG3.
    FG1
    ASMDISK1
    ASMDISK2
    FG2
    ASMDISK3
    ASMDISK4
    FG3
    ASMDISK5
    ASMDISK6
    SQL> select GROUP_NUMBER,DISK_NUMBER,STATE,TOTAL_MB,FREE_MB ,NAME from v$asm_disk;
    GROUP_NUMBER DISK_NUMBER STATE TOTAL_MB FREE_MB NAME
    1 0 NORMAL 2047 1420 ASMDISK1
    1 1 NORMAL 2047 1418 ASMDISK2
    1 2 NORMAL 2047 1420 ASMDISK3
    1 3 NORMAL 2047 1419 ASMDISK4
    1 4 NORMAL 2047 1421 ASMDISK5
    1 5 NORMAL 2047 1420 ASMDISK6
    6 rows selected.
    SQL> select name, type, total_mb, free_mb, required_mirror_free_mb,usable_file_mb from v$asm_diskgroup;
    NAME TYPE TOTAL_MB FREE_MB REQUIRED_MIRROR_FREE_MB USABLE_FILE_MB
    DATA NORMAL 12282 8518 4094 2212
    required_mirror_free_mb=4GB as you said that mirroring is per failgroup so it means that the largest failure could occur is that any failgroup fails,failgroup comprises of 2 2gb disk so its 4gb.
    STEp 2)
    I deleted two disks 5 and 6 in FG3
    now i have two failgroups FG1 and FG2
    FG1
    ASMDISK1
    ASMDISK2
    FG2
    ASMDISK3
    ASMDISK4
    SQL> select GROUP_NUMBER,DISK_NUMBER,STATE,TOTAL_MB,FREE_MB ,NAME from v$asm_disk;
    SQL> select STATE,TOTAL_MB,FREE_MB ,NAME,FAILGROUP from v$asm_disk;
    STATE TOTAL_MB FREE_MB NAME FAILGROUP
    NORMAL 2047 0
    NORMAL 2047 0
    NORMAL 2047 1128 ASMDISK1 FG1
    NORMAL 2047 1127 ASMDISK2 FG1
    NORMAL 2047 1128 ASMDISK3 FG2
    NORMAL 2047 1127 ASMDISK4 FG2
    6 rows selected.
    SQL> select name, type, total_mb, free_mb, required_mirror_free_mb,usable_file_mb from v$asm_diskgroup;
    NAME TYPE TOTAL_MB FREE_MB REQUIRED_MIRROR_FREE_MB USABLE_FILE_MB
    DATA NORMAL 8188 4510 *2047* 1231
    Now still the largest failure could occur is that any failgroup fails,failgroup comprises of 2 2gb disk so its agian 4gb.
    But here its showing 2gb here i am confused.
    Maybe my concept is wrong please help ...please dont mind anything that i am again n again asking questions.

Maybe you are looking for

  • PL/SQL SSO SDK Sample Application doesn't work!

    In the latest document on the SSO SDK (http://download-east.oracle.com/docs/cd/A97329_01/manage.902/a96114.pdf), there is a major programming error in the sample application on page 4-5. There is an invalid EXCEPTION block followed by an invalid ELSE

  • Strange error message when I tried to use the "collaborate" function under "File"

    Has anyone else met this before? : I am trying to share my project with my team members. Tried File -> Collaborate and then try three options under it. Non e of them works. It asks for your Adobe ID in order to sign in and upload. However, every time

  • Why can't I use my gmail as my Adobe ID?

    It tells me "That Adobe ID is not available.  Please try another address."  Who else would be using it??  It's my own email!  Does Adobe object to all gmail addresses?

  • XSLT or Scripts (Mac -Indesign CS3)

    Good Morning Everybody, We are planning now to move our Journal (XML) production into Indesign CS3. I've been successfully (though with limitations, as I am newbie in Indesign) implemented our books productions into Indesign CS2. This has been achiev

  • User exit for condition records in purchasing contracts

    I am looking for a user exit to track changes to condition records made in ME31K and ME32K (purchasing contracts) transaction. Any useful tips are welcome. Thanks, Shareen