[Translated from mos] mosasm

Source: Internet
Author: User

[Translated from mos] mosasm

How to reclaim the asm disk space

Reference Original:
How To Reclaim Asm Disk Space? (Docid 351866.1)

Applicable:
Oracle Database-Enterprise Edition-Version 10.2.0.1 and later
Information in this document applies to any platform.
* ** Checked for relevance on 12-Jan-2010 ***


Objectives:
You have a set of 2-node rac.
To test the backup policy, you use the asm storage to create a backup, and archive is also in the asm.

You notice that after the archive log is deleted, the asm space is not released (release)

You deleted the test database, but the asm space was not released.
Now you need to delete the backup file and archive logs. All these files are stored in asm.

How?

Solution:

In versions earlier than 11.2:
You can use the asmcmd command:
$ Asmcm
ASMCMD> cd RECOVERYDEST -- change to the diskgroup
ASMCMD> pwd -- current directory
ASMCMD> find.-t BACKUPSET. * -- will list the backupset files stored in the diskgroup
-- The-t flag can have values like DATAFILE, ARCHIVELOG, CONTROLFILE, ONLINELOG

Once files are found, you can use the rm command to delete them.

11.2 and later versions:
You need to use the -- type option (instead of the-t option)
Usage: find [-- type] dir pattern

Eg:

ASMCMD> find -- type BACKUPSET .*




Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.