Prerequisites before installing Oracle 10gR2
- GUI Environment
# yum groupinstall "GNOME Desktop Environment" "X Window System"
- Memory and Swap space
RAM
|
Swap Space
|
Up to 512 MB
|
2 times the size of RAM
|
Between 1024 MB and 2048 MB
|
1.5 times the size of RAM
|
Between 2049 MB and 8192 MB
|
Equal to the size of RAM
|
More than 8192 MB
|
0.75 times the size of RAM
|
You can check the RAM and SWAP space using this command
# free -m total used free shared buffers cached Mem: 4392 4352 39 0 149 3828 -/+ buffers/cache: 374 4018 Swap: 6399 0 6399
- Hosts File
# vi /etc/hosts 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 10.10.20.41 test.example test
Your machine should have a proper hostname. To check use the below command
# hostname test.example
- Kernel Parameters
For Oracle 10g, the following kernel parameters have to be set to values greater than or equal to the recommended values.
To verify shmmax
# cat /proc/sys/kernel/shmmax shmmax = 2147483648
To verify shmmni
# cat /proc/sys/kernel/shmmni shmmni = 4096
To verify the shmall parameter
# cat /proc/sys/kernel/shmall shmall = 2097152
To verify shmmin
# ipcs -lm |grep "min seg size" shmmin = 1
shmseg = 10
To verify semmsl
# cat /proc/sys/kernel/sem | awk '{print $1}' semmsl = 250
To verify semmns
# cat /proc/sys/kernel/sem | awk '{print $2}' semmns = 32000
To verify semopm
# cat /proc/sys/kernel/sem | awk '{print $3}' semopm = 100
To verify semmni
# cat /proc/sys/kernel/sem | awk '{print $4}' semmni = 128
To verify file-max
# cat /proc/sys/fs/file-max file-max = 65536
# cat /proc/sys/net/ipv4/ip_local_port_range ip_local_port_range = 1024 65000
# vi /etc/sysctl.conf kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default=262144 net.core.rmem_max=262144 net.core.wmem_default=262144 net.core.wmem_max=262144
Run the following command to refresh the kernel parameters just added
# sysctl -p
To view all the kernel parameters
# sysctl -a
Add the following lines to the "/etc/security/limits.conf" file.
* soft nproc 2047 * hard nproc 16384 * soft nofile 1024 * hard nofile 65536
Add the following line to the "/etc/pam.d/login" file, if it does not already exist.
session required pam_limits.so
- RPM pre-requisites
Make sure the following rpm version is equal or greater installed in your machine
gcc-3.4.4-2 gcc-c++-3.4.4-2 libstdc++-devel-3.4.4-2 libgcc-4.1.2-50 cpp-3.4.4-2 compat-libf2c-34-3.4.6-4.1 compat-libcom_err-1.0-7 glibc-2.3.4-2.13 glibc-common-2.3.4-2.13 glibc-devel-2.3.4-2.13 glibc-headers-2.3.4-2.13 gnome-libs-1.4.1.2.90-44.1 compat-db-4.1.25-9 sysstat-5.0.5-1 libaio-0.3.103-3 openmotif21-2.1.30-11 xorg-x11-deprecated-libs-6.8.2-1 compat-libstdc++-33-3.2.3-47.3 make-3.80-5libXp-1.0.0
- User and Group
# useradd oracle # groupadd dba # usermod -G dba oracle
- Create home directory
# mkdir -p /u01/oracle/product/10.2.0/db_3/ # mkdir /u01/oraInventory # chown -R /u01 # chmod -R oracle:dba /u01
We will use the standard format for creating the oracle database. Create a directory with the name used above.
- Specify the Display protocol
# su - oracle $ export $DISPLAY=localhost:0.0
How to specify DISPLAY protocol
- Installation
# su - oracle
$ cd /database10gr2/database/ $ ./runInstaller
You will get the below screen. Change the Oracle Home location as the directory row created in "Create Home Directory" section of this blog
(Click on the images in case you find trouble reading the texts)
Give database password in the provided section
Make sure you get "Succeeded" in all the pre-requisite section. In case you get a failure at any of the parameter, Re-check the failed parameter and it is advised not to move to next step until and unless all the pre-requisite are "Passed"
Click on Next and Finish the installation
Follow the link for step by step installation guide of Oracle Database 11gR2 in Red Hat Linux