首頁 資料庫 mysql教程 如何重命名ASM 中的磁盘组

如何重命名ASM 中的磁盘组

Jun 07, 2016 pm 05:36 PM
資料庫

介绍一个重命名oracle asm 磁盘组的工具renamedg

介绍一个重命名Oracle asm 磁盘组的工具renamedg

Therenamedgtool enables you to change the name of a cloned disk group. The disk group must be dismounted on all nodes in the cluster before runningrenamedgon the disk group.

renamedgrenames a disk group using a two-step process:

  • Phase one

    This phase generates a configuration file to be used in phase two.

  • Phase two

    This phase uses the configuration file to perform the renaming of the disk group.

  • The syntax is:


    renamedg{-help|help=true}

    renamedg
    [phase={one|two|both} ]dgname=diskgroup
    newdgname=newdiskgroup[config=configfile]
    [asm_diskstring=discoverystring,discoverystring... ]
    [clean={true|false} ] [check={true|false} ]
    [confirm={true|false}] [verbose={true|false} ]
    [keep_voting_files={true|false}]

  • phase={one|two|both}

  • 注意:

    Applies to:
    Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 11.2.0.0
    Information in this document applies to any platform.

    Goal
    The purpose of this document is to provide information about rename diskgroup in 10g and 11gR1 release

    Solution
    rename diskgroup option is a new feature of 11gR2 .

    You can use this tool to rename your 10g or 11gR1 ASM diskgroup

    you need to just install 11gR2 SIHA Grid Infrastructure software only installation.

    cd /bin
    renamedg

    use renamedg tool to rename 10g or 11gR1 diskgroup.

    Diskgroup cannot be renamed under following conditions :

    - the Diskgroup is mounted
    - the Diskgroup is being used by CSS
    - Diskgroup contains offline disks

     

    eg:

    -bash-4.1$ sqlplus / as sysasm

    SQL*Plus: Release 11.2.0.4.0 Production on Mon Mar 24 15:33:16 2014

    Copyright (c) 1982, 2013, Oracle.  All rights reserved.


    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Automatic Storage Management option

    SQL> alter diskgroup new_datagroup2 dismount;

    Diskgroup altered.

    SQL>
    SQL>
    SQL> exit

    -bash-4.1$
    -bash-4.1$ renamedg -help
    NOTE: No asm libraries found in the system

    Parsing parameters..
    phase                          Phase to execute,
                                    (phase=ONE|TWO|BOTH), default BOTH

    dgname                          Diskgroup to be renamed

    newdgname                      New name for the diskgroup

    config                          intermediate config file

    check                          just check-do not perform actual operation,
                                    (check=TRUE/FALSE), default FALSE

    confirm                        confirm before committing changes to disks,
                                    (confirm=TRUE/FALSE), default FALSE

    clean                          ignore errors,
                                    (clean=TRUE/FALSE), default TRUE

    asm_diskstring                  ASM Diskstring (asm_diskstring='discoverystring',
                                    'discoverystring1' ...)

    verbose                        verbose execution,
                                    (verbose=TRUE|FALSE), default FALSE

    keep_voting_files              Voting file attribute,
                                    (keep_voting_files=TRUE|FALSE), default FALSE

    -bash-4.1$ renamedg dgname=NEW_DATAGROUP2 newdgname=datagroup2 asm_diskstring='/dev/oracleasm/disks/*' verbose=true
    NOTE: No asm libraries found in the system

    Parsing parameters..

    Parameters in effect:

    本網站聲明
    本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

    熱AI工具

    Undresser.AI Undress

    Undresser.AI Undress

    人工智慧驅動的應用程序,用於創建逼真的裸體照片

    AI Clothes Remover

    AI Clothes Remover

    用於從照片中去除衣服的線上人工智慧工具。

    Undress AI Tool

    Undress AI Tool

    免費脫衣圖片

    Clothoff.io

    Clothoff.io

    AI脫衣器

    Video Face Swap

    Video Face Swap

    使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

    熱工具

    記事本++7.3.1

    記事本++7.3.1

    好用且免費的程式碼編輯器

    SublimeText3漢化版

    SublimeText3漢化版

    中文版,非常好用

    禪工作室 13.0.1

    禪工作室 13.0.1

    強大的PHP整合開發環境

    Dreamweaver CS6

    Dreamweaver CS6

    視覺化網頁開發工具

    SublimeText3 Mac版

    SublimeText3 Mac版

    神級程式碼編輯軟體(SublimeText3)

    Go語言如何實作資料庫的增刪改查操作? Go語言如何實作資料庫的增刪改查操作? Mar 27, 2024 pm 09:39 PM

    Go語言是一種高效、簡潔且易於學習的程式語言,因其在並發程式設計和網路程式設計方面的優勢而備受開發者青睞。在實際開發中,資料庫操作是不可或缺的一部分,本文將介紹如何使用Go語言實作資料庫的增刪改查操作。在Go語言中,我們通常會使用第三方函式庫來操作資料庫,例如常用的sql套件、gorm等。這裡以sql包為例介紹如何實作資料庫的增刪改查操作。假設我們使用的是MySQL資料庫。

    iOS 18 新增「已復原」相簿功能 可找回遺失或損壞的照片 iOS 18 新增「已復原」相簿功能 可找回遺失或損壞的照片 Jul 18, 2024 am 05:48 AM

    蘋果公司最新發布的iOS18、iPadOS18以及macOSSequoia系統為Photos應用程式增添了一項重要功能,旨在幫助用戶輕鬆恢復因各種原因遺失或損壞的照片和影片。這項新功能在Photos應用的"工具"部分引入了一個名為"已恢復"的相冊,當用戶設備中存在未納入其照片庫的圖片或影片時,該相冊將自動顯示。 "已恢復"相簿的出現為因資料庫損壞、相機應用未正確保存至照片庫或第三方應用管理照片庫時照片和視頻丟失提供了解決方案。使用者只需簡單幾步

    Hibernate 如何實作多型映射? Hibernate 如何實作多型映射? Apr 17, 2024 pm 12:09 PM

    Hibernate多態映射可映射繼承類別到資料庫,提供以下映射類型:joined-subclass:為子類別建立單獨表,包含父類別所有欄位。 table-per-class:為子類別建立單獨資料表,僅包含子類別特有列。 union-subclass:類似joined-subclass,但父類別表聯合所有子類別列。

    在PHP中使用MySQLi建立資料庫連線的詳盡教學 在PHP中使用MySQLi建立資料庫連線的詳盡教學 Jun 04, 2024 pm 01:42 PM

    如何在PHP中使用MySQLi建立資料庫連線:包含MySQLi擴充(require_once)建立連線函數(functionconnect_to_db)呼叫連線函數($conn=connect_to_db())執行查詢($result=$conn->query())關閉連線( $conn->close())

    如何在PHP中處理資料庫連線錯誤 如何在PHP中處理資料庫連線錯誤 Jun 05, 2024 pm 02:16 PM

    PHP處理資料庫連線報錯,可以使用下列步驟:使用mysqli_connect_errno()取得錯誤代碼。使用mysqli_connect_error()取得錯誤訊息。透過擷取並記錄這些錯誤訊息,可以輕鬆識別並解決資料庫連接問題,確保應用程式的順暢運作。

    深入解析HTML如何讀取資料庫 深入解析HTML如何讀取資料庫 Apr 09, 2024 pm 12:36 PM

    HTML無法直接讀取資料庫,但可以透過JavaScript和AJAX實作。其步驟包括建立資料庫連線、發送查詢、處理回應和更新頁面。本文提供了利用JavaScript、AJAX和PHP來從MySQL資料庫讀取資料的實戰範例,展示如何在HTML頁面中動態顯示查詢結果。此範例使用XMLHttpRequest建立資料庫連接,發送查詢並處理回應,從而將資料填入頁面元素中,實現了HTML讀取資料庫的功能。

    PHP處理資料庫中文亂碼的技巧與實踐 PHP處理資料庫中文亂碼的技巧與實踐 Mar 27, 2024 pm 05:21 PM

    PHP是一種廣泛應用於網站開發的後端程式語言,它具有強大的資料庫操作功能,常用於與MySQL等資料庫進行互動。然而,由於中文字元編碼的複雜性,在處理資料庫中文亂碼時常常會出現問題。本文將介紹PHP處理資料庫中文亂碼的技巧與實踐,包括常見的亂碼原因、解決方法和具體的程式碼範例。常見的亂碼原因資料庫字元集設定不正確:資料庫建立時需選擇正確的字元集,如utf8或u

    如何用 Golang 連接遠端資料庫? 如何用 Golang 連接遠端資料庫? Jun 01, 2024 pm 08:31 PM

    透過Go標準庫database/sql包,可以連接到MySQL、PostgreSQL或SQLite等遠端資料庫:建立包含資料庫連接資訊的連接字串。使用sql.Open()函數開啟資料庫連線。執行SQL查詢和插入操作等資料庫操作。使用defer關閉資料庫連線以釋放資源。

    See all articles