setattr

Purpose

Sets the attributes for an Oracle ASM disk group.

Syntax and Description

setattr -G diskgroup attribute_name attribute_value

Table 10-60 lists the syntax options for the setattr command.


Table 10-60 Options for the setattr command

Option Description

-G diskgroup

Disk group name.

attribute_name

Name of the attribute.

attribute_value

Value of the attribute.


The COMPATIBLE.ASM attribute must be advanced before advancing other disk group compatibility attributes and its value must be greater than or equal to the value of other disk group compatibility attributes.

For information about disk group attributes, see "Managing Disk Group Attributes".

Example

The following are examples of the setattr command. The first example sets the disk group attribute COMPATIBLE.ASM to 12.1.0.2 for the data disk group. The second example sets the disk group attribute COMPATIBLE.RDBMS to 12.1 for the data disk group.

Example 10-71 Using the ASMCMD setattr command

ASMCMD [+] > setattr -G data compatible.asm 12.1.0.2

ASMCMD [+] > setattr -G data compatible.rdbms 12.1