Install Oracle 9.2.0.4 on RedHat Enterprise Client 5.3

Source: Internet
Author: User

1. Install RedHat Enterprise Client 5.3

Now the Redhat installation process has been very user-friendly, and the entire installation process is not too complicated. During the installation process, the most important thing to note is the Linux swap partition settings, usually between 1.5-2 times the physical memory.

For details about Redhat Enterprise Client 5.3, refer to another post in this blog.

2. Check System Requirements and Environment Settings

This part of system requirements refers to the requirements of the redhat installation Oracle9204 software package.

2.1 check the Software Package

The following software packages can be found in the Redhat Enterprise Client 5.3 installation CD client directory. You can query these software packages in the system by executing commands such as rpm-aq | grep, you can also find the package in the GNOME environment by using the "Add/delete software package" program that comes with the system. The latter method is recommended.

Binutils-2.17.50.0.6-9.el5.i386.rpm

Compat-libstdc ++-33-3.2.3-61.i386.rpm

Elfutils-0.137-3.el5.i386.rpm

Elfutils-devel-0.137-3.el5.i386.rpm

Gcc-4.1.2-44.el5.i386.rpm

Gcc-c ++-4.1.2-44. el5.i386. rpm

Glibc-2.5-34.i386.rpm

Glibc-common-2.5-34.i386.rpm

Glibc-devel-2.5-34.i386.rpm

Glibc-headers-2.5-34.i386.rpm

Libaio-0.3.106-3.2.i386.rpm

Libaio-devel-0.3.106-3.2.i386.rpm

Libgcc-4.1.2-44.el5.i386.rpm

Libstdc ++-4.1.2-44. el5.i386. rpm

Libstdc +-devel-4.1.2-44.el5.i386.rpm

Make-3.81-3.el5.i386.rpm

Sysstat-7.0.2-3.el5.i386.rpm

UnixODBC-2.2.11-7.1.i386.rpm

UnixODBC-devel-2.2.11-7.1.i386.rpm

Note: For software packages that are missing from the system, log on as the root user and run the rpm-Uvh command to install them.

2.2 modify Linux Kernel Parameters

Each version of Oracle has different requirements for kernel parameters. The best reference for modifying these kernel parameters is the Installation Guide provided in the official document corresponding to the Oracle version. If your version is not oracle9204, refer to the Installation Guide corresponding to your version.

Take this installation as an example. Log On As the root user and modify/etc/sysctl. conf to add the following content:

Net. core. rmem_default = 4194304

Net. core. rmem_max = 4194304

Net. core. wmem_default = 262144

Net. core. wmem_max = 262144

Fs. file-max = 65536

Net. ipv4.ip _ local_port_range = 1024 65000

After modification, run sysctl-p to make the kernel parameters take effect.

3. Add and install Oracle user group

3.1 create an oracle Installation user group and User Account

# Groupadd dba

# Groupadd oinstall

# Useradd oracle-g oinstall-G dba

# Passwd oracle

3.2 Create an oracle installation folder and Log On As an oracle user

$ Mkdir/db

/Db directory for installing oracle

$ Mkdir/db/sw

The/db/sw folder is used to store the oracle Installation File. This installation adopts the hard disk installation method.

3.3 set oracle user environment variables

After logging on as an oracle user, edit ~ /. Bash_profile file. The content of the entire file is as follows:

#. Bash_profile

# Get the aliases and functions

If [-f ~ /. Bashrc]; then

.~ /. Bashrc

Fi

# User specific environment and startup programs

Export ORACLE_SID = test

Export ORACLE_BASE =/db/oracle

Export ORACLE_HOME = $ ORACLE_BASE/product/9.2.0.4/db_1

Export ORACLE_SID ORACLE_BASE ORACLE_HOME

PATH = $ PATH: $ ORACLE_HOME/bin: $ HOME/bin

Export PATH

3.4 download three files as oracle

Download ship_9204_linux_disk1.cpio, ship_9204_linux_disk2.cpio, and ship_9204_disk_disk3.cpio from oracle to the/db/sw directory, and execute the following commands in the/db/sw directory:

Cpio-idmv <ship_9204_linux_disk1.cpio

Cpio-idmv <ship_9204_linux_disk2.cpio

Cpio-idmv <ship_9204_linux_disk3.cpio

After the command is executed, three directories, Disk1, Disk2, and Disk3, are generated.

Specify the executable content for the three folders and use the following command:

Chmod-r u + x Disk1

Chmod-r u + x Disk2

Chmod-r u + x Disk3

4. Start oracle Installation

Log on to the system as an oracle user and switch to the/db/sw/Disk1 directory.

(The following are my faults and solutions during installation)

4.1 fault 1: the following error occurs when you run the./runInstaller command:

Initializing Java Virtual Machine from/tmp/OraInstall2009-07-30_02-58-15AM/jre/bin/java. Please wait...

Error occurred during initialization of VM

Unable to load native library:/tmp/OraInstall2009-07-30_02-58-15AM/jre/lib/i386/libjava. so: symbol _ libc_wait, version GLIBC_2.0 not defined in file libc. s

Fault Cause:

The patch p3006854_9204_LINUX is missing,

Solution:

Download the p3006854_9204_LINUX patch and log on as the root user. Run the following command:

Unzip p3006854_9204_LINUX.zip

# Cd 1, 3006854

# Sh rhel3_pre_install.sh

After the installation is complete, switch to the oracle user to continue the installation. The installation interface appears, but it is garbled.

  • 1
  • 2
  • 3
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.