install oracle 12c, php and apache

Issues related to applications and software problems
Post Reply
cellranking
Posts: 1
Joined: 2018/09/03 17:13:46

install oracle 12c, php and apache

Post by cellranking » 2018/09/03 17:16:35

Hi
room

anyone installed Oracle 12c, php7 and apache in centos 7 before? Please help :oops: :oops: :oops: :oops:

hunter86_bg
Posts: 1330
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: install oracle 12c, php and apache

Post by hunter86_bg » 2018/09/04 03:44:25

Oracle -> No, but should be possible
PHP7 -> yes, I use remi repo
apache -> default repos

nike
Posts: 14
Joined: 2018/05/07 14:05:24

Re: install oracle 12c, php and apache

Post by nike » 2018/09/14 11:02:26

I have installed 11g r2 in centos 7 64 bit ...may be help this...

step 1:
access as root user in terminal

systemctl disable firewalld

step 2:

Set ip address as follows :

Address : xx.xx.xx.x

Netmask : xx.xx.xx.x

Gateway : xx.xx.xx.x

Server : xx.xx.xx.xx

Step 3 :


/usr/sbin/groupadd -g 501 oinstall

/usr/sbin/groupadd -g 502 dba

/usr/sbin/groupadd -g 503 oper

/usr/sbin/usermod -g oinstall -G dba,oper oracle

Step 4 :

vi /etc/sysctl.conf
(Press shift+i then Copy & Paste the following :)

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

(Press Esc then Press Shift + : and type wq & press Enter)

Step 5 :

/sbin/sysctl -p

Step 6 :
vi /etc/security/limits.conf
(Press shift+i then Copy & Paste the following :)

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

(Press Esc then Press Shift + : and type wq & press Enter)

Step 7 :
vi /etc/hosts
( Press shift+i then Copy & Paste the following :)

192.168.0.2 FQDN(such as localhost.lcaldomain localhost)

(Press Esc then Press Shift + : and type wq & press Enter)

Step 8:
open terminal access as oracle user

vi .bash_profile

( Press shift+i then Copy & Paste the following :)

# Oracle Settings
export TMP=/tmp

export ORACLE_HOSTNAME=server
export ORACLE_UNQNAME=orcl
export ORACLE_BASE=/ora01/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;

(Press Esc then Press Shift + : and type wq & press Enter)

Step 9:
open terminal and access as root user

yum -y install elfutils-libelf-devel && yum -y install gcc-c++ && yum -y install ksh yum -y install libaio-devel && yum -y install unixODBC && yum -y install unixODBC-devel


Step 10:

mkdir -p /ora01/app

chown oracle:oinstall /ora01/app

chmod 775 /ora01/app


mkdir -p /ora01/app/oracle

chown oracle:oinstall /ora01/app/oracle

chmod 775 /ora01/app/oracle

mkdir -p /ora01/app/oracle/product/11.2.0/db_1

chown oracle:oinstall -R /ora01/app/oracle

Step 11 :

vi /etc/selinux/config
(Press shift+i then replace the following line :)

SELINUX=disable (replace the middle line)

(Press Esc then Press Shift + : and type wq & press Enter)


Step12 :

systemctl mask tmp.mount

Step 13 :
Open Terminal access as root user
Extarct oracle 12c databse(rpm file) file in your server at any location you like..
extarct it like this ..
rpm - Uvh <file location/name of file.rpm>
folder access permission must be given

----------Restart the server--------------

Step 14 :
open terminal
access as oracle user
cd /path to extarct folder/

./runInstaller

then follow the instruction ..

that's all ..

Post Reply