Install Oracle 11G on Centos Linux 7

Make sure SElinux DISABLED.

Add groups and user:

groupadd -g 501 oinstall
groupadd -g 502 dba
useradd -u 502 -g oinstall -G dba oracle
passwd oracle
Add kernel parameters

vi /etc/sysctl.conf

kernel.shmmni = 4096  
kernel.shmmax = 4398046511104 
kernel.shmall = 1073741824 
kernel.sem = 250 32000 100 128 

fs.aio-max-nr = 1048576 
fs.file-max = 6815744 

net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 
net.core.rmem_max = 4194304 
net.core.wmem_default = 262144 
net.core.wmem_max = 1048586

Apply kernel parameters

sysctl -p
Set shell limits for user oracle

vi  /etc/security/limits.conf

oracle   soft   nproc    131072 
oracle   hard   nproc    131072 
oracle   soft   nofile   131072 
oracle   hard   nofile   131072 
oracle   soft   core     unlimited 
oracle   hard   core     unlimited 
oracle   soft   memlock  50000000 
oracle   hard   memlock  50000000
The “/etc/hosts” file must contain a fully qualified server name.

127.0.0.1    db.yourhost.com

and verify by ping db.yourhost.com

64 bytes from db.yourhost.com (127.0.0.1): icmp_seq=1 ttl=64 time=0.080 ms
vi /home/oracle/.bash_profile

# Oracle Settings 

export TMP=/tmp 
export ORACLE_HOSTNAME=db.yourhost.com 
export ORACLE_UNQNAME=orcl 
export ORACLE_BASE=/home/oracle/app/oracle 
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1 
export ORACLE_SID=orcl
PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin 
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; 
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; 

alias cdob='cd $ORACLE_BASE' 
alias cdoh='cd $ORACLE_HOME' 
alias tns='cd $ORACLE_HOME/network/admin' 
alias envo='env | grep ORACLE' 

umask 022
Check packages which are missing:(and install them)

rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n' binutils \ elfutils-libelf \ elfutils-libelf-devel \ gcc \ gcc-c++ \ glibc \ glibc-common \ glibc-devel \ glibc-headers \ ksh \ libaio \ libaio-devel \ libgcc \ libstdc++ \ libstdc++-devel \ make \ sysstat \ unixODBC \ unixODBC-devel

Finally, go into the unzipped database dir,(with GUI)

./runInstaller

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.