When you are logged in to an Oracle ASM instance as SYSASM, you can use the combination of CREATE
USER
and GRANT
SQL statements to create a user who has the SYSASM privilege. You also can revoke the SYSASM privilege from a user using the REVOKE
command, and you can drop a user from the password file using the DROP
USER
command.
These commands update the password file for the local Oracle ASM instance only.
Oracle ASM does not support the creation of external and global users.
The following example describes how to perform these SQL operations for the user identified as new_user
:
REM create a new user, then grant the SYSASM privilege SQL> CREATE USER new_user IDENTIFIED by new_user_passwd; SQL> GRANT SYSASM TO new_user; REM connect the user to the ASM instance SQL> CONNECT new_user AS SYSASM; Enter password: REM revoke the SYSASM privilege, then drop the user SQL> REVOKE SYSASM FROM new_user; SQL> DROP USER new_user;
When you revoke the last privilege of a user in an Oracle ASM password file, the user is not automatically deleted as is done in the Oracle Database password file. You must run DROP
USER
to delete a user with no privileges in an Oracle ASM password file.
For information about creating a user with Oracle ASM command-line utility (ASMCMD), see "orapwusr".
Oracle Database SQL Language Reference for information about the CREATE
USER
and GRANT
commands
Oracle Database Administrator's Guide for information about creating and maintaining a password file