{"id":389,"date":"2023-05-17T10:44:47","date_gmt":"2023-05-17T08:44:47","guid":{"rendered":"https:\/\/ptdb.ch\/?p=389"},"modified":"2023-05-17T10:44:47","modified_gmt":"2023-05-17T08:44:47","slug":"oracle-asm-backup-and-restore-diskgroup-metadata-with-oracle-21c","status":"publish","type":"post","link":"https:\/\/ptdb.ch\/?p=389","title":{"rendered":"ORACLE: ASM &#8211; Backup And Restore DiskGroup Metadata With Oracle 21c"},"content":{"rendered":"<p>Starting with Oracle 11g, Oracle extended the ASMCMD command to include ASM disk group metadata backup and restore functionality.<\/p>\n<p>For a list of all commands added with 11g, take a look at the following MOS Note: ASMCMD \u2013 New commands in 11gR1 (Doc ID 451900.1)<\/p>\n<p>The ASMCMD md_backup and md_restore commands provide the ability to recreate a pre-existing ASM disk group with the same disk paths, disk names, failure groups, attributes, templates and alias directory structure. In 10g you have to manually recreate the ASM disk group and any required user directories\/templates. In 11g or newer we can take backup of ASM diskgroup metadata.<\/p>\n<p>The md_backup command creates a backup file containing metadata for one or more disk groups. By default all the mounted disk groups are included in the backup file which is saved in the current working directory.<\/p>\n<p>Backup the ACFS Disk Group metadata.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nASMCMD&gt; lsdg\nState    Type    Rebal  Sector  Logical_Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name\nMOUNTED  NORMAL  N         512             512   4096  8388608      8192     7824                0            3912              0             N  ACFS\/\nMOUNTED  NORMAL  N         512             512   4096  1048576     24576    13609             8192            2708              0             N  DATA\/\nMOUNTED  NORMAL  N         512             512   4096  1048576     49152    45493             8192           18650              0             N  FRA\/\n\n&#x5B;grid@ocm199 backup]$ srvctl status diskgroup -g ACFS\nDisk Group ACFS is running on ocm199\n\nNow run the actual md_backup command.\n\n&#x5B;sourcecode language=&quot;plain&quot;]\nASMCMD&gt; md_backup \/u01\/app\/oracle\/admin\/+ASM\/backup\/ACFS_DG.metadata.backup -G ACFS\nDisk group metadata to be backed up: ACFS\nCurrent alias directory path: sw0\nCurrent alias directory path: sw0\/oracle\nCurrent alias directory path: sw0\/redis\nCurrent alias directory path: sw0\/postgres\nCurrent alias directory path: sw0\/mariadb\nASMCMD&gt;\n\n\nIn case you want to learn more about the md_backup command, check out the help.\n&#x5B;sourcecode language=&quot;plain&quot;]\nASMCMD&gt; help md_backup\nmd_backup\n        The md_backup command creates a backup file containing metadata\n        for one or more disk groups.\n        Volume and Oracle Automatic Storage Management Cluster File System\n        (Oracle ACFS) file system information is also backed up.\n\nSynopsis\n        md_backup &lt;backup_file&gt; &#x5B;--acfs_sec_encr] &#x5B;-G &lt;diskgroups,...&gt;]\n\nDescription\n        The options for the md_backup command are described below.\n\n        backup_file     - Specifies the backup file in which you want to\n                          store the metadata.\n        --acfs_sec_encr - Specifies that security, encryption, and\/or\n                          audit information from ACFS will be backed up.\n        -G diskgroup    - Specifies the disk group name of the disk group\n                          that must be backed up\n\n        By default all the mounted disk groups are included in the backup file,\n        which is saved in the current working directory.\n\nExamples\n        The first example shows the use of the backup command when run\n        without the disk group option. This example backs up all of the mounted\n        disk groups and creates the backup image in the\n        \/scratch\/backup\/alldgs20100422 file. The second example creates a\n        backup of DATA disk group. The backup that this example creates is\n        saved in the \/scratch\/backup\/data20100422 file. The third example\n        creates a full disk group backup. This example backs up all of the\n        mounted disk groups, volumes and file system that are visible on\n        the current node and created the backup image in the given path.\n        The forth example creates a full backup of disk group, volume and\n        file system including file system security, encryption and audit\n        attributes. The fifth example creates a backup of DATA disk group.\n        This example starts DATA disk group backup and detects a volume\n        with DRL (Disk group Recovery Log) and it adds DATADRL disk group\n        to backup.\n\n        ASMCMD &#x5B;+] &gt; md_backup \/scratch\/backup\/alldgs20100422\n        Disk group metadata to be backed up: DATA\n        Disk group metadata to be backed up: FRA\n        Current alias directory path: ORCL\/ONLINELOG\n        Current alias directory path: ORCL\/PARAMETERFILE\n        Current alias directory path: ORCL\n        Current alias directory path: ASM\n        Current alias directory path: ASM\/ASMPARAMETERFILE\n        Current alias directory path: ORCL\/DATAFILE\n        Current alias directory path: ORCL\/TEMPFILE\n        Current alias directory path: ORCL\/CONTROLFILE\n        Current alias directory path: ORCL\/ARCHIVELOG\/2009_07_13\n        Current alias directory path: ORCL\/BACKUPSET\/2009_07_14\n        Current alias directory path: ORCL\/ARCHIVELOG\/2009_07_14\n        Current alias directory path: ORCL\n        Current alias directory path: ORCL\/DATAFILE\n        Current alias directory path: ORCL\/ARCHIVELOG\n        Current alias directory path: ORCL\/BACKUPSET\n        Current alias directory path: ORCL\/ONLINELOG\n\n\n        ASMCMD &#x5B;+] &gt; md_backup \/scratch\/backup\/data20100422 -G DATA\n        Disk group metadata to be backed up: DATA\n        Current alias directory path: ASM\/ASMPARAMETERFILE\n        Current alias directory path: ORCL\/DATAFILE\n        Current alias directory path: ORCL\/TEMPFILE\n        Current alias directory path: ORCL\/CONTROLFILE\n        Current alias directory path: ORCL\/PARAMETERFILE\n        Current alias directory path: ASM\n        Current alias directory path: ORCL\n        Current alias directory path: ORCL\/CONTROLFILE\n        Current alias directory path: ORCL\/DATAFILE\n        Current alias directory path: ORCL\/ARCHIVELOG\n        Current alias directory path: ORCL\/BACKUPSET\n        Current alias directory path: ORCL\/ONLINELOG\n\n\n        ASMCMD &#x5B;+] &gt; md_backup \/scratch\/backup\/data20100422\n        Disk group metadata to be backed up: DATA\n        ADVM metadata to be backed up: VOL1\n        ADVM metadata to be backed up: VOL2\n        ADVM metadata to be backed up: VOL3\n        ACFS metadata to be backed up:\/mountfs\/fs1\n        ACFS metadata to be backed up:\/mountfs\/fs2\n        ACFS metadata to be backed up:\/mountfs\/fs3\n\n\n        ASMCMD &#x5B;+] &gt; md_backup \/scratch\/backup\/data20100422 --acfs_sec_encr\n        Disk group metadata to be backed up: DATA\n        ADVM metadata to be backed up: VOL1\n        ADVM metadata to be backed up: VOL2\n        ADVM metadata to be backed up: VOL3\n        ACFS metadata to be backed up:\/mountfs\/fs1\n        ACFS metadata to be backed up:\/mountfs\/fs2\n        ACFS metadata to be backed up:\/mountfs\/fs3\n\n\n        ASMCMD &#x5B;+] &gt; md_backup \/scratch\/backup\/data20100422 -G DATA\n        Disk group metadata to be backed up: DATA\n        ADVM metadata to be backed up: VOL1\n        ADVM metadata to be backed up: VOL2\n        ADVM metadata to be backed up: VOL3\n        ACFS metadata to be backed up:\/mountfs\/fs1\n        ACFS metadata to be backed up:\/mountfs\/fs2\n        ACFS metadata to be backed up:\/mountfs\/fs3\n        Disk group metadata to be backed up: DATADRL\n        ADVM metadata to be backed up: DRLVOL3\n        ADVM metadata to be backed up: VOL5\n        ACFS metadata to be backed up:\/mountfs\/fs4\n        ACFS metadata to be backed up:\/mountfs\/fs5\n<\/pre>\n<p>Stop the Disk Group ACFS and check the Disk Group status.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@ocm199 backup]$ srvctl stop diskgroup -g ACFS -f\n&#x5B;grid@ocm199 backup]$\n&#x5B;grid@ocm199 backup]$ asmcmd lsdg -g --discovery ACFS\nInst_ID  State       Type  Rebal  Sector  Logical_Sector  Block  AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name\n      1  DISMOUNTED        N           0               0      0   0         0        0                0               0              0             N  ACFS\/\n<\/pre>\n<p>Remove the Disk Group ACFS and cleanup the disk headers and check status.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@ocm199 backup]$ srvctl remove diskgroup -g ACFS -f\n&#x5B;grid@ocm199 backup]$\n\n&#x5B;grid@ocm199 backup]$ dd if=\/dev\/zero of=\/dev\/nvme0n1 bs=8192 count=1024\n1024+0 records in\n1024+0 records out\n8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.0291739 s, 288 MB\/s\n\n&#x5B;grid@ocm199 backup]$ dd if=\/dev\/zero of=\/dev\/nvme0n2 bs=8192 count=1024\n1024+0 records in\n1024+0 records out\n8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.0396138 s, 212 MB\/s\n&#x5B;grid@ocm199 backup]$\n\n&#x5B;grid@ocm199 backup]$ srvctl status diskgroup -g ACFS\nPRCA-1000 : ASM Disk Group ACFS does not exist\nPRCR-1001 : Resource ora.ACFS.dg does not exist\n\n&#x5B;grid@ocm199 backup]$ asmcmd lsdg -g --discovery ACFS\nASMCMD-8001: diskgroup 'ACFS' does not exist or is not mounted\n<\/pre>\n<p>Before recreating the ACFS Disk Group, check the disk status and the disk group status.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@ocm199 backup]$ asmcmd lsdsk -k -g --candidate\nInst_ID  Total_MB  Free_MB  OS_MB  Name       Failgroup  Site_Name  Site_GUID  Site_Status  Failgroup_Type  Library   Redund   Path\n      1         0        0   4096                                                           REGULAR         System    UNKNOWN  \/dev\/nvme0n1\n      1         0        0   4096                                                           REGULAR         System    UNKNOWN  \/dev\/nvme0n2\n      1         0        0   8192                                                           REGULAR         System    UNKNOWN  \/dev\/sdl\n      1         0        0   8192                                                           REGULAR         System    UNKNOWN  \/dev\/sdm\n&#x5B;grid@ocm199 backup]$\n<\/pre>\n<p>Now restore the Disk Group in full mode. The full mode restores the disk group exactly as it was at the time of backup.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@ocm199 backup]$ asmcmd\nASMCMD&gt; md_restore \/u01\/app\/oracle\/admin\/+ASM\/backup\/ACFS_DG.metadata.backup --full -G ACFS\nCurrent Diskgroup metadata being restored: ACFS\nDiskgroup ACFS created!\nSystem template AUTOLOGIN_KEY_STORE modified!\nSystem template ASMPARAMETERFILE modified!\nSystem template TEMPFILE modified!\nSystem template PARAMETERFILE modified!\nSystem template CHANGETRACKING modified!\nSystem template BACKUPSET modified!\nSystem template DUMPSET modified!\nSystem template INCR XTRANSPORT BACKUPSET modified!\nSystem template OCRFILE modified!\nSystem template ARCHIVELOG modified!\nSystem template AUDIT_SPILLFILES modified!\nSystem template AUTOBACKUP modified!\nSystem template DATAFILE modified!\nSystem template FLASHBACK modified!\nSystem template DATAGUARDCONFIG modified!\nSystem template XTRANSPORT BACKUPSET modified!\nSystem template CONTROLFILE modified!\nSystem template VOTINGFILE modified!\nSystem template XTRANSPORT modified!\nSystem template FLASHFILE modified!\nSystem template KEY_STORE modified!\nSystem template ONLINELOG modified!\nDirectory +ACFS\/sw0 re-created!\nDirectory +ACFS\/sw0\/redis re-created!\nDirectory +ACFS\/sw0\/postgres re-created!\nDirectory +ACFS\/sw0\/oracle re-created!\nDirectory +ACFS\/sw0\/mariadb re-created!\nASMCMD&gt;\n\n\n&#x5B;grid@ocm199 backup]$ asmcmd lsdg -g  --discovery ACFS\nInst_ID  State    Type    Rebal  Sector  Logical_Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name\n      1  MOUNTED  NORMAL  N         512             512   4096  8388608      8192     7824                0            3912              0             N  ACFS\/\n<\/pre>\n<p>Restart the Disk Group if necessary and display the Disk Group status.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@ocm199 backup]$ srvctl start diskgroup -g ACFS\nPRCC-1014 : ACFS was already running\nPRCR-1004 : Resource ora.ACFS.dg is already running\nPRCR-1079 : Failed to start resource ora.ACFS.dg\nCRS-5702: Resource 'ora.ACFS.dg' is already running on 'ocm199'\n&#x5B;grid@ocm199 backup]$\n\n&#x5B;grid@ocm199 backup]$ srvctl status diskgroup -g ACFS\nDisk Group ACFS is running on ocm199\n&#x5B;grid@ocm199 backup]$\n<\/pre>\n<p>Instead of running the md_restore command directly, you could have created a SQL file instead, which lists all the SQL commands.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nASMCMD&gt; md_restore -S \/u01\/app\/oracle\/admin\/+ASM\/backup\/md_restore.sql \/u01\/app\/oracle\/admin\/+ASM\/backup\/ACFS_DG.metadata.backup --full -G ACFS\nCurrent Diskgroup metadata being restored: ACFS\n\n\n&#x5B;grid@ocm199 ~]$ cat \/u01\/app\/oracle\/admin\/+ASM\/backup\/md_restore.sql\ncreate diskgroup ACFS NORMAL redundancy failgroup ACFS_0001 disk '\/dev\/nvme0n2' name ACFS_0001 size 4096M failgroup ACFS_0000 disk '\/dev\/nvme0n1' name ACFS_0000 size 4096M attribute 'compatible.asm' = '21.0.0.0.0', 'compatible.rdbms' = '21.0.0.0.0', 'au_size' = '8388608';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.OCRFILE._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUDIT_SPILLFILES.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT BACKUPSET._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ARCHIVELOG._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHBACK.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.PARAMETERFILE._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHFILE._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.BACKUPSET.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.KEY_STORE.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ASMPARAMETERFILE._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.INCR XTRANSPORT BACKUPSET.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CONTROLFILE._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAFILE._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DUMPSET.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOLOGIN_KEY_STORE.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.PARAMETERFILE.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.VOTINGFILE._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT BACKUPSET.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.BACKUPSET._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ASMPARAMETERFILE._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOBACKUP._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ASMPARAMETERFILE.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ARCHIVELOG._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DUMPSET.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CHANGETRACKING.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAGUARDCONFIG._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.VOTINGFILE._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ARCHIVELOG.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.BACKUPSET._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHFILE.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ASMPARAMETERFILE.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAFILE.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ARCHIVELOG.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CONTROLFILE._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CHANGETRACKING._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAGUARDCONFIG.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAFILE._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.OCRFILE._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.KEY_STORE._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHFILE._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHFILE._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.INCR XTRANSPORT BACKUPSET._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.VOTINGFILE.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUDIT_SPILLFILES._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUDIT_SPILLFILES.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAGUARDCONFIG._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CHANGETRACKING._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.KEY_STORE._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHBACK._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.OCRFILE._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.PARAMETERFILE.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOBACKUP._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.TEMPFILE._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.BACKUPSET.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CHANGETRACKING.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHBACK._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.BACKUPSET.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHFILE.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ONLINELOG._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAFILE.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CHANGETRACKING._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUDIT_SPILLFILES._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT BACKUPSET.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHFILE._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAGUARDCONFIG.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOBACKUP._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOLOGIN_KEY_STORE._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHFILE._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DUMPSET._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ARCHIVELOG.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CONTROLFILE._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOBACKUP.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.INCR XTRANSPORT BACKUPSET._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT BACKUPSET.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOLOGIN_KEY_STORE.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUDIT_SPILLFILES._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ARCHIVELOG._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.BACKUPSET._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.KEY_STORE.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHBACK.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHBACK.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOBACKUP.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOLOGIN_KEY_STORE._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT BACKUPSET._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.TEMPFILE._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT BACKUPSET._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ONLINELOG.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.PARAMETERFILE._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.KEY_STORE.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHBACK.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.TEMPFILE.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.INCR XTRANSPORT BACKUPSET.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.TEMPFILE.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAGUARDCONFIG.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ONLINELOG._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.OCRFILE._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ONLINELOG.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOLOGIN_KEY_STORE._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAGUARDCONFIG._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.INCR XTRANSPORT BACKUPSET._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.BACKUPSET._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.VOTINGFILE.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.OCRFILE.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ASMPARAMETERFILE._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.OCRFILE.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.VOTINGFILE._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.OCRFILE._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.BACKUPSET._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT BACKUPSET._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.OCRFILE.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOLOGIN_KEY_STORE.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DUMPSET.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ARCHIVELOG.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CONTROLFILE._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOBACKUP.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.INCR XTRANSPORT BACKUPSET.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.BACKUPSET.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.TEMPFILE._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAFILE.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOLOGIN_KEY_STORE._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute '_USD.LIST_SIZE' = '4';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.KEY_STORE._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ONLINELOG._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ONLINELOG.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ARCHIVELOG._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAGUARDCONFIG.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CONTROLFILE.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DUMPSET._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CHANGETRACKING.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DUMPSET._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.PARAMETERFILE._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CHANGETRACKING._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT BACKUPSET._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOLOGIN_KEY_STORE.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.VOTINGFILE._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.INCR XTRANSPORT BACKUPSET._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOBACKUP._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.VOTINGFILE._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CHANGETRACKING._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.TEMPFILE.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.TEMPFILE._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOBACKUP.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ARCHIVELOG._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOLOGIN_KEY_STORE._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAFILE._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DUMPSET.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHFILE.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.PARAMETERFILE._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.OCRFILE.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ONLINELOG._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ASMPARAMETERFILE.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHBACK._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.KEY_STORE._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHBACK._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHBACK._DIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.XTRANSPORT BACKUPSET.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ASMPARAMETERFILE.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.VOTINGFILE.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUDIT_SPILLFILES.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute '_._DIRVERSION' = '21.0.0.0.0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ONLINELOG.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CONTROLFILE.REDUNDANCY' = '19';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.INCR XTRANSPORT BACKUPSET.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAFILE._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CONTROLFILE._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DUMPSET._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAGUARDCONFIG._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUDIT_SPILLFILES.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.PARAMETERFILE.PRIMARY_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.TEMPFILE._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAGUARDCONFIG._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.KEY_STORE._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ASMPARAMETERFILE._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAFILE._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ONLINELOG._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CHANGETRACKING.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.ASMPARAMETERFILE._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.PARAMETERFILE._SYSTEM' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CONTROLFILE.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.TEMPFILE.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.INCR XTRANSPORT BACKUPSET._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUDIT_SPILLFILES._STRIPE_WIDTH' = '8';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUTOBACKUP._STRIPE_SIZE' = '17';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DUMPSET._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.FLASHFILE.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.PARAMETERFILE.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.DATAFILE.MIRROR_REGION' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.KEY_STORE.REDUNDANCY' = '18';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.CONTROLFILE.STRIPE' = '1';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.AUDIT_SPILLFILES._INDIRECT_EXTENTS' = '4294967295, 0, 0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS set attribute 'TEMPLATE.VOTINGFILE.STRIPE' = '0';\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;INCR XTRANSPORT BACKUPSET&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;KEY_STORE&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;ONLINELOG&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;DATAGUARDCONFIG&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;FLASHFILE&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;DATAFILE&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;AUTOLOGIN_KEY_STORE&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;CHANGETRACKING&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;CONTROLFILE&quot; attributes (HIGH FINE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;ARCHIVELOG&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;BACKUPSET&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;DUMPSET&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;AUTOBACKUP&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;VOTINGFILE&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;FLASHBACK&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;ASMPARAMETERFILE&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;PARAMETERFILE&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;OCRFILE&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;AUDIT_SPILLFILES&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;TEMPFILE&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;XTRANSPORT&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR*\/ACFS alter template &quot;XTRANSPORT BACKUPSET&quot; attributes (MIRROR COARSE);\nalter diskgroup \/*ASMCMD AMBR *\/ ACFS add directory '+ACFS\/sw0';\nalter diskgroup \/*ASMCMD AMBR *\/ ACFS add directory '+ACFS\/sw0\/redis';\nalter diskgroup \/*ASMCMD AMBR *\/ ACFS add directory '+ACFS\/sw0\/postgres';\nalter diskgroup \/*ASMCMD AMBR *\/ ACFS add directory '+ACFS\/sw0\/oracle';\nalter diskgroup \/*ASMCMD AMBR *\/ ACFS add directory '+ACFS\/sw0\/mariadb';\n&#x5B;grid@ocm199 ~]$\n<\/pre>\n<p>In case you want to learn more about the md_restore command, check out the help.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nASMCMD&gt; help md_restore\nmd_restore\n        This command restores a disk group and ACFS metadata from backup.\n\nSynopsis\n        md_restore &lt;backup_file&gt; &#x5B;--silent]&#x5B;--full|--nodg|--newdg -o &lt;old_diskgroup:new_diskgroup,...&gt;] &#x5B;--acfs_sec_encr &lt;user:group&gt; &#x5B;--acfs_audit &lt;user:mgr_group:auditor_group&gt;]] &#x5B;-S &lt;sql_script_file&gt;] &#x5B;-G &lt;diskgroups,...&gt;]\n\nDescription\n        The options for the md_restore command are described below.\n\n        backup_file             - Reads the metadata information from\n                                  backup_file.\n        --silent                - Ignore errors. Normally, if md_restore\n                                  encounters an error, it will stop.\n                                  Specifying this flag ignores any errors.\n        --full                  - Specifies to create a disk group and restore\n                                  metadata.\n        --nodg                  - Specifies to restore metadata only.\n        --newdg -o old_diskgroup:new_diskgroup  - Specifies a comma separated list\n              of old diskgroup name and new diskgroup names to create a disk\n                                  group with a different name when restoring\n                                  metadata. The -o option is required\n                                  with --newdg.\n        --acfs_sec_encr user:group\n                                - Restore security and\/or encryption.\n                                  The colon separated user and group\n                                  will be used for security restoration.\n                                  During restore, security and\/or\n                                  encryption need to be initialized.\n                                  If security and\/or encryption is not\n                                  pre-initialized, the colon separated values\n                                  passed to the acfs_sec_encr option will\n                                  be used to initialize security.\n                                  Encryption will be initialized with SSO wallet.\n        --acfs_audit user:mgr_group:auditor_group\n                                - Requires acfs_sec_encr. Restores audit\n                                  information on an ACFS file system.\n                                  The colon separated values will be used\n                                  to initialize and execute audit commands.\n                                  During restore, audit needs to be initialized.\n                                  If audit is not pre-initialized, the audit\n                                  layer will be initialized using the colon\n                                  separated values given to the acfs_audit\n                                  option.\n        -S sql_script_file      - Write SQL commands to the specified SQL\n                                  script file instead of executing the commands.\n        -G diskgroups           - Comma separated list of disk groups to be restored.\n                                  If no disk groups are defined, then all\n                                  disk groups will be restored.\n\nExamples\n        The first example restores the disk group DATA from the backup script\n        and creates a copy. The second example takes an existing disk group\n        DATA and restores its metadata. The third example restores disk group\n        DATA completely but the new disk group that is created is called DATA2.\n        The fourth example performs a full restore and inializes security with\n        the user johndoe and group dba. For this case audit is not restored.\n        The fifth example performs a full restore initializing security with\n        the user johndoe and group dba and initializing audit with manager\n        group sys and auditors group dba, user janedoe is used for restoring\n        backup audit settings.\n        The sixth example restores from the backup file after applying the\n        overrides defined in the override.sql script file\n\n        ASMCMD &#x5B;+] &gt; md_restore --full -G data --silent \/tmp\/dgbackup20090714\n        ASMCMD &#x5B;+] &gt; md_restore --nodg -G data --silent \/tmp\/dgbackup20090714\n        ASMCMD &#x5B;+] &gt; md_restore --newdg -o 'data:data2' --silent\n                     \/tmp\/dgbackup20090714\n        ASMCMD &#x5B;+] &gt; md_restore --acfs_sec_encr johndoe:dba \/tmp\/dgbackup20090714\n        ASMCMD &#x5B;+] &gt; md_restore --acfs_sec_encr johndoe:dba -acfs_audit janedoe:sys:dba \/tmp\/dgbackup20090714\n        ASMCMD &#x5B;+] &gt; md_restore -S override.sql --silent \/tmp\/dgbackup20090714\n\n\nASMCMD&gt;\n<\/pre>\n<h3>Conclusion<\/h3>\n<p>The ASMCMD md_backup and md_restore is a very useful feature which helps you re-creating the ASM structure. But be careful, it restores only the metadata, not the data itself.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Starting with Oracle 11g, Oracle extended the ASMCMD command to include ASM disk group metadata backup and restore functionality. For a list of all commands added with 11g, take a look at the following MOS Note: ASMCMD \u2013 New commands in 11gR1 (Doc ID 451900.1) The ASMCMD md_backup and md_restore commands provide the ability to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"off","ocean_gallery_id":[],"footnotes":""},"categories":[2,4],"tags":[14,18],"class_list":["post-389","post","type-post","status-publish","format-standard","hentry","category-db","category-oracle","tag-asm","tag-oracle","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ORACLE: ASM - Backup And Restore DiskGroup Metadata With Oracle 21c - ptdb - Platinum DB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ptdb.ch\/?p=389\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ORACLE: ASM - Backup And Restore DiskGroup Metadata With Oracle 21c - ptdb - Platinum DB\" \/>\n<meta property=\"og:description\" content=\"Starting with Oracle 11g, Oracle extended the ASMCMD command to include ASM disk group metadata backup and restore functionality. For a list of all commands added with 11g, take a look at the following MOS Note: ASMCMD \u2013 New commands in 11gR1 (Doc ID 451900.1) The ASMCMD md_backup and md_restore commands provide the ability to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ptdb.ch\/?p=389\" \/>\n<meta property=\"og:site_name\" content=\"ptdb - Platinum DB\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-17T08:44:47+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"26 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ptdb.ch\\\/?p=389#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ptdb.ch\\\/?p=389\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/ptdb.ch\\\/#\\\/schema\\\/person\\\/0b7baf52d23e71d85e1c95442306090b\"},\"headline\":\"ORACLE: ASM &#8211; Backup And Restore DiskGroup Metadata With Oracle 21c\",\"datePublished\":\"2023-05-17T08:44:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ptdb.ch\\\/?p=389\"},\"wordCount\":4805,\"keywords\":[\"ASM\",\"Oracle\"],\"articleSection\":[\"DB\",\"Oracle\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ptdb.ch\\\/?p=389\",\"url\":\"https:\\\/\\\/ptdb.ch\\\/?p=389\",\"name\":\"ORACLE: ASM - Backup And Restore DiskGroup Metadata With Oracle 21c - ptdb - Platinum DB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ptdb.ch\\\/#website\"},\"datePublished\":\"2023-05-17T08:44:47+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ptdb.ch\\\/#\\\/schema\\\/person\\\/0b7baf52d23e71d85e1c95442306090b\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ptdb.ch\\\/?p=389#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ptdb.ch\\\/?p=389\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ptdb.ch\\\/?p=389#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ptdb.ch\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ORACLE: ASM &#8211; Backup And Restore DiskGroup Metadata With Oracle 21c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ptdb.ch\\\/#website\",\"url\":\"https:\\\/\\\/ptdb.ch\\\/\",\"name\":\"ptdb - Platinum DB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ptdb.ch\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ptdb.ch\\\/#\\\/schema\\\/person\\\/0b7baf52d23e71d85e1c95442306090b\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/ptdb.ch\"],\"url\":\"https:\\\/\\\/ptdb.ch\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ORACLE: ASM - Backup And Restore DiskGroup Metadata With Oracle 21c - ptdb - Platinum DB","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ptdb.ch\/?p=389","og_locale":"en_US","og_type":"article","og_title":"ORACLE: ASM - Backup And Restore DiskGroup Metadata With Oracle 21c - ptdb - Platinum DB","og_description":"Starting with Oracle 11g, Oracle extended the ASMCMD command to include ASM disk group metadata backup and restore functionality. For a list of all commands added with 11g, take a look at the following MOS Note: ASMCMD \u2013 New commands in 11gR1 (Doc ID 451900.1) The ASMCMD md_backup and md_restore commands provide the ability to [&hellip;]","og_url":"https:\/\/ptdb.ch\/?p=389","og_site_name":"ptdb - Platinum DB","article_published_time":"2023-05-17T08:44:47+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"26 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ptdb.ch\/?p=389#article","isPartOf":{"@id":"https:\/\/ptdb.ch\/?p=389"},"author":{"name":"admin","@id":"https:\/\/ptdb.ch\/#\/schema\/person\/0b7baf52d23e71d85e1c95442306090b"},"headline":"ORACLE: ASM &#8211; Backup And Restore DiskGroup Metadata With Oracle 21c","datePublished":"2023-05-17T08:44:47+00:00","mainEntityOfPage":{"@id":"https:\/\/ptdb.ch\/?p=389"},"wordCount":4805,"keywords":["ASM","Oracle"],"articleSection":["DB","Oracle"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/ptdb.ch\/?p=389","url":"https:\/\/ptdb.ch\/?p=389","name":"ORACLE: ASM - Backup And Restore DiskGroup Metadata With Oracle 21c - ptdb - Platinum DB","isPartOf":{"@id":"https:\/\/ptdb.ch\/#website"},"datePublished":"2023-05-17T08:44:47+00:00","author":{"@id":"https:\/\/ptdb.ch\/#\/schema\/person\/0b7baf52d23e71d85e1c95442306090b"},"breadcrumb":{"@id":"https:\/\/ptdb.ch\/?p=389#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ptdb.ch\/?p=389"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ptdb.ch\/?p=389#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ptdb.ch\/"},{"@type":"ListItem","position":2,"name":"ORACLE: ASM &#8211; Backup And Restore DiskGroup Metadata With Oracle 21c"}]},{"@type":"WebSite","@id":"https:\/\/ptdb.ch\/#website","url":"https:\/\/ptdb.ch\/","name":"ptdb - Platinum DB","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ptdb.ch\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ptdb.ch\/#\/schema\/person\/0b7baf52d23e71d85e1c95442306090b","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/ptdb.ch"],"url":"https:\/\/ptdb.ch\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/posts\/389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=389"}],"version-history":[{"count":0,"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions"}],"wp:attachment":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}