如何在 Oracle 12c RAC 資料庫中重新命名 ASM 磁碟群組

Summary: 我們的章程是透過提供資料庫解決方案、自訂開發過程、動態資料中心,以及彈性運算,以提供能簡化 IT 的解決方案

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

適用於:

作業系統:RHEL/OEL 5.x 和 RHEL/OEL 6.x

Oracle 版本:11.2.0.1 及更高版本

作者:

Mahesh Anand Reddy M

問題:
如何重新命名 Oracle 12c RAC 資料庫中的 ASM 磁碟群組?

解決方案:

您可以透過兩種方式之一重新命名磁碟群組。使用 renamedg 工具變更磁碟群組名稱。

先決條件:
1.1 必須在叢集中的所有節點上卸除磁碟群組。
您可以透過下列方式

重新命名磁碟群組:選項 1)

這樣會使用磁碟字串將 +DATA 重新命名為 +DBDATA,以找出磁碟和啟用的詳細選項。

登入格線使用者

語法:

$renamedg dgname=current dgname newdgname=newdg asm_diskstring=磁碟位置 verbose=true

範例:我想要使用重新命名的公用程式,將磁碟群組名稱從 DATA 變更為 DBDATA。

$renamedg dgname=DATA newdgname=DBDATA asm_diskstring='/dev/mapper/datap1' verbose=true

選項 2)

以下命令會產生組態檔案。

$renamedg phase=one dgname=DATA newdgname=DBDATA asm_diskstring='/dev/mapper/datap1' config=/tmp/disk.conf verbose=true
組態檔案包含以下資訊

/dev/mapper/DATAp1 資料 DBDATA

使用組態檔案重新命名磁碟群組。


$renamedg phase=two dgname=DATA newdgname=DBDATA config=/tmp/disk.conf verbose=true

重新命名磁碟群組後,您可以使用以符合磁碟群組名稱重新命名磁碟群組中的磁碟。

重新命名磁碟群組中的磁碟之前,您必須以受限模式掛接磁碟群組。

SQL> 變更磁碟群組 DBADATA 重新命名所有磁碟;
SLN310925_en_US__1icon 注意:重新命名磁碟群組後,原始磁碟群組資源不會自動刪除。您可以在 crsctl stat res –t 中看到舊磁碟資源。您可以使用 srvctl remove diskgroup 命令手動刪除

 

Article Properties
Article Number: 000146507
Article Type: Solution
Last Modified: 21 Feb 2021
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.