Free space in ASM

Hi
I want to delete a database instance. This is using ASM instance under it. Is there a way to release the space from ASM that is occupied by the datafiles of this instance so that the new database is able to use the this space?
Thanks in advance

Hi All
I am able to delete the files using the following command and it also released the space from the ASM disk group as:
SQL> ALTER DISKGROUP DGROUP DROP file '+DGROUP/gstest/datafile/example.280.621692777';
Diskgroup altered.
SQL> select GROUP_NUMBER,DISK_NUMBER,MOUNT_STATUS,STATE,REDUNDANCY,TOTAL_MB,FREE_MB from v$asm_disk;
GROUP_NUMBER DISK_NUMBER MOUNT_S STATE REDUNDA TOTAL_MB FREE_MB
0 2 CLOSED NORMAL UNKNOWN 5000 0
1 0 CACHED NORMAL UNKNOWN 5000 986
1 1 CACHED NORMAL UNKNOWN 5000 988
1 3 CACHED NORMAL UNKNOWN 422 100
SQL> ALTER DISKGROUP DGROUP DROP file '+DGROUP/gstest/datafile/users.279.621692767';
Diskgroup altered.
SQL> ALTER DISKGROUP DGROUP DROP file '+DGROUP/gstest/datafile/sysaux.278.621692767';
Diskgroup altered.
SQL> ALTER DISKGROUP DGROUP DROP file '+DGROUP/gstest/datafile/undotbs1.281.621692777';
Diskgroup altered.
SQL> ALTER DISKGROUP DGROUP DROP file '+DGROUP/gstest/datafile/system.282.621692785';
Diskgroup altered.
SQL> select GROUP_NUMBER,DISK_NUMBER,MOUNT_STATUS,STATE,REDUNDANCY,TOTAL_MB,FREE_MB from v$asm_disk;
GROUP_NUMBER DISK_NUMBER MOUNT_S STATE REDUNDA TOTAL_MB FREE_MB
0 2 CLOSED NORMAL UNKNOWN 5000 0
1 0 CACHED NORMAL UNKNOWN 5000 1328
1 1 CACHED NORMAL UNKNOWN 5000 1330
1 3 CACHED NORMAL UNKNOWN 422 127
Now my question is:
I have redologs also defined in the ASM as:
LOGFILE
GROUP 1 '+DGROUP' SIZE 100M,
GROUP 2 '+DGROUP' SIZE 100M
-- STANDBY LOGFILE
-- GROUP 3 '+DGROUP/gstest/onlinelog/group_3.336.622658059' SIZE 100M,
-- GROUP 4 '+DGROUP/gstest/onlinelog/group_4.337.622728267' SIZE 10M,
-- GROUP 5 '+DGROUP/gstest/onlinelog/group_5.338.622728281' SIZE 10M
I was able to delete the standby redolog files as:
SQL> ALTER DISKGROUP DGROUP DROP file '+DGROUP/gstest/onlinelog/group_5.338.622728281' ;
Diskgroup altered.
Can someone please tell me how to delete the redologs of this database as thes are having 100MB each.
Thanks in Advance
Regards

Similar Messages

  • How to find free space in ASM

    Hi experts,
    we use oracle 11.1 rac and database with asm in redhat.
    I copied two query from online.
    query 1 as
    select name,total_mb,free_mb from v$asm_diskgroup;
    NAME TOTAL_MB FREE_MB
    DATA1 511993 132092
    FLSDISK1 1638394 712233
    but query 2 shows there are no space in ASM diskgroup
    QL> select d.name disk_name,g.name group_name,d.path,d.total_mb,d.free_mb
    2 from v$asm_disk d, v$asm_diskgroup g
    3 where d.group_number = g.group_number (+)
    4 ;
    DISK_NAME GROUP_NAME PATH TOTAL_MB FREE_MB
    FBDISK1 FLSDISK1 ORCL:FBDISK1 1638394 0
    DATADISK1 DATA1 ORCL:DATADISK1 511993 0
    which query do I need to use to check free space in asm diskgroup?
    Thanks
    JIm

    Hi,
    If you're looking freespace in diskgroup i believe you can use the first one
    second script is looking freespace per each disk
    Cheers
    FZheng

  • Checking tablespace used space, free space in ASM

    Hi,
    I want to find the tablespace used space, free space, total space in an ASM (Automatic Storage Management) environment. What is the query for that ?
    Thanks

    want to find the tablespace used space, free spaceUse same script that u are used in non-asm environment.
    dba_data_files
    dba_free_space
    total space in an ASM (Automatic Storage Management) environment.select name, type, total_mb, free_mb, required_mirror_free_mb,
    usable_file_mb from v$asm_diskgroup;
    Thanks
    Kuljeet

  • Configuring Filesystem Free Disks for ASM ? Can you use free space for ASM

    Is there a way to dedicate the available disk space for ASM in order to create a database under ASM?
    I was hoping that I would not have to reinstall the Linux OS Enterprise 5 (Red Hat). So I de-installed my 2-node RAC environment, installed the ASM required RPMs for Red Hat linux Enterperise 5 and then proceeded to reinstall 11g Clusterware and set "Configure Automatic Storage Management (ASM)".
    Did I miss something? THanks

    Thank you.
    I have 3 VM-Oracle guests running Oracle 11g. When I've used NFS as share that worked fine, however I was not using ASM. I know wish to get smart about ASM implementation.
    Server1(rac1) Linux E5 64bit
    Server2(rac2) Linux E5 64bit
    Server3(asm) Linux E5 64bit (I created four partitions
    ./oracleasm createdisk DATDISK /dev/xvda10 OK
    ./oracleasm createdisk VOTDISK /dev/xvda11 OK
    ./oracleasm createdisk OCRDISK /dev/xvda12 OK
    ./oracleasm createdisk OFRDISK /dev/xvda13 OK
    On Node1 and Node 2
    ./oracleasm scandisk
    Scanning the system for Oracle ASMLib disks: OK
    After this should I or how do you make a partition shared? Could I used NFS? so that I can proceed with the RAC install and then create database .

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

  • ASM disk addition math...free space with mutiple disks

    Hello all,
    I'm trying to set up ASM for the first time, and I"m curious about how things work with regard to disk 'math' , mirroring and redundancy.
    For example I have disks a, b, c, d. Each are sized let's say 100GB each.
    I create a data group DATA1. With it set to normal redundancy, I start off adding disk a and b to DATA1, and the free space is roughly 100 GB (for example, not accounting for extra taken for overhead).
    Now...let's say I add disk d of 100GB more to DATA1, what would happen here? If I were in high redundancy and I had 3x disks, I'd guess I'd have 100GB free space, but, with normal redundancy, what would I get?
    One step further, if I added both c and d to DATA1..would my free space available, with mirroring be 200GB or more or less?
    Is it better to do two disk groups, say DATA1 and DATA2...with a and b in DATA1, and c and d in DATA2...and use both of them for the database...maybe separate data from indexes....flashback , etc...?
    Thanks in advance,
    cayenne

    For normal redundancy the effective (or usable if you like) storage size is approximately the half of the total physical disk size you have added. When you add A and B initially you are introducing 200 GB of physical storage but mirroring will let you to use only 100GB. So if you add C and D together (I assume you will add them into seperate fail groups) your effective size will grow to 200GB in total.
    Your question about adding a single disk to a normal redundant diskgroup has a bit wierd answer. SO I will demonstrate it.
    SQL> create diskgroup mydgrp normal redundancy failgroup fg1 disk '/dev/sdd' failgroup fg2 disk '/dev/sde';
    Diskgroup created.
    SQL> alter diskgroup mydgrp add disk '/dev/sdf';
    Diskgroup altered.
    PATH FAILGROUP
    /dev/sdf MYDGRP_0002
    /dev/sde FG2
    /dev/sdd FG1
    6 rows selected.
    SQL> select path,free_mb,total_mb-free_mb usage_mb from v$asm_disk;
    PATH FREE_MB USAGE_MB
    /dev/sdf 1997 51
    /dev/sde 1997 51
    /dev/sdd 1997 51
    6 rows selected.
    Mirrored two 100g disks will form a RAID like group with an effective size of 100g and the other added disk will be by it self 100g and rebalance will occur from FG1+FG2(some of the primary extends will be in FG1 and others in FG2) to MYDGRP_0002. So there will be a redundancy for sdd and sde disks (one of them can be lost) but not for sdf (if you lose it eee. Don't lose it).
    There is no problem in having one large DISKGROUP for everything (by large I mean 100 TB+) like datafiles, tempfiles. But for FRA (it is a Best Practice to have one) you should have another diskgroup residing on different physical disks (if possible different storage boxes). 2 should be enough but here are some other cases in which it is advised to create another diskgroup:
    - You bought another storage box with a totally different brand or model
    - You bought new disks with different sizes so your new LUN sizes differs from the existing ones
    - You need another level of redundancy.
    Edited by: HSensoy on 15.Oca.2010 17:06

  • Difference between free space on disk and column FREE_MB in V$ASM_DISKGROUP

    Hi ,
    in our RAC environment we have setup an ACFS. We use that mainly for RMAN backups. When connecting to the ASM instance and executing the query
    Select name, state, total_mb, free_mb from v$asm_diskgroup;
    we are getting the following result:
    NAME STATE TOTAL_MB FREE_MB
    DG00_CRS MOUNTED 10738 9912
    DG01_FR MOUNTED 409592 360173
    DG02_DATA MOUNTED 6553568 1628732
    DG03_BACKUP MOUNTED 5615920 4227
    Seems to me that the ASM instance believes that the amount of frees space in diskgroup DG03_BACKUP is 4227 MB. Butr when checking on
    operatingsystem level, the result looks different:
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/asm/v03_backup-33
    5746196480 2430545120 3315651360 43% /u01/app/oracle/orabackup
    => As a matter of fact, we have about 3,3 TB free space available. Should that result not be shown when running the query above? I currently
    don't have a clue why the query returns 4227 MB...
    Any help will be appreciated...
    Rgds
    JH

    ACFS is a 11.2 feature, while ASM existed long before
    ASM will consider such volumes as used space when querying V$ASM_DISKGROUP, or issuing lsdg in asmcmd
    you can use the views V$ASM_ACFSVOLUMES and V$ASM_FILESYSTEM for ACFS
    or volinfo in asmcmd

  • Create space in ASM Instance

    Dear All,
    Here is the configuration we have:
    Primary Database: Oracle RAC (2 Nodes). 11g R1 RAC, 10g R2 Database using ASM (OS: Windows Server 2003)
    Data Guard: 10g R2 Database using ASM (OS: Windows Server 2003)
    We are getting the following errors in the alert log file of ASM Instance (Data Guard) - Data Gaurd mode is 'Max Performance':
    ORA-00270: error creating archive log +DG_DATAFILES_AND_FB/accelastdby/primary_arch_logs/arc32471_0721252017.002
    ORA-19504: failed to create file "+DG_DATAFILES_AND_FB/accelastdby/primary_arch_logs/arc32471_0721252017.002"
    ORA-17502: ksfdcre:4 Failed to create file +DG_DATAFILES_AND_FB/accelastdby/primary_arch_logs/arc32471_0721252017.002
    ORA-15041: diskgroup space exhausted
    Uopn checking the disk group DG_DATAFILES_AND_FB, free space is 0.
    What are the possible options to create more space on this disk group? Can we delete some files safely without any impact (for example: Archive logs which have been applied to database)?
    Thanks for your advice.
    Regards,
    Muhammad Riaz

    Hi,
    First you can add more disks to the diskgroup so you can get more space, ASM will do rebalance once new disks added.
    Second, It seems that your archivelog in dataguard were not deleted after being applied. You can delete the applied archivelog in dataguard, use RMAN is the best option
    Hope this helps
    Cheers
    FZheng

  • Query to find the the free space in raw disks

    I am new to ASM.
    What is the query to find the free space in the raw disks in ASM diskgroup.? Can i get space info about individual raw disks in the disk group?
    Is there an ip address for the ASM disk group? If so how can i find it?

    below query will give you total and free space for each raw disk from a disk group.
    select dg.name, d.name, d.total_mb, d.free_mb from v$asm_disk d, v$asm_diskgroup dg where dg.group_number=d.group_number order by 1;
    There no IP address attached to ASM disk group. Why do you want associate IP address with a Disk group?

  • Fast Recovery Area free space doubt

    Hi All,
    I have oracle 11.2.0.3.0 in Windows 2008 server 64 bit , i have Database with ASM and i have enabled Flashback in my database ...
    I have assigned 8GB for db recovery area size , in that i have Rman backups , flashback logs, archive logs ..
    My doubt is oracle automatically free space in case of no free space in FRA , i have checked for RMAN backups , automatically my obsolete backups are deleted from FRA but i have the doubt about flashback logs ...my flashback retention period is 1 day..
    Is oracle automatically deletes the obsolete flashback logs in case of no free space in FRA aur manually i need to delete?
    Thanks and regards,
    Vikash Chauradia

    Vikash Jain (DBA Trainee) wrote:
    Hi All,
    I have oracle 11.2.0.3.0 in Windows 2008 server 64 bit , i have Database with ASM and i have enabled Flashback in my database ...
    I have assigned 8GB for db recovery area size , in that i have Rman backups , flashback logs, archive logs ..
    My doubt is oracle automatically free space in case of no free space in FRA , i have checked for RMAN backups , automatically my obsolete backups are deleted from FRA but i have the doubt about flashback logs ...my flashback retention period is 1 day..
    Is oracle automatically deletes the obsolete flashback logs in case of no free space in FRA aur manually i need to delete?Please read,
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmmaint.htm#BRADV89615
    Aman....

  • Strange calculation of free space

    Hi!
    I can't understand how size of free space is calculated.
    For example:
    in my mailbox i have 3 folders
    Incoming  40.4 Mb
    Sent 13.1 Mb
    Junk 302 Kb
    In total about 55 Mb
    but in Statistic writtent, that ocupied 161.7 Mb
    Same situation3 with Documents and Application data:
    My Measures  252.5 Mb
    Mail                160.1 Mb
    Pages              22.6 Mb
    Numbers          14.6 Mb
    Keynote           13.4 Mb
    All other in sum less than 1 Mb
    In total should be less than 500 Mb
    ps: I deleted all photos and turned off PhotoStream.
    How to solve this problem?

    I have the same issue. I have just 68.5MB of documents in iCloud and it says it's full. I tried to delete photos from photo stream. I have no backups in iCloud and I don't sync my mail to iCloud.
    https://www.evernote.com/shard/s24/sh/a8fc9ce7-0b24-4b24-a306-617a824b9333/5bbc8 d18d8fb43ef713088057c8d830e
    https://www.evernote.com/shard/s24/sh/58447450-8089-4bc6-8a0f-d133747d05ff/17fc6 e9d31b5d68242ea2f8f1024ac73

  • HT1284 Do I need to reformat my external hard drive before I backup to it?  It shows very little free space when in fact it is empty.

    I am new to Imac.  I want to use an external hard drive to backup to but the drive shows very little free space when in fact it is empty.  Do I need to reformat it and, if so How?  Thanks

    What is the external disk?
    Is it new?  If so, maybe it has a Windows file system on it (FAT, exFAT, or NTFS).  If so then reformat to "HFS+ Journaled".
    What backup utility are you using?  TimeMachine, Carbon Copy Cloner, SuperDuper, etc...?  If the external is suppose to be bootable because you are using a cloning backup (CCC or SuperDuper), then it is also important that the disk partition table be GUID.
    You can find out this information via Applications -> Utilities -> Disk Utility, select the disk (not volume on the disk) and the partition time will be shown at the botton of the window.   Now Select the volume and it will tell you how the file system on the disk is formatted.
    Also do you want to leave room for a recovery partition on the external disk?  Then repartition it with a small (2GB) partition that can hold a bootable recovery partition that you can setup via the Apple "Recovery Disk Assistant" which can be downloaded from Apple.

  • Logical Volume Group and Logical Partition not matching up in free space

    I was dual booting Windows 7 and Mountain Lion. Through Disk Utility, I removed the Windows 7 Partition and expanded the HFS+ partition to encompass the entire hard drive. However, the Logical Volume Group does not think that I have that extra free space. The main problem is that I cannot resize my partition. I am wanting to dual boot Ubuntu with this. Any ideas? Any help is appreciated. I will post some screenshots with the details. Furthermore, here are some terminal commands I ran: /dev/disk0
    #: TYPE NAME SIZE IDENTIFIER
    0: GUID_partition_scheme *250.1 GB disk0
    1: EFI 209.7 MB disk0s1
    2: Apple_CoreStorage 249.2 GB disk0s2
    3: Apple_Boot Recovery HD 650.0 MB disk0s3
    /dev/disk1
    #: TYPE NAME SIZE IDENTIFIER
    0: Apple_HFS MAC OS X *248.9 GB disk1 Filesystem 1024-blocks Used Available Capacity iused ifree %iused Mounted on
    /dev/disk1 243031288 153028624 89746664 64% 38321154 22436666 63% /
    devfs 189 189 0 100% 655 0 100% /dev
    map -hosts 0 0 0 100% 0 0 100% /net
    map auto_home 0 0 0 100% 0 0 100% /home CoreStorage logical volume groups (1 found)
    |
    +-- Logical Volume Group 52A4D825-B134-4C33-AC8B-39A02BA30522
    =========================================================
    Name: MAC OS X
    Size: 249199587328 B (249.2 GB)
    Free Space: 16777216 B (16.8 MB)
    |
    +-< Physical Volume 6D7A0A36-1D86-4A30-8EB5-755D375369D9
    | ----------------------------------------------------
    | Index: 0
    | Disk: disk0s2
    | Status: Online
    | Size: 249199587328 B (249.2 GB)
    |
    +-> Logical Volume Family FDC4568F-4E25-46AB-885A-CBA6287309B6
    Encryption Status: Unlocked
    Encryption Type: None
    Conversion Status: Converting
    Conversion Direction: backward
    Has Encrypted Extents: Yes
    Fully Secure: No
    Passphrase Required: No
    |
    +-> Logical Volume BB2662B7-58F3-401C-B889-F264D79E68B4
    Disk: disk1
    Status: Online
    Size (Total): 248864038912 B (248.9 GB)
    Size (Converted): 130367356928 B (130.4 GB)
    Revertible: Yes (unlock and decryption required)
    LV Name: MAC OS X
    Volume Name: MAC OS X
    Content Hint: Apple_HFS

    Here is another try via the command line:
    dhcp-10-201-238-248:~ KyleWLawrence$ diskutil coreStorage resizeVolume BB2662B7-58F3-401C-B889-F264D79E68B4 210g
    Started CoreStorage operation
    Checking file system
    Performing live verification
    Checking Journaled HFS Plus volume
    Checking extents overflow file
    Checking catalog file
    Incorrect block count for file 2012.12.11.asl
    (It should be 390 instead of 195)
    Checking multi-linked files
    Checking catalog hierarchy
    Checking extended attributes file
    Checking volume bitmap
    Checking volume information
    Invalid volume free block count
    (It should be 21713521 instead of 21713716)
    The volume MAC OS X was found corrupt and needs to be repaired
    Error: -69845: File system verify or repair failed

  • I made a dumb decision to 'Erase Free Space' on my drive. I now have no free space, I realize because it wrote 0's over all my free space. Is there a way to undo this??? Help please I can't save any documents now! Thanks in advance all, it is truly apprec

    I made a dumb decision to 'Erase Free Space' on my drive. I now have no free space, I realize because it wrote 0's over all my free space. Is there a way to undo this??? Help please I can't save any documents now! Thanks in advance all, it is truly appreciated. how can find the hidden temporary files using the terminal what do i type in?

    It's more likely a failed Erase Free Space, which creates a huge temporary file; that's why it looks like you have no more available drive space. You can recover from this. See these links
    https://discussions.apple.com/message/10938738#10938738
    http://www.macgeekery.com/tips/quickie/recovering_from_a_failed_secure_erase_fre e_space 
    Post back if you need any help with this.

  • Problem with game and free space

    I just installed a game, The Sims 2 and everytime I try and play it it says that I need to "free up some space on your local disk and relaunch the Sims 2". However I have 50G free space and sometimes it will load. Does anyone know what I should do?

    Hi sarah, welcome to macbook forum,
    uninstall your sims2, repair permission and optimize your HD using ONYX or machelpmate.
    reinstall your sims2, repair permission.
    Good Luck.

Maybe you are looking for

  • Browser button issues

    I have an Icebook circa 2001-02 with OS X 10.3.5. On some web sites nothing happens when I press certain buttons. For example, on Hotmail I can login, switch folders and view messages, but when I try to send a message the browser churns for a while a

  • Session varaible in region heading or title

    I have a query result in a report page - it is details for a customer - and i want that customer name in the region heading ... I have a session variable called P300_CONTACT_NAME with the name, and I want to display that in my region heading or title

  • Transaction variant & ALV

    Hi, I am working on SAP standard screen which has a editable ALV. My requirement is to display pre-filled data in some fields of ALV. I want to use transaction variant for this reason. I have tried transaction SHD0, but its not giving me the option '

  • Please Help Me Update!

    I have an 32 GB iPod touch, and I am trying to update to ios 6.  I currently have 5.1.1. (9B206).  The information inscribed on the back says it is Model # A1367.  Under General Settings, it says the capacity is 28.5 GB and  have 23.2 GB available. 

  • Problems with getting size of components...

    I have a JApplet. After setting up the GUI in the init() method I call getWidth() and getHeight() methods (also in the init() method) of a JPanel I have placed in the contentPane of that applet. Problem is that I get different values of the height an