Skip to content

How to Install Oracle Database 12.1 Standalone on CentOS 6.5 Minimal (2/5) - Prepare Oracle Groups, Accounts and Directories

  • by
How to Install Oracle Database 12.1 Standalone on CentOS 6.5 Minimal (1/5) - Install Required Linux Packages
In this section, we will create Oracle related groups, accounts and directories.

Create groups and accounts.
[root@primary01 ~]# groupadd oinstall
[root@primary01 ~]# groupadd dba
[root@primary01 ~]# groupadd oper
[root@primary01 ~]# useradd oracle -g oinstall -G dba,oper
[root@primary01 ~]# id oracle
uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba),502(oper)
[root@primary01 ~]# passwd oracle
Changing password for user oracle.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

Set the limitation on the account oracle.
[root@primary01 ~]# vi /etc/security/limits.conf
...
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768

Create Oracle software destinations.
[root@primary01 ~]# mkdir -p /u01/app/oracle
[root@primary01 ~]# mkdir /u01/app/oraInventory
[root@primary01 ~]# chown -R oracle:oinstall /u01/app/oracle
[root@primary01 ~]# chown -R oracle:oinstall /u01/app/oraInventory
[root@primary01 ~]# chmod -R 775 /u01/app/oracle
[root@primary01 ~]# chmod -R 775 /u01/app/oraInventory
[root@primary01 ~]# ll /u01/app
total 8
drwxrwxr-x. 2 oracle oinstall 4096 Jul 16 18:47 oracle
drwxrwxr-x. 2 oracle oinstall 4096 Jul 16 18:47 oraInventory

Restart the server.
[root@primary01 ~]# shutdown -r now
So far, we are working with root, and we did not use the account oracle to do anything. Next section, we will download Oracle software and unzip it with oracle.

How to Install Oracle Database 12.1 Standalone on CentOS 6.5 Minimal (3/5) - Download and Unzip 12c Software

Leave a Reply

Your email address will not be published.