0% found this document useful (0 votes)
53 views3 pages

Installing Oracle

This document provides instructions for installing Oracle software and configuring an Oracle database on Oracle Linux. It includes steps to download repository files, install prerequisite packages, configure kernel parameters and limits, create users and groups, initialize Oracle ASM and disk groups, set permissions on Oracle inventory and database directories, and set the ORACLE_BASE environment variable.

Uploaded by

David Paz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views3 pages

Installing Oracle

This document provides instructions for installing Oracle software and configuring an Oracle database on Oracle Linux. It includes steps to download repository files, install prerequisite packages, configure kernel parameters and limits, create users and groups, initialize Oracle ASM and disk groups, set permissions on Oracle inventory and database directories, and set the ORACLE_BASE environment variable.

Uploaded by

David Paz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Repos

Oracle Linux 7
# cd /etc/[Link].d
# wget [Link]

Oracle Linux 6
# cd /etc/[Link].d
# wget [Link]

Oracle Linux 5
# cd /etc/[Link].d
# wget [Link]

Oracle Linux 4, Update 6 or Newer


# cd /etc/[Link].d
# mv [Link] [Link]
# wget [Link]

# 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/[Link]" file.


[Link]-max-nr = 1048576
[Link]-max = 6815744
#[Link] = 2097152
#[Link] = 1054504960
[Link] = 4096
# semaphores: semmsl, semmns, semopm, semmni
[Link] = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
[Link].rmem_default=262144
[Link].rmem_max=4194304
[Link].wmem_default=262144
[Link].wmem_max=1048586
/sbin/sysctl -p

Add the following lines to the "/etc/security/[Link]" 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:
[Link]

You might also like