Full Oracle Installation in Red Hat Enterprise Linux 5

Source: Internet
Author: User

I. Preparations before installing Oracle in Red Hat Enterprise Linux 5:

Download files

Oracle Database 10g Release 2 (10.2.0.1) Software

Decompress the file

Command to decompress the file:

Unzip 10201_database_linux32.zip

The decompressed folder may be "database" or "db/Disk1"

Hosts file

The/etc/hosts file contains a complete and valid server name.

<IP-address> <fully-qualified-machine-name> <machine-name>

Set Kernel Parameters

Add the following lines in/etc/sysctl. conf:

# Kernel. shmall = 2097152

# Kernel. shmmax = 2147483648

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 = 262144

Net. core. rmem_max = 262144

Net. core. wmem_default = 262144

Net. core. wmen_max = 262144

Run the following command to apply the above OS Parameters

/Sbin/sysctl-p

Add the following lines to the/ect/security/limits. conf file.

* Soft nproc 2047

* Hard nproc 16384

* Soft nofile 1024

* Hard nofile 65536

If the/etc/pam. d/login file does not contain the following lines, add the following content:

Session required/lib/security/pam_limits.so

Modify the/etc/selinux/config file to disable the linux firewall. Make sure that SELINUX is set as follows:

SELINUX = disabled

Check the installation package

Check whether the following installation packages are available:

Make-3.79.1

Gcc-3.2.3-34

Glibc-2.3.2-95.20

Compat-db-4.0.14-5

Compat-gcc-7.3-2.96.128

Compat-gcc-c ++-7.3-2.96.128

Compat-libstdc ++-7.3-2.96.128

Compat-libstdc ++ devel-7.3-2.96.128

LibXp

Openmotif21-2.1.30-8

Setarch-1.3-1

Check whether the required installation package is complete)

Rpm-q gcc make binutils openmotif setarch compat-db compat-gcc-c ++ compat-libstdc ++-devel libXp

Run the following command to install the following package:

Rpm-Uvh [package name] add group and user

Groupadd oinstall

Groupadd dba

Groupadd rule

Useradd-g oinstall-G dba oracle

Passwd oracle

Check memory and disk

Check memory

# Grep MemTotal/proc/meminfo

# Grep SwapTotal/proc/meminfo

Check disk status

# Df-h

Create installation directory

Create an oracle Installation Directory

# Mkdir-p/u01/app/oracle/product/10.2.0/db_1

# Chown-R oracle: install/u01/

# Chmod-R 775/u01/app/oracle

Version Information

Because rhel5.1 does not support 10.2 and 0.1 by default, You need to modify some parameters.

Edit the/etc/RedHat-release file to replace the current version information (Red Hat Enterprise Linux Server release 5 (Tikanga ))

Redhat-4 to add redhat-5 by modifying the Installation File oraparam. ini (either)

# 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 again

[Linux-redhat-5.0-optional] TEMP_SPACE = 80

SWAP_SPACE = 150

MIN_DISPLAY_COLORS = 256 user environment variables

Log On As an oracle user and add the following lines at the end of the. bash_profile file:

# Oracle Settings

TMP =/tmp; export TMP

TMPDIR = $ TMP; export TMPDIR

ORACLE_BASE =/u01/app/oracle; export ORACLE_BASE

ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME

ORACLE_SID = TSH1; 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

If [$ USER = "oracle"]; then

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

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Fi

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 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.