In installations of Oracle RAC with Oracle Solaris Cluster software, the DBA group is normally named dba. This group normally contains the root user and the oracle user.
Perform this task on each cluster node.
# groupadd -g group-id group-name
Specifies the name of the group for which you are adding an entry. This group is normally named dba.
Specifies the group's unique numerical ID (GID) within the system.
Ensure that the command is identical on each node that can run Oracle RAC.
You can create the name service entries in a network name service, such as the Network Information Service (NIS) or NIS+, so that the information is available to the data service clients. You can also create entries in the local /etc files to eliminate dependency on the network name service.
You are not required to create a home directory for the root user.
For each potential user whose home directory you are creating, type the following command:
# mkdir -p user-home
Specifies the full path of the home directory that you are creating.
You are not required to add the root user.
Use the useradd command to add each user. Adding a user to the system adds an entry for the user to the following files:
/etc/passwd
/etc/shadow
# useradd -u user-id -g group-name -d user-home \ [ -s user-shell] user-name
Specifies the user's unique numerical ID (UID) within the system.
Specifies the name of the user group of which the user is a member. You must specify the DBA group that you defined in Step 2.
Specifies the full path of the user's home directory. You must specify the home directory that you created for the user in Step 3.
Optionally specifies the full path name of the program that is to be used as the user's shell when the user logs in. If you omit the –s option, the system uses the /bin/sh program by default. If you specify the –s option, user-shell must specify a valid executable file.
Specifies the user name of the user that you are adding. You must specify the name of a potential user in the DBA group that you defined in Step 2.
Ensure that each user is identical on each node that can run Support for Oracle RAC.
Use the passwd command to set the password of each user.
# password user-name
Specifies the user name of the user whose password you are setting. You must specify the name of a user in the DBA group that you added in Step 4.
The passwd command prompts you for the password.
The passwd command prompts you to retype the password.
Owner: the user for which you created the home directory
Group: the DBA group that you defined in Step 2
For each home directory for which you are changing ownership, type the following command:
# chown user-name:group-name user-home
Specifies the user name of the user for whose home directory you are changing ownership. You must specify the name of a user in the DBA group that you added in Step 4.
Specifies the name of the user group of which the user is a member. You must specify the DBA group that you defined in Step 2.
Specifies the full path of the user's home directory. You must specify the home directory that you created for the user in Step 3.
For each subdirectory that you are creating, type the following command:
# mkdir /var/opt/user-name
Specifies the user name of the user whose subdirectory of the /var/opt directory you are creating. You must specify the name of a user in the DBA group that you added in Step 4.
Owner: the user for which you created the directory
Group: the DBA group that you defined in Step 2
For each directory for which you are changing ownership, type the following command:
# chown user-name:group-name /var/opt/user-name
Specifies the user name of the user for whose home directory you are changing ownership. You must specify the name of a user in the DBA group that you added in Step 4.
Specifies the name of the user group of which the user is a member. You must specify the DBA group that you defined in Step 2.
This example shows the sequence of commands for creating the DBA group dba, which is to contain the users root and oracle.
The dba group and the oracle user are created as follows:
The GID of the dba group is 520.
The home directory of the oracle user is /Oracle-home.
The UID of the oracle user is 120.
The oracle user's login shell is the Bash shell.
# groupadd -g 520 dba # mkdir /Oracle-home # useradd -u 120 -g dba -d /Oracle-home -s /bin/bash oracle # passwd oracle New Password:oracle Re-enter new Password:oracle passwd: password successfully changed for oracle # chown oracle:dba /Oracle-home # mkdir /var/opt/oracle # chown oracle:dba /var/opt/oracle
See also
The following man pages:
Next Steps
Go to How to Configure Shared Memory for Support for Oracle RAC Software in the Global Cluster.