You must connect to ASM instances that are using the SYSDBA
and SYSASM roles for users. If you do not want to use the SYS account
to connect to ASM instances, create a user account and grant the SYSDBA
and SYSASM roles to the account.
Procedure
- Run the following commands to create a user account and
grant roles:
- For Oracle 10g
Important: Oracle 10g does not have
the SYSASM role and does not support creating a new database user
in the ASM instance directly using sqlplus.
When you create
the ASM connection in the configuration panel, specify the UserName
user and the SYSDBA role for Oracle Database 10g. Use only the SYSDBA
role. The UserName must be created first.
- Set the ORACLE_HOME and ORACLE_SID environment
variables as RDBMS home/sid:
- Create the database user by logging in to RDBMS in sqlplus, and
creating a new user:
- create user UserName identified by Password
- connect / as sysdba
- grant sysdba to UserName
- Rename the original ASM password file:
- Back up the ASM password file:
mv password file for asm instance password file for asm instance.orig
- Copy the RDBMS password file and rename the file with the ASM
password file name:
cp password file for database instance password file for asm instance
- Verify the connection to ASM on a separate computer with UserName
in sqlplus SQL> connect UserName/Password as sysdba.
- For Oracle 11g
For Oracle 11g, you must
log in to the ASM database with the SYSASM role to create a new user
for an agent and grant the SYSDBA role or SYSASM role:
create user UserName identified by Password
grant sysdba to UserName
or
grant sysasm to UserName
- When you create the ASM connection in the configuration
panel, specify the UserName user and the SYSDBA
role for Oracle Database 10g, and the UserName user
and the SYSDBA or SYSASM role for Oracle 11g.
Note: If
you choose the SYSASM role to access the Oracle 11g ASM database,
you must configure the agent instance by using Oracle 11g Oracle home
or Oracle instant client to connect to the Oracle database.