3 - 4 minutes readInstalling Oracle Database 10g Release 1 & 2 (32-bit/64-bit) on Red Hat Enterprise Linux 4

Reader Mode

Installing Oracle Database 10g Release 1 & 2 (32-bit/64-bit) on Red Hat Enterprise Linux 4

The following procedure is a step-by-step guide with tips and information for installing Oracle Database 10g on Red Hat Linux.

Note: When you install Linux For Oracle you should create separate file system for ORACLE Software and Oracle Database

2.5 GB of disk space should be required by Oracle Software
1.3 GB of disk space should be required by General Purpose Database.

Here we create /Oracle mount point for Oracle Software and /database for Oracle Database

Prerequisite Steps:

Check Memory
Memory should be 512 MB of RAM.

How to check the size of physical memory? $ grep MemTotal /proc/meminfo

Check swap space
Swap space should be 1 GB or Twice the size of RAM

How to check the size of Swap space?
$ grep SwapTotal /proc/meminfo

If you don’t have 1 GB of twice of the size of RAM. You must add temporary swap space to your system by creating a temporary swap file. Bellow I am describing How to Add Swap Space?

How to Add Swap Space?
Step 1
Log in as a ROOT
$ dd if=/dev/zero of=tmpswap bs=1k count=900000
$ chmod 600 tmpswap
$ mkswap tmpswap

$ swapon tmpswap

Check TMP Space
Oracle Universal Installer (OUI) requires up to 400 MB of free space in the /tmp directory. How to check the space in /tmp?
$ df /tmp

If you don’t have enough space in the /tmp filesystem, you must temporarily create a tmp directory in another filesystem. Bellow I am describing all steps for adding temp space?

Step 1
Log in as a ROOT user
Step 2 mkdir //tmp
Step 3 chown root.root //tmp
Step 4 chmod 1777 //tmp
Step 5 export TEMP=/
Step 6 export TMPDIR=/

After Completion of Installation, you must remove the temporary /temp directory. Bellow I am describing How to Remove temprory /temp directory?

Step 1 Log in as a Root
Step 2 $ rmdir //tmp

Step 3 $unset TEMP
Step 4 unset TMPDIR
4. Check Software RPM Package
Before install of Oracle Database 10g software you need to check the system for required RPMs.

make-3.79
binutils-2.14
gcc-3.2
libaio-0.3.96

Checking Recommended glibc version
Glibc-2.3.2-95.27

5. Check Kernel parameter

How to see all kernel parameters?

Step 1 Log in as a Root user
Step 2 $ sysctl –a

Bellow I am describing kernel parameters, which have to be set to values greater than or equal to the recommended values which can be changed in the proc filesystem:

shmmax = 2147483648
shmmni = 4096
shmall = 2097152
shmmin = 1
shmseg = 10
semmsl = 250
semmns = 32000
semopm = 100
semmni = 128
file-max = 65536
ip_local_port_range = 1024 65000

NOTE: Do not change the value of any kernel parameter on a system where it is already higher than listed as minimum requirement.

Note: Just you add minimum required value in /etc/sysctl.conf file which is used during the boot process: kernel.shmmax=2147483648kernel.sem=250 32000 100 128fs.file-max=65536net.ipv4.ip_local_port_range=1024 65000net.core.rmem_default=1048576net.core.rmem_max=1048576net.core.wmem_default=262144net.core.wmem_max=262144

become effective immediately, execute the following command:
Step 1 Log in as a Root

Step 2 $ sysctl -p

Installation Steps:

1. Creating Oracle User Accounts and Group

Step 1 Log in as a Root
Step 2 $groupadd dba # group of users to be granted SYSDBA system privilege
Step 3 $groupadd oinstall # group owner of Oracle files
Step 4 useradd -c “Oracle software owner” –d /home/oracle -g oinstall -G dba oracle
Step 5 chown oracle:dba /home/oracle /oracle
Step 6 chown oracle:dba /home/oracle /database
Step 5 passwd oracle

2. Creating Oracle Directories
You only need to create the directory for $ORACLE_BASE:
su – root
mkdir /oracle
chown –R oracle:oinstall /oracle

3
Starting Oracle Universal InstallerInsert the Oracle CD that contains the image of the Software. If you install Oracle10g from a CD, mount the CD by running the following commands in another terminal:

su – root
mount /mnt/cdrom
run installer ./ runInstaller

Note: Message :- Can not connect to X11 windows server
Step Log in as a Root user
Step 2 $xhost +
Step 3 su – oracle
Step 4 Export Display=localhost:0.0
Step 5 ./runinstaller

Post Installation Steps:
Put following entries in bash file.
export ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib

Related Articles

Responses

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

Password Reset
Please enter your e-mail address. You will receive a new password via e-mail.