RedHat Linux AS5 install Oracle 10g

Source: Internet
Author: User
Tags change settings

Environment:

Operating System: windows xp

Virtual machine: VMware 5.5.3

Linux: RHEL 5

Note: Since RHEL 5 is not supported in Oracle official documentation, the following configuration items are subject to Oracle requirements for RHEL 4.0.

I. Check hardware

1. View RAM and swap space and disk size

Command: # grep MemTotal/proc/meminfo

# Grep SwapTotal/proc/meminfo

# Df-h

# Df-k/tmp

Requirements:

The minimum RAM required is 256 MB, and the minimum swap space required is 512 MB. For systems with RAM less than or equal to 2 GB, the swap space should be twice the number of RAM; for systems with RAM greater than 2 GB, the swap space should be one to two times the number of RAM.
Oracle 10 GB software also requires 2.5 GB of available disk space, while the database requires an additional 1.2 GB of available disk space. The/tmp directory requires at least 400 MB of available space.

But the official 10 Gb requirement is: The minimum RAM is 1024 MB, and the SWAP is twice the RAM. RAM is 1025MB ~ 2048 MB, and 1.5 times of RAM. RAM is 2049MB ~ 8192 MB. SWAP and RAM are equal. RAM is greater than 8192 MB, and SWAP is 0.75 times of RAM. The/tmp directory must be at least 400 MB. 10 Gb ~ GB for installing Oracle 10 Gb Software ~ 3.5GB disk space. The Oracle database requires 1/2 GB disk space.


Ii. Verify Linux Installation

1. Check the kernel version

Command:

# Uname-r

Required version: 2.6.9-5.EL( required for official RHEL 4.0)


2. Check required software packages

Command:

# Rpm-q package-name

Required packages and their versions:

Binutils-2.15.92.0.2-13.EL4
Compat-db-4.1.25-9
Compat-libstdc ++-296-2.96-132.7.2
Control-center-2.8.0-12
Gcc-3.4.3-22.1.EL4
Gcc-c ++-3.4.3-22.1.EL44
Glibc-2.3.4-2.9
Glibc-common-2.3.4-2.9
Gnome-libs-1.4.1.2.90-44.1
Libstdc ++-3.4.3-22.1
Libstdc +-devel-3.4.3-22.1
Make-3.80-5
Pdksh-5.2.14-30
Sysstat-5.0.5-1
Xscreensaver-4.18-5.rhel4.2
Setarch-1.6-1

* ****** If a software package is not installed, insert it into the installation CD of the Linux system and install it using the following method *******

# Rpm-ivh package-name-major-version *

Example: # rpm-Uvh compat-db-4 *

Note: 1. The sysstat-5.0.5-1 and xscreensaver-4.18-5.rhel4.2 package are not found on the disc. Download related packages to other links for Installation

2. When the openmotif-* package is installed, the libXp. so.6 package is required. I am too lazy to install libXp-* directly by using rpm -*.

3. Configure Linux for Oracle

1. Create a group and a user

* The user account is called oracle, and the group is called oinstall and dba.

Command:

/Usr/sbin/groupadd oinstall
/Usr/sbin/groupadd dba
/Usr/sbin/useradd-g oinstall-G dba oracle
Id oracle

* Set the Oracle user password

Command:

Passwd oracle

* Create a directory

Log on as a root user

Command:

Mkdir-p/u01/data/oracle

Mkdir-p/u02/oradata

Chown-R oracle: oinstall/u01/u02

Chmod-R 775/u01/u02

* Oracle user environment variables

To use Oracle products, you must set several environment variables. For database servers, we recommend that you set the following environment variables:
ORACLE_BASE
ORACLE_HOME
ORACLE_SID
PATH

1. Oracle 10g officially does not support as5, but supports other versions such as as4. There are three solutions to this problem.
A. modify the system version
Edit/etc/RedHat-release
# Vi/etc/redhat-release
Red Hat Enterprise Linux Server release 5 (Tikanga)
Change
Red Hat Enterprise Linux Server release 4 (Tikanga)

* Remember to change the system back to the original version after Oracle installation is complete.


B. Modify the oracle Installation File to fill the redhat-5
# Vi/10201_database_linux32/database/install/oraparam. ini
#### [Certified Versions]
Linux = redhat-3, SUSE-9, redhat-4, redhat-5, UnitedLinux-1.0, asianux-1]
Add more
Linux-redhat-5.0-optional
TEMP_SPACE = 80
SWAP_SPACE = 150
MIN_DISPLAY_COLORS = 256
C. The simplest method is to ignore the system check during installation.
Sh./runInstaller-ignoreSysPrereqs

2. To prevent garbled characters during installation, you must change the system language.
# Vi/etc/sysconfig/i18n
LANG = "en_US.UTF-8"

3. Modify Kernel Parameters
# Vi/etc/sysctl. conf
Kernel. shmall = 2097152 'has been defined and modified.
Kernel. shmmax = 2147483648 'has been defined and modified.
Kernel. shmmni = 4096
# Semaphores: semmsl, semmns, semopm, semmni
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 1048576
Net. core. rmem_max = 1048576
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144


Run the following command to make the preceding settings valid.
#/Sbin/sysctl-p

4. Change settings
# Vi/etc/security/limits. conf
Add the following content at the end of the line
* Soft nproc 2047
* Hard nproc 16384
* Soft nofile 4096
* Hard nofile 65535

Add the following content #/etc/pam. d/login
Session required/lib/security/pam_limits.so

Add the following content to the/etc/profile file:

If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi

The above settings are all performed under the root user.

Iv. Set environment variables-log on to oracle

Write the following in. bashrc
TMP =/tmp; export TMP
TMPDIR = $ TMP; export TMPDIR
ORACLE_BASE =/opt/oracle; export ORACLE_BASE
ORACLE_HOME = $ ORACLE_BASE/product/10.2.0.1/db_1; export ORACLE_HOME
ORACLE_SID = WCHDB1; export ORACLE_SID
ORACLE_TERM = xterm; export ORACLE_TERM
PATH =/usr/sbin: $ PATH; export PATH
PATH = $ ORACLE_HOME/bin: $ PATH; export PATH
LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib; export CLASSPATH
Or write it in
# Vi. bash_profile
Then
# Source ~ /. Bash_profile

V. Installation
Use oracle to log on and run sh./runInstaller


**************************************** *************

In addition:

Record the Problems and Solutions encountered during the installation process for your reference.

1. During the installation check, the system prompts that RAM and SWAP are insufficient. Therefore, it is best to allocate more than 1 gb ram to the virtual machine.

2. Install Compnion CD, a classic OUI-25031 error occurred when starting the HTTP Server, but according to the online prompt for processing, have not been resolved, and finally query the Installation Log. A lib file is missing. This is also written in the Oracle official document. As follows:

# Ln-s/usr/lib/libgdbm. so.2.0.0/usr/lib/libdb. so.2

Use this command to link the file to the database.

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.