【翻譯自mos文章】回收 asm磁碟空間的方法,mosasm

來源:互聯網
上載者:User

【翻譯自mos文章】回收 asm磁碟空間的方法,mosasm

回收 asm磁碟空間的方法

參考原文:
How To Reclaim Asm Disk Space? (Doc ID 351866.1)

適用於:
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***


目標:
你有一套2節點的rac。
為了測試備份策略,你使用asm 儲存建立backup,同時,歸檔也是在asm中。

你注意到在歸檔日誌刪除之後, asm 空間沒有釋放(release)

你刪除了test database, 但是asm 空間也沒有釋放。
現在你需要刪除backup file 和歸檔日誌。所有這些存放於asm中的檔案。

怎麼做?

解決方案:

在11.2之前的版本中:
 可以使用asmcmd命令:
$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

一旦檔案被找到,你可以使用rm 命令去刪除他們。

11.2及其更新的版本中:
需要使用--type 選項(而不是使用-t選項)
usage: find [--type type] dir pattern

eg:

ASMCMD> find --type BACKUPSET . *




相關文章

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.