5 Creating Required Operating System Groups and Users
The following local operating system groups and users are required if you are installing Oracle Database:
-
The Oracle Inventory group (
oinstall) -
The OSDBA group (
dba) -
The Oracle software owner (
oracle) -
An unprivileged user (
nobody)
To determine whether these groups and users already exist, and if necessary, to create them, follow these steps:
-
To determine whether the
oinstallgroup exists, enter the following command:# more /etc/oraInst.loc
If the output of this command shows the
oinstallgroup name, then the group already exists.If the
oraInst.locfile exists, then the output from this command is similar to the following:inventory_loc=/u01/app/oracle/oraInventory inst_group=oinstall
The
inst_groupparameter shows the name of the Oracle Inventory group,oinstall.
-
To determine whether the
dbagroup exists, enter the following command:# grep dba /etc/group
If the output from this commands shows the
dbagroup name, then the group already exists. -
If necessary, enter the following commands to create the
oinstallanddbagroups:# /usr/sbin/groupadd oinstall # /usr/sbin/groupadd dba
-
To determine whether the
oracleuser exists and belongs to the correct groups, enter the following command:# id oracle
If the
oracleuser exists, then this command displays information about the groups to which the user belongs. The output should be similar to the following, indicating thatoinstallis the primary group anddbais a secondary group:uid=440(oracle) gid=200(oinstall) groups=201(dba),202(oper)
-
If necessary, complete one of the following actions:
-
If the
oracleuser exists, but its primary group is notoinstallor it is not a member of thedbagroup, then enter the following command:# /usr/sbin/usermod -g oinstall -G dba oracle
-
If the
oracleuser does not exist, enter the following command to create it:# /usr/sbin/useradd -g oinstall -G dba oracle
This command creates the
oracleuser and specifiesoinstallas the primary group anddbaas the secondary group.
-
-
Enter the following command to set the password of the
oracleuser:# passwd oracle
-
To determine whether the
nobodyuser exists, enter the following command:# id nobody
If this command displays information about the
nobodyuser, then you do not have to create the user.If the
nobodyuser does not exist, then enter the following command to create it:# /usr/sbin/useradd nobody
6 Configuring Kernel Parameters
Verify that the kernel parameters shown in the following table are set to values greater than or equal to the recommended value shown. The procedure following the table describes how to verify and set the values.
ParameterValueFile
semmslsemmns
semopm
semmni
250
32000
100
128
/proc/sys/kernel/semshmall2097152/proc/sys/kernel/shmallshmmaxHalf the size of physical memory (in bytes)/proc/sys/kernel/shmmaxshmmni4096/proc/sys/kernel/shmmnifile-max65536/proc/sys/fs/file-maxip_local_port_rangeMinimum: 1024
Maximum: 65000
/proc/sys/net/ipv4/ip_local_port_rangermem_default262144/proc/sys/net/core/rmem_defaultrmem_max262144/proc/sys/net/core/rmem_maxwmem_default262144/proc/sys/net/core/wmem_defaultwmem_max262144/proc/sys/net/core/wmem_max
Note:
If the current value of any parameter is higher than the value listed in this table, then do not change the value of that parameter.






