You can rename a disk in a disk group with the ALTER
DISKGROUP
RENAME
DISK
SQL statement. In one SQL statement, you can rename one or multiple disks, or rename all disks in a disk group using the RENAME
DISKS
ALL
clause.
For example, you can rename disks as follows:
SQL> ALTER DISKGROUP fra2 MOUNT RESTRICTED; SQL> ALTER DISKGROUP fra2 RENAME DISK 'FRA1_0001' TO 'FRA2_0001', 'FRA1_0002' TO 'FRA2_0002';
The ALTER
DISKGROUP
diskgroupname
RENAME
DISKS
ALL
statement can be run after the renamedg
utility to change the names of the disks in the renamed disk group. For information about renamedg
, refer to "Renaming Disks Groups".
When you run the ALTER
DISKGROUP
diskgroupname
RENAME
DISKS
ALL
statement, any disk name that is not in the format diskgroupname
_
number
is renamed to that format. Disk names that are already in the diskgroupname
_
number
format are not changed.
You can only use the RENAME
DISK
operation when the disk group that contains the disk is in the MOUNT
RESTRICTED
state. If any disks in the disk group are offline, then the RENAME
operation fails. If the new disk name exists, then the RENAME
operation fails. You must have SYSASM
privileges to rename a disk.