{"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_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[133],"tags":[],"class_list":["post-159","post","type-post","status-publish","format-standard","hentry","category-oracledb"],"acf":[],"jetpack-related-posts":[{"id":426,"url":"https:\/\/bijoos.com\/oraclenotes\/2014\/426\/","url_meta":{"origin":159,"position":0},"title":"Oracle Tidbits &#8211; June 2014","author":"Biju","date":"June 30, 2014","format":false,"excerpt":"\u201cOracle *daily* TidBits\u201d published at\u00a0https:\/\/www.facebook.com\/oraclenotes\u00a0on all weekdays\u00a0in June\u00a02014. You will also see these tidbits, one tidbit at a time, for each page refresh on the right side of this blog as well\u2026 TidBit Topic In Oracle Database 12c, the Pre-Upgrade Information Tool script is preupgrd.sql (meaningfully named). Earlier release pre-upgrade\u2026","rel":"","context":"In &quot;TidBits &amp; Quick Tips&quot;","block_context":{"text":"TidBits &amp; Quick Tips","link":"https:\/\/bijoos.com\/oraclenotes\/category\/tidbits\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":18,"url":"https:\/\/bijoos.com\/oraclenotes\/2011\/18\/","url_meta":{"origin":159,"position":1},"title":"Rename Diskgroup in ASM","author":"Biju","date":"September 26, 2011","format":false,"excerpt":"Rename ASM Diskgroup [11gR2]In 11gR2 it is possible to rename an ASM diskgroup. This is especially useful when performing database copy using OS level LUN mirroring technologies. The renamedg command is used to rename diskgroups. It has the following options:$ renamedg -helpParsing parameters..phase\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Phase to execute,\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (phase=ONE|TWO|BOTH), default BOTHdgname\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Diskgroup\u2026","rel":"","context":"In &quot;Infrastructure &amp; Exadata&quot;","block_context":{"text":"Infrastructure &amp; Exadata","link":"https:\/\/bijoos.com\/oraclenotes\/category\/infrastructure-exadata\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7,"url":"https:\/\/bijoos.com\/oraclenotes\/2012\/7\/","url_meta":{"origin":159,"position":2},"title":"Disk Array Migration for ASM Databases","author":"Biju","date":"November 26, 2012","format":false,"excerpt":"This blog identifies the DBA steps required to migrate databases from one disk array to another. Identify the ASM diskgroups and their disk (LUN) sizes Login to the ASM instance and identify the LUNs allocated to server. SQL> SET PAGES 999 SQL> col name format a15 For 11g ASM: SQL>\u2026","rel":"","context":"In &quot;Infrastructure &amp; Exadata&quot;","block_context":{"text":"Infrastructure &amp; Exadata","link":"https:\/\/bijoos.com\/oraclenotes\/category\/infrastructure-exadata\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":119,"url":"https:\/\/bijoos.com\/oraclenotes\/2013\/119\/","url_meta":{"origin":159,"position":3},"title":"OracleDB12c New Feature: More to Online Datafile Move","author":"Biju","date":"July 1, 2013","format":false,"excerpt":"As we already know, now with Oracle Database 12c, it is easier to move a data file. There is more to it... Let us see few operations in 11g, and how they all got simplified with Oracle 12c online file move feature... 1. Rename a file or move a file\u2026","rel":"","context":"In &quot;Oracle Database&quot;","block_context":{"text":"Oracle Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/oracledb\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1686,"url":"https:\/\/bijoos.com\/oraclenotes\/2016\/1686\/","url_meta":{"origin":159,"position":4},"title":"Oracle Daily Tidbits March 2016","author":"Biju","date":"April 1, 2016","format":false,"excerpt":"\u201cOracle *daily* TidBits\u201d (#oratidbit) published at\u00a0https:\/\/www.facebook.com\/oraclenotes\u00a0on weekdays\u00a0in March\u00a02016. You will also see these tidbits, one tidbit at a time, for each page refresh on the right side of this blog as well\u2026 Hope you find these helpful to learn something new or to remind you of its existence and use...\u2026","rel":"","context":"In &quot;TidBits &amp; Quick Tips&quot;","block_context":{"text":"TidBits &amp; Quick Tips","link":"https:\/\/bijoos.com\/oraclenotes\/category\/tidbits\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1761,"url":"https:\/\/bijoos.com\/oraclenotes\/2016\/1761\/","url_meta":{"origin":159,"position":5},"title":"Oracle Tidbits &#8211; September 2016","author":"Biju","date":"October 3, 2016","format":false,"excerpt":"\u201cOracle *daily* TidBits\u201d (#oratidbit) published at\u00a0https:\/\/www.facebook.com\/oraclenotes\u00a0on weekdays\u00a0in September\u00a02016. You will also see these tidbits, one tidbit at a time, for each page refresh on the right side of this blog as well\u2026 Hope you find these helpful to learn something new or to remind you of its existence and use\u2026\u2026","rel":"","context":"In &quot;TidBits &amp; Quick Tips&quot;","block_context":{"text":"TidBits &amp; Quick Tips","link":"https:\/\/bijoos.com\/oraclenotes\/category\/tidbits\/"},"img":{"alt_text":"Oracle TidBit","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2014\/05\/TidBit.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_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}]}}