{"id":159,"date":"2013-07-10T14:32:39","date_gmt":"2013-07-10T19:32:39","guid":{"rendered":"https:\/\/bijoos.com\/oraclenotes\/?p=159"},"modified":"2026-02-07T15:34:46","modified_gmt":"2026-02-07T21:34:46","slug":"oracledb12c-new-feature-rename-and-replace-asm-disks-in-diskgroup","status":"publish","type":"post","link":"https:\/\/bijoos.com\/oraclenotes\/2013\/159\/","title":{"rendered":"OracleDB12c New Feature: Rename and Replace ASM Disk(s) in Diskgroup"},"content":{"rendered":"<p>As I have not set up 12c GI ASM yet, have not tested this feature&#8230; Rename clause is nice to have. Replace clause helps to avoid multiple steps when replacing disk (LUN) with new one [array migration, for example].<\/p>\n<p>Information below is straight copy from <a title=\"ALTER DISKGROUP in Oracle Docs\" href=\"http:\/\/docs.oracle.com\/cd\/E16655_01\/server.121\/e17209\/statements_1009.htm\" target=\"_blank\">Oracle Documentation<\/a>&#8230;<\/p>\n<p><a title=\"Rename Disk Clause - Oracle Docs\" href=\"http:\/\/docs.oracle.com\/cd\/E16655_01\/server.121\/e17209\/statements_1009.htm#BGECIAHJ\" target=\"_blank\"><span style=\"text-decoration: underline;\"><strong>rename_disk_clause<\/strong><\/span><\/a><\/p>\n<pre class=\"font-size:13 lang:default highlight:0 decode:true\" title=\"Rename Disk in ALTER DISKGROUP\">ALTER DISKGROUP diskgroup_name \n  RENAME\n  { DISK old_disk_name TO new_disk_name \n  [, old_disk_name TO new_disk_name ]...\n  | DISKS ALL }<\/pre>\n<p>Use this clause to rename one or more disks in the disk group. The disk group must be\u00a0in the MOUNT RESTRICTED state and all disks in the disk group must be online.<\/p>\n<p>RENAME DISK Specify this clause to rename one or more disks. For each disk,\u00a0specify the old_disk_name and new_disk_name. If new_disk_name already exists, then\u00a0this operation fails.<br \/>\nRENAME DISKS ALL Specify this clause to rename all disks in the disk group to a\u00a0name of the form diskgroupname_####, where #### is the disk number. Disk names\u00a0that are already in the diskgroupname_#### format are not changed.<\/p>\n<p><a title=\"Replace Disk Clause - Oracle Docs\" href=\"http:\/\/docs.oracle.com\/cd\/E16655_01\/server.121\/e17209\/statements_1009.htm#BGECCJJD\" target=\"_blank\"><span style=\"text-decoration: underline;\"><strong>replace_disk_clause<\/strong><\/span><\/a><\/p>\n<pre class=\"font-size:13 lang:default highlight:0 decode:true crayon-selected\" title=\"Replace Disk in ALTER DISKGROUP\">ALTER DISKGROUP diskgroup_name \n  REPLACE DISK disk_name \n  WITH 'path_name' \n  [ POWER integer ] [ WAIT | NOWAIT ]<\/pre>\n<p>Use this clause to replace a disk in the disk group. This clause provides a single replace operation, which is more efficient than dropping and adding a disk.<\/p>\n<p>For disk_name, specify the name of the disk you want to replace. This name is assigned to the replacement disk. You can view disk names by querying the NAME column of the V$ASM_DISK dynamic performance view.<\/p>\n<p>For path_name, specify the full path name for the replacement disk.<\/p>\n<p>The POWER clause has the same semantics here as for a manual rebalancing of a disk group, except that the power value cannot be set to 0. \u00a0The WAIT and NOWAIT keywords have the same semantics here as for a manual rebalancing of a disk group.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I have not set up 12c GI ASM yet, have not tested this feature&#8230; Rename clause is nice to have. Replace clause helps to avoid multiple steps when replacing disk (LUN) with new one [array migration, for example]. Information below is straight copy from Oracle Documentation&#8230; rename_disk_clause ALTER DISKGROUP diskgroup_name RENAME { DISK old_disk_name &#8230; <a title=\"OracleDB12c New Feature: Rename and Replace ASM Disk(s) in Diskgroup\" class=\"read-more\" href=\"https:\/\/bijoos.com\/oraclenotes\/2013\/159\/\" aria-label=\"Read more about OracleDB12c New Feature: Rename and Replace ASM Disk(s) in Diskgroup\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[133],"tags":[],"class_list":["post-159","post","type-post","status-publish","format-standard","hentry","category-oracledb"],"acf":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":1,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/159\/revisions"}],"predecessor-version":[{"id":3028,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/159\/revisions\/3028"}],"wp:attachment":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/media?parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/categories?post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/tags?post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}