Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 4

###Os Info

cat /etc/centos-release
###Network:
ip a | grep inet
###Login as root and add required groups:
/usr/sbin/groupadd -g 501 oracle
/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 503 oper
### Add user Oracle:
/usr/sbin/useradd -u 502 -g oracle -G dba,oper oracle
### Change password for user:
passwd oracle
### Add kernel parameters to
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.core.rmem_default = 262144
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_max = 4194304
net.core.wmem_max = 1048586
net.core.wmem_default = 262144
### Apply kernel parameters:
/sbin/sysctl -p
### Add following lines to set shell limits for user oracle in file
vi /etc/security/limits.conf
oracle
oracle
oracle
oracle
oracle
oracle
oracle
oracle

soft
hard
hard
soft
hard
soft
hard
soft

nproc
nproc
nofile
nofile
core
core
memlock
memlock

131072
131072
131072
131072
unlimited
unlimited
50000000
50000000

### Edit /etc/hosts file:


vi /etc/hosts
192.168.1.132 oracle.db
###Verify your network settings:
ping -c 1 oracle.db

###Modify .bash_profile for user oracle in his home directory add at the end fil
e /home/oralce/.bash_profile.
vi /home/oracle/.bash_profile
### Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=oracle.db
export ORACLE_BASE=/u01/app/oracle
export ORACLE_SID=orcl
export ORACLE_UNQNAME=$ORACLE_SID
export ORACLE_HOME=$ORACLE_BASE/product/12.1/db_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
###Check which packages are installed and which are missing.
###
as root copy this and execute this:
yum groupinstall "GNOME Desktop" -y
yum groupinstall "Development Tools" -y
yum install binutils -y
yum install compat-libcap1-1.10 -y
yum install compat-libstdc++-33 -y
yum install compat-libstdc++-33.i686 -y
yum install gcc -y
yum install glibc -y
yum install gcc-c++ -y
yum install glibc-devel -y
yum install glibc.i686 -y
yum install ksh -y
yum install glibc-devel.i686 -y
yum install libgcc -y

yum install libstdc++.i686 -y


yum install libgcc.i686 -y
yum install libstdc++ -y
yum install libaio -y
yum install libstdc++-devel -y
yum install libstdc++-devel.i686 -y
yum install libaio-devel.i686 -y
yum install libaio.i686 -y
yum install libaio-devel -y
yum install libXext -y
yum install libX11 -y
yum
yum
yum
yum

install
install
install
install

libXext.i686 -y
libXtst -y
libXtst.i686 -y
libX11.i686 -y

yum install libXi -y


yum
yum
yum
yum
yum

install
install
install
install
install

libXau -y
libXau.i686 -y
libxcb -y
libxcb.i686 -y
libXi.i686 -y

yum install zlib-devel -y


yum install make -y
yum install sysstat -y
yum install unixODBC -y
yum install unixODBC-devel -y
### Create directory structure:
mkdir -p /u01/app/oracle/product/12.1
chown -R oracle:oracle /u01/
chmod 775 /u01/app
### Disable selinux by editing the /etc/selinux/config file,
vi /etc/selinux/config
SELINUX=permissive
### Adding Swap Space
swapon -s
dd if=/dev/zero of=/swapfile bs=2048 count=3145722

chmod 600 /swapfile


mkswap /swapfile
swapon /swapfile
swapon -a
### Edit the file
nano /etc/fstab
### At the bottom of the file, you need to add a line that will tell the operati
ng system to automatically use the swap file that you created:
/swapfile swap
swap
sw 0 0

### Install database software


### Lets start with database software installation as oracle user.
su - oracle

### If get error invoking target irman ioracle of makefile


cp /u01/app/oracle/product/12.1/db_1/javavm/jdk/jdk6/lib/libjavavm12.a /u01/app/
oracle/product/12.1/db_1/lib/

### Edit the /etc/oratab,


orcl:/u01/app/oracle/product/12.1.0/db_1:Y
### Open a Port on CentOS
firewall-cmd --zone=public --add-port=1521/tcp --permanent
firewall-cmd --zone=public --add-port=5500/tcp --permanent
firewall-cmd --reload
----------------------http://us-downloads.quest.com/Repository/support.quest.com/Toad for Oracle/12.0/
Software/Toad DBA Suite for Oracle 12 Commercial.exe
Site Message: Oracle
Serial Number: 0-63920-03313-29060-07749
0-63920-01233-29060-06749
qcj

You might also like