oracle 11gr2 software on redhat linux 6 + yum server

11
----------- Installing Oracle 11gR2 on Rhel 6.1 ----------------------- >> Set YUM server to cover up the pacake requirements .. 1. #Mount dvd on tmp folder , write command on terminal windows after putting RHEL dvd in dvd-rom. mount /dev/dvd /mnt ######this will mount your dvd to mnt directory 2. #Go to Packages Directory that will mount on /mnt now cd /mnt/Packages 3. #Install PAckages listed below rpm -ivh vsftpd rpm -ivh deltarpm rpm -ivh python-delta rpm -ivh createrepo 4. #Copy all pacakges to pub directory on your linux system cp -rfv /mnt/Packages/*.rpm /var/ftp/pub 5. #Edit yum configuration file vi /etc/yum. conf [repo] baseurl = file:/var/ftp/pub enabled=1

Upload: thota-mahesh-dba

Post on 10-Feb-2018

234 views

Category:

Documents


0 download

TRANSCRIPT

7/22/2019 Oracle 11gR2 Software on Redhat Linux 6 + Yum Server

http://slidepdf.com/reader/full/oracle-11gr2-software-on-redhat-linux-6-yum-server 1/11

----------- Installing Oracle 11gR2 on Rhel 6.1 -----------------------

>> Set YUM server to cover up the pacake requirements ..

1. #Mount dvd on tmp folder , write command on terminal windows after putting RHEL dvd in dvd-rom.

mount /dev/dvd /mnt ######this will mount your dvd to mnt directory

2. #Go to Packages Directory that will mount on /mnt now

cd /mnt/Packages

3. #Install PAckages listed below

rpm -ivh vsftpd

rpm -ivh deltarpm

rpm -ivh python-delta

rpm -ivh createrepo

4. #Copy all pacakges to pub directory on your linux system

cp -rfv /mnt/Packages/*.rpm /var/ftp/pub

5. #Edit yum configuration file

vi /etc/yum.conf 

[repo]

baseurl = file:/var/ftp/pub

enabled=1

7/22/2019 Oracle 11gR2 Software on Redhat Linux 6 + Yum Server

http://slidepdf.com/reader/full/oracle-11gr2-software-on-redhat-linux-6-yum-server 2/11

gpgcheck=0

:wq

6. #Create Database for yum server

createrepo -v /var/ftp/pub

7. #Remove Temporary file which can cause malfunction for YUM Server let us remove

cd /etc/yum.repos.d/

rm -rf packagekit-media.repo

## YUM has been setup now you can easily install the oracle pacakges ##

>> Login as super user by opening terminal window

su root

>> Get hostname and IP for the machine by typing this command

hostname

localhost.localdomain

/sbin/ipconfig

find lo internet add. thats 127.0.0.1 generally

If not present insert it normally in /etc/hosts file like this

nano /etc/hosts

7/22/2019 Oracle 11gR2 Software on Redhat Linux 6 + Yum Server

http://slidepdf.com/reader/full/oracle-11gr2-software-on-redhat-linux-6-yum-server 3/11

<IP HOSTNAME>

127.0.0.1 localhost.localdomain

>> Grant Connection to this particular IP

xhost +<host IP>

xhost +127.0.0.1

>> Now Check and install the required packages for oracle 11g

PAckage List :

1. binutils

2. compat-libstdc++33-3.2.3

3. elfutlis-libelf-0.125

4. elfutlis-libelf-devel-0.125

5. elfutlif-lebelf-dvel-static-0.125*

6. glibc-2.5-18

7. glibc-devel-2.5-18

8. glibc-common-2.5-18

9. glibc-headers-2.5-18

10. gcc-4.12.2

11. gcc-c++-4.1.2

12. libgcc-4.1.2

13. libaio-0.3.106

14. libaio-devel-0.3.106

7/22/2019 Oracle 11gR2 Software on Redhat Linux 6 + Yum Server

http://slidepdf.com/reader/full/oracle-11gr2-software-on-redhat-linux-6-yum-server 4/11

15. libstdc++-4.1.2

16. libstdc++-devel-4.1.2

17. make-3.81

18. sysstat-7.0

19. unixODBC-2.2.11

20. unixODBC-devel-2.2.11

21. pdksh-5.2.14

Checking RPM installed or not

rpm -qa|grep <package-name>

ex: rpm -qa|grep make

Erase RPM

rpm -e <package-name>

Upgrade RPM

rpm -U <package-name >

Install all packages like this

yum install <packagename> <PAckagename>

yum install libstdc

>> Add Particular Group and User with UID,GID

7/22/2019 Oracle 11gR2 Software on Redhat Linux 6 + Yum Server

http://slidepdf.com/reader/full/oracle-11gr2-software-on-redhat-linux-6-yum-server 5/11

groupadd -g 502 oinstall

groupadd -g 503 dba

groupadd -g 504 oper

groupadd -g 505 asmadmin

useradd -u 502 -g oinstall -G dba,asmadmin,oper -s /bin/bash -m oracle

passwd oracle

>> Make Target Directories

mkdir -p /u01/app/oracle/product/11.2.0/dbhome_1

chown -R oracle:oinstall /u01 # Set Owner for Directory

chmod -R 775 /u01 # Set Permission for

>> Now We will Setup the Parameters Configuration

1. Edit /etc/sysctl.conf file add these lines

#### Oracle 11g Kernel Parameters ####

7/22/2019 Oracle 11gR2 Software on Redhat Linux 6 + Yum Server

http://slidepdf.com/reader/full/oracle-11gr2-software-on-redhat-linux-6-yum-server 6/11

fs.suid_dumpable = 1

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmall = 2097152

kernel.shmmax = 536870912

kernel.shmmni = 4096

# semaphores: semmsl, semmns, semopm, semmni

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default=4194304

net.core.rmem_max=4194304

net.core.wmem_default=262144

net.core.wmem_max=1048586

Commentout these lines these will give error

#net.bridge.bridge-nf-call-ip6tables = 0

#net.bridge.bridge-nf-call-iptables = 0

#net.bridge.bridge-nf-call-arptables = 0

2. Edit /etc/security/limits.conf add these lines

#### oracle User Settings 4 Oracle 11g ####

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

7/22/2019 Oracle 11gR2 Software on Redhat Linux 6 + Yum Server

http://slidepdf.com/reader/full/oracle-11gr2-software-on-redhat-linux-6-yum-server 7/11

oracle hard nofile 65536

oracle soft stack 10240

3. Disable SElinux

vi /etc/selinux/config

SELINUX=disabled

4. Write these Changes to kernel

/sbin/sysctl -p

>> Unzip the Sofware,Set oracle as owner and relocate

cd <Path to linux 11gR2>

ex: cd /root/Desktop/install # oracle software is located in install named directory

unzip linux_11gR2_database_1of2.zip

unzip linux_11gR2_database_2of2.zip

chown -R oracle:oinstall database ### Make oracle as owner of this directory

7/22/2019 Oracle 11gR2 Software on Redhat Linux 6 + Yum Server

http://slidepdf.com/reader/full/oracle-11gr2-software-on-redhat-linux-6-yum-server 8/11

mv database /tmp ### Move database directory to tmp directory

>> Add Environment variables to oracle .bashrc

switch as oracle user now

su oracle

vi /home/oracle/.bashrc ###### insert these lines

# Oracle Settings

TMP=/tmp; export TMP

TMPDIR=$TMP; export TMPDIR

ORACLE_HOSTNAME=<HOSTNAME>; export ORACLE_HOSTNAME ##### Here we have to edit

hostname example 127.0.0.1

ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME ##Enter name same as SID you will provide

ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME

ORACLE_SID=<SID>; export ORACLE_SID ####### Here we have to edit SID

PATH=/usr/sbin:$PATH; export PATH

PATH=$ORACLE_HOME/bin:$PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/lib64; export LD_LIBRARY_PATH

7/22/2019 Oracle 11gR2 Software on Redhat Linux 6 + Yum Server

http://slidepdf.com/reader/full/oracle-11gr2-software-on-redhat-linux-6-yum-server 9/11

CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

Load New .bashrc settings ::

source ~/.bash_profile

For Full Environment intergration add this line

vi ~/.bash_profile

if [ -f ~/.bashrc ]; then

source ~/.bashrc

fi

>> NOw Install the Database Software

cd /tmp/database

./runInstaller

If you face the colouring problem then

su root

7/22/2019 Oracle 11gR2 Software on Redhat Linux 6 + Yum Server

http://slidepdf.com/reader/full/oracle-11gr2-software-on-redhat-linux-6-yum-server 10/11

 

xhost +

su oracle

Again start the installation,now all will work fine

>> Now Install the software

- follow steps by clicking next

- jus install the software we will create database in next step

- choose Enterprise Editoin

- take screenshot of directory location for future use

- jus click next oinstall oainventory directory

- Database Administrator as dba group and Database Opearator as oper group

- Following the above note you will not get any warning message

- jus save the response file and hit the enter button

>> Executing the scripts

- login as root

- execute the scripts as shown

and click OK , you database software is installed now.

7/22/2019 Oracle 11gR2 Software on Redhat Linux 6 + Yum Server

http://slidepdf.com/reader/full/oracle-11gr2-software-on-redhat-linux-6-yum-server 11/11