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 |
---|---|
|
Specifies the name of the disk group. |
|
Name of the user to be replaced. |
|
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.