CentOS 6 - Oracle Database 11g R2 - Pre-Requirements - Server World

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

17/11/2014

CentOS 6 - Oracle Database 11g R2 - Pre-Requirements : Server World

Install Oracle Database


11g R2.
Before Installing,
Change some settings
for requirements of
installing Oracle
database.
[1] Install Desktop
Environment, refer to
here.
[2] Install some packages
first.
[root@ db01 ~ ]# yum -y
i nstal l bi nuti l s com patl i bstdc+ + -33 com patl i bstdc+ + -33. i 686 ksh
el futi l s-l i bel f el futi l sl i bel f-devel gl i bc gl i bccom m on gl i bc-devel gcc
gcc-c+ + l i bai o l i bai o. i 686
l i bai o-devel l i bai odevel . i 686 l i bgcc l i bstdc+ +
l i bstdc+ + . i 686 l i bstdc+ + devel l i bstdc+ + -devel . i 686
m ake sysstat uni xODBC
uni xODBC-devel

[3] Edit Kernel parameters.


[root@ db01 ~ ]# vi / etc/ sysctl . conf
# com m ent out
#net. bri dge. bri dge-nf-cal l -i p6tabl es = 0
#net. bri dge. bri dge-nf-cal l -i ptabl es = 0
#net. bri dge. bri dge-nf-cal l -arptabl es = 0
# add fol l ows to the end
net. i pv4. i p_l ocal _port_range = 9000
65500
fs. fi l e-m ax = 6815744
kernel . shm al l = 10523004
kernel . shm m ax = 6465333657
kernel . shm m ni = 4096
kernel . sem = 250 32000 100 128
net. core. rm em _defaul t= 262144
net. core. wm em _defaul t= 262144
net. core. rm em _m ax= 4194304
net. core. wm em _m ax= 1048576
http://www.server-world.info/en/note?os=CentOS_6&p=oracle11g&f=1

1/3

17/11/2014

CentOS 6 - Oracle Database 11g R2 - Pre-Requirements : Server World

fs. ai o-m ax-nr = 1048576


[root@ db01 ~ ]# sysctl -p
net. i pv4. i p_forward = 0
net. i pv4. conf. defaul t. rp_fi l ter = 1
net. i pv4. conf. defaul t. accept_source_route
= 0
kernel . sysrq = 0
kernel . core_uses_pi d = 1
net. i pv4. tcp_syncooki es = 1
net. i pv4. i p_l ocal _port_range = 9000
65500
fs. fi l e-m ax = 65536
kernel . shm al l = 10523004
kernel . shm m ax = 6465333657
kernel . shm m ni = 4096
kernel . sem = 250 32000 100 128
net. core. rm em _defaul t = 262144
net. core. wm em _defaul t = 262144
net. core. rm em _m ax = 4194304
net. core. wm em _m ax = 1048576
fs. ai o-m ax-nr = 1048576

[4] Create user and groups


for Oracle Database.
[root@ db01 ~ ]# groupadd -g 200 oi nstal l
[root@ db01 ~ ]# groupadd -g 201 dba
[root@ db01 ~ ]# useradd -u 440 -g oi nstal l -G dba d / usr/ oracl e oracl e
[root@ db01 ~ ]# passwd oracl e
Changi ng password for user oracl e.
New password:
Retype new password:
passwd: al l authenti cati on tokens updated
successful l y.
[root@ db01 ~ ]# vi / etc/ pam . d/ l ogi n
# near l i ne 14: add
sessi on
requi red
sessi on
requi red
sessi on
requi red
sessi on
opti onal
sessi on
i ncl ude
-sessi on opti onal

pam _sel i nux. so open


pam _nam espace. so
pam _l i m i ts. so
pam _keyi ni t. so force revoke
system -auth
pam _ck_connector. so

[root@ db01 ~ ]# vi / etc/ securi ty/ l i m i ts. conf


# add fol l ows
oracl e soft
oracl e hard
oracl e soft

to the end
nproc 2047
nproc 16384
nofi l e 1024

http://www.server-world.info/en/note?os=CentOS_6&p=oracle11g&f=1

2/3

17/11/2014

CentOS 6 - Oracle Database 11g R2 - Pre-Requirements : Server World

oracl e

hard

nofi l e

65536

[root@ db01 ~ ]# vi / etc/ profi l e


# add fol l ows to the end
i f [ $US E R = "oracl e" ]; then
i f [ $S HE LL = "/ bi n/ ksh" ]; then
ul i m i t -p 16384
ul i m i t -n 65536
el se
ul i m i t -u 16384 -n 65536
fi
fi

[5] Switch to a user


"Oracle" and configure
some settings.
db01 l ogi n: oracl e
P assword:
[oracl e@ db01 ~ ]$ chm od 755
/ usr/ oracl e
[oracl e@ db01
~ ]$ m kdi r/ usr/ oracl e/ app
[oracl e@ db01 ~ ]$ chm od 775
/ usr/ oracl e/ app
[oracl e@ db01
~ ]$ m kdi r/ usr/ oracl e/ oradata
[oracl e@ db01 ~ ]$ chm od 775
/ usr/ oracl e/ oradata
[oracl e@ db01
~ ]$ vi ~ / . bash_profi l e
# add fol l ows to the end
um ask 022
export
ORACLE _BAS E = / usr/ oracl e/ app
# create a tem porary di rectory
for i nstal l ati on
[oracl e@ db01 ~ ]$ m kdi r tm p

http://www.server-world.info/en/note?os=CentOS_6&p=oracle11g&f=1

3/3

You might also like