rpusr

Purpose

Replaces one operating system (OS) user with another in a disk group.

Syntax and Description

rpusr diskgroup user1 user2

Table 10-80 lists the syntax options for the rpusr command.


Table 10-80 Options for the rpusr command

Option Description

diskgroup

Specifies the name of the disk group.

user1

Name of the user to be replaced.

user2

Name of user that replaces the existing user in the disk group.


The rpusr command replaces one operating system user with another in an Oracle ASM disk group. The replacement user must not be a user currently in the disk group user list.

If the command succeeds, all files that were previously owned by current user are now owned by the replacement user. The current user is automatically removed from the user list of the disk group. Adding the current user back to the disk group is possible but this user will not own any files.

When changing the ownership of an open file, the new owner cannot be dropped with the owner's files until all instances within a cluster are restarted.

The command requires the SYSASM privilege to run.

Examples

The following is an example of the rpusr command that replaces the oracle1 user with the oracle2 user in the data disk group.

Example 10-89 Using the ASMCMD rpusr command

ASMCMD [+] > rpusr data oracle1 oracle2