Wednesday, August 5, 2009

Quick install of oracle 64-bit on a Rhel4 64-bit

Oracle10g R2 64-bit on a Rhel4 64bit,
Note: Oracle10g R2 64-bit is not supported by Oracle on Rhel5.

Checking the Hardware Requirements

1.
SWAP Space

Set SWAP to 0.75 times the size of RAM if the RAM is more than 8192 MB on the server.

2. /tmp directory

400 MB of disk space in the /tmp directory

Set the TEMP and TMPDIR environment variables when setting the oracle user’s environment.

3. Find system architecture

To determine whether the system architecture can run the software, enter the following command: # grep "model name" /proc/cpuinfo.

4. Checking the Software Requirements

The system must be running the following (or later) kernel

version: Red Hat Enterprise Linux 4.0 2.6.9-11.EL

The following (or later versions) should be the list of packages for Red Hat Enterprise Linux 4.0:

binutils-2.15.92.0.2-10.EL4

compat-db-4.1.25-9

compat-libstdc++-33-3.2.3-47.3

compat-libstdc++-33-3.2.3-47.3(i386)

control-center-2.8.0-12

gcc-3.4.3-22.1

gcc-c++-3.4.3-22.1

glibc-2.3.4-2

glibc-2.3.4-2(i386)

glibc-common-2.3.4-2

glibc-devel-2.3.4-2

glibc-devel-2.3.4-2(i386)

gnome-libs-1.4.1.2.90-44.1

libaio-0.3.96-3

libgcc-3.4.3-9.EL4

libstdc++-3.4.3-9.EL4

libstdc++-devel-3.4.3-9.EL4

make-3.80-5

pdksh-5.2.14-30

sysstat-5.0.5-1

xorg-x11-deprecated-libs-6.8.1-23.EL

binutils-2.15.92.0.2-13.0.0.0.2.x86_64

libxml2-2.5.10-7.i386.rpm

5. To check the RPMs:

rpm -q binutils compat-db control-center gcc gcc-c++ glibc glibc-common gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver libaio

6. Oracle JDBC/OCI Drivers

You can use the following version of JDK with the Oracle

JDBC/OCI drivers:

Sun JDK 1.5.0 (64-bit)

7. Creating Required Operating System Groups and User

Create the oinstall and dba groups:

# /usr/sbin/groupadd oinstall

# /usr/sbin/groupadd dba

Create oracle user, command to create it:

# /usr/sbin/useradd -g oinstall -G dba oracle

Set the password of the oracle user:

# passwd oracle

8. Configuring Kernel Parameters

Using any text editor, create or edit the /etc/sysctl.conf

file and add or edit lines similar to the following:

Parameter Value File

semmsl 250 /proc/sys/kernel/sem

semmns 32000

semopm 100

semmni 128

shmall 2097152 /proc/sys/kernel/shmall

shmmax (RAM/2) /proc/sys/kernel/shmmax

Note: Half the size of physical memory (in bytes)

shmmni 4096 /proc/sys/kernel/shmmni

file-max 65536 /proc/sys/fs/file-max

ip_local_port_range Minimum(1024): Maximum(65000): /proc/sys/net/ipv4/ip_local_port_range

rmem_default 262144 /proc/sys/net/core/rmem_default

rmem_max 262144 /proc/sys/net/core/rmem_max

wmem_default 262144 /proc/sys/net/core/wmem_default

wmem_max 262144 /proc/sys/net/core/wmem_max

9. Set Shell Limits for the oracle user

To increase the shell limits:

i. Add the following lines in the

/etc/security/limits.conf file:

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

ii. Add the following line to the /etc/pam.d/login file, if it

does not already exist:

session required pam_limits.so

iii. Depending on the oracle user's default shell, make the

following changes to the default shell startup file:

■ For the Bourne, Bash, or Korn shell, add the following

lines in the /etc/profile file (or the

/etc/profile.local file on SUSE systems):

if [ $USER = "oracle" ]; then

if [ $SHELL = "/bin/ksh" ]; then

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

umask 022

fi

10. Creating Required Directories

Create the Oracle base directory

#mkdir –p /u01/app/oracle

#chown –R oracle:dba /u01/app/oracle

#chmod –R 765 /u01/app/oracle

11. Install libaio before Installing or Upgrading

Before upgrading to or installing Oracle Database 10g release 2, install the

libaio package on Red Hat Enterprise Linux 4.0.

12. Install binutils on Oracle EnterpriseEnterprise Linux 4.0 Linux 4.0 and Red Hat

Before installing Oracle Database 10g release 2 on Red Hat Enterprise Linux 4.0 Update 1 or above, install the following package:

binutils-2.15.92.0.2-13.0.0.0.2.x86_64

This package can be downloaded from the following link:

http://oss.oracle.com/projects/compat-oracle/dist/files/RedHat/binutils-2.15.92.0.2-13.0.0.0.2.x86_64.rpm

13. Install libxm before Installing Oracle Lite

Before installing Oracle Lite, ensure that the following package is installed:

libxml2-2.5.10-7.i386.rpm

14. Check Linux version redhat-release package is installed

Without this RPM, Oracle 10g OUI won't be able to recognize it as a supported OS.

#rpm –q redhat-release

Output for the command

redhat-release-4AS-6.1

No comments:

Post a Comment