orapwusr

Purpose

Add, drop, or modify an Oracle ASM password file user.

Syntax and Description

orapwusr { --add | --modify | --delete | grant {sysasm|sysdba|sysoper} | 
           --revoke {sysasm|sysdba|sysoper} } user

Table 10-9 lists the options for the orapwusr command.


Table 10-9 Options for the orapwusr command

Option Description

--add

Adds a user to the password file. Also prompts for a password.

--modify

Changes the password for the specified user.

--delete

Drops a user from the password file.

--grant role

Sets the role for the user. The options are sysasm, sysdba, and sysoper.

--revoke role

Removes the role for the user. The options are sysasm, sysdba, and sysoper.

user

Name of the user to add, drop, or modify.


orapwusr attempts to update passwords on all nodes in a cluster. This command requires the SYSASM privilege to run. A user logged in as SYSDBA cannot change its password using this command.

Examples

The following is an example of the orapwusr command. This example adds the hruser to the Oracle ASM password file.

Example 10-11 Using the ASMCMD orapwusr command

ASMCMD [+] > orapwusr --add hruser