Installing Oracle

You might also like

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

Repos

Oracle Linux 7
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol7.repo

Oracle Linux 6
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo

Oracle Linux 5
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo

Oracle Linux 4, Update 6 or Newer


# cd /etc/yum.repos.d
# mv Oracle-Base.repo Oracle-Base.repo.disabled
# wget http://public-yum.oracle.com/public-yum-el4.repo

# yum install oracleasm-support


# yum install oracleasm
#fdisk -l
#fdisk /dev/sda
yum install -y binutils-2.*
yum install -y compat-libstdc++-33*
yum install -y elfutils-libelf-0.*
yum install -y libaio-0.*
yum install -y libaio-devel-0.*
yum install -y sysstat-9.*
yum install -y glibc-2.*
yum install -y glibc-common-2.*
yum install -y glibc-devel-2.* glibc-headers-2.*
yum install -y ksh-2*
yum install -y make-3.*
yum install -y libgcc-4.*
yum install -y libstdc++-4.*
yum install -y libstdc++-4.*.i686*
yum install -y libstdc++-devel-4.*
yum install -y gcc-4.*x86_64*
yum install -y gcc-c++-4.*x86_64*
yum install -y --allfiles elfutils-libelf-0*x86_64* elfutils-libelf-devel-0*x86_64*
yum install -y elfutils-libelf-0*i686* elfutils-libelf-devel-0*i686*
yum install -y libtool-ltdl*i686*
yum install -y ncurses*i686*
yum install -y readline*i686*
yum install -y unixODBC*

Add or amend the following lines to the "/etc/sysctl.conf" file.


fs.aio-max-nr = 1048576
fs.file-max = 6815744
#kernel.shmall = 2097152
#kernel.shmmax = 1054504960
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=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586
/sbin/sysctl -p

Add the following lines to the "/etc/security/limits.conf" file.


oracle
oracle
oracle
oracle
oracle

soft
hard
soft
hard
soft

nproc
nproc
nofile
nofile
stack

2047
16384
4096
65536
10240

Add the following lines to the "/etc/pam.d/login" file, if it does not already exist.
session

required

pam_limits.so

Create the new groups and users.


groupadd -g 1000 oinstall
groupadd -g 1200 dba
useradd -u 1100 -g oinstall -G dba oracle
or
usermod -g oinstall -G dba oracle
passwd oracle

oracleasm configure -i
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
oracleasm init
chown oracle linux.x64_11gR2_grid.zip

cd /dev/oracleasm/disks
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01/app/oracle
groupadd oper
usermod -g oinstall -G dba,oper oracle
passwd oracle
mkdir /u01/app
chown root:oinstall /u01/app
chmod 775 /u01/app
mkdir /u01/app/oracle
chown oracle:oinstall /u01/app/oracle
mkdir -p /u01/app
chown -R oracle:oinstall /u01
chmod -R 775 /u01/app
export ORACLE_BASE=/u01/app/oracle

PATH=$ORACLE_HOME/bin:
https://docs.oracle.com/cd/E26370_01/doc.121/e26358/dbinstall.htm

You might also like