Linux serverNETWORK ADMINISTRATIONS

Oracle 11g R2 Installation in CentOS 7 | Oracle Database Installation in Linux || Nehra Classes



Oracle 11g R2 Installation in CentOS 7 | Oracle Database Installation in Linux || Nehra Classes
=============
Documents Link: (Telegram)
https://t.me/NehraClassesChat/5598?single
*********
1. SETTING HOSTNAME

HOSTNAME=server.example.com

[root@server]# hostname server.example.com

[root@server]# vi /etc/hosts
192.168.1.110 server.example.com

[root@server ~]# ping -c 3 server.example.com

Create a new user say “oracle” using useradd oracle command and set the password as “oracle”.

[root@server ~]# useradd oracle
[root@server]# passwd oracle

mkdir /oracle/app/product/11.2.0/db_1

chmod -R 775 /oracle

chown -R oracle:oracle /oracle
[root@server ~]# 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

[root@server ~]# /sbin/sysctl -p

[root@server ~]# vi /etc/security/limits.conf

oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 4096 oracle hard nofile 65536 oracle soft stack 10240 oracle soft core unlimited oracle hard core unlimited oracle soft memlock 50000000 oracle hard memlock 50000000

[root@server ~]# vi /etc/selinux/config
SELINUX=permissive

[root@server ~]# systemctl stop firewalld

[root@server ~]# systemctl disable firewalld

4. EDIT THE bash_profile
To ensure that the environment is setup correctly for the oracle user account, use the following in .bash_profile.

[oracle@server ~]# vi .bash_profile

# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_HOSTNAME=server.example.com; export ORACLE_HOSTNAME
ORACLE_UNQNAME=server; export ORACLE_UNQNAME
ORACLE_BASE=/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/app/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=server; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
[oracle@server ~]# source .bash_profile

5. INSTALL DEPENDENCIES

yum install binutils -y

yum install compat-libstdc++-33 -y

yum install compat-libstdc++-33.i686 -y

yum install gcc -y

yum install gcc-c++ -y

yum install glibc -y

yum install glibc.i686 -y

yum install glibc-devel -y

yum install glibc-devel.i686 -y

yum install ksh -y

yum install libgcc -y

yum install libgcc.i686 -y

yum install libstdc++ -y

yum install libstdc++.i686 -y

yum install libstdc++-devel -y

yum install libstdc++-devel.i686 -y

yum install libaio -y

yum install libaio.i686 -y

yum install libaio-devel -y

yum install libaio-devel.i686 -y

yum install libXext -y

yum install libXext.i686 -y

yum install libXtst -y

yum install libXtst.i686 -y

yum install libX11 -y

yum install libX11.i686 -y

yum install libXau -y

yum install libXau.i686 -y

yum install libxcb -y

yum install libxcb.i686 -y

yum install libXi -y

yum install libXi.i686 -y

yum install make -y

yum install sysstat -y

yum install unixODBC -y

yum install unixODBC-devel -y

yum install zlib-devel -y

yum install elfutils-libelf-devel -y

6. DOWNLOAD AND INSTALL ORACLE
Switch to user oracle and download Oracle. You can download Oracle from http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html

Unzip the two files using the following commands:

[oracle@server ~]# unzip linux.x64_11gR2_database_1of2.zip

[oracle@server ~]# unzip linux.x64_11gR2_database_2of2.zip

[oracle@server ~]# ls

linux.x64_11gR2_database_1of2.zip

database linux.x64_11gR2_database_2of2.zip
The extracted files are in the directory database. So open that and run the installer.

[oracle@server ~]# cd /database

[oracle@server database]# ./runInstall

*****
Join this channel to get access to perks:
https://www.youtube.com/channel/UCvk2Fst1h1a0StSnUcvGfBQ/join
*****
My Macbook: https://amzn.to/3lUdbkC
My Avita PC: https://amzn.to/30amhRt
My DSLR Camera: https://amzn.to/36954Ml
My Boya Microphone: https://amzn.to/3mZavTS
My iPhone: https://amzn.to/3lWa63j
My Gaming Router: https://amzn.to/3j3dQON
My FireStick: https://amzn.to/345150F
My Head-Phone: https://amzn.to/3ie4rDB
My Smart Watch: https://amzn.to/3dzJeTF
******
Contact Us:
WhatsApp: https://bit.ly/2Kpqp5z
Telegram Channel: https://t.me/NehraClasses
Email: nehraclasses@gmail.com
******
Follow Us On Social Media Platforms:
Twitter: https://twitter.com/nehraclasses/
Facebook Page: https://www.facebook.com/nehraclasses/
Instagram: https://www.instagram.com/nehraclasses/
Website: https://nehraclassesonline.business.site/
=======
©COPYRIGHT. ALL RIGHTS RESERVED.

#NehraClasses

source
centos 7

Leave a Reply

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