Precautions for installing Oracle10 in RHEL5

Source: Internet
Author: User
1. because orcale10 does not support RHEL5, You need to modify/etc/redhat_real.pdf to change RedHatEnterpriseLinuxServerrelease5 (Tikanga) to RedHatEnterpriseLinuxServerrelease4 (Tikanga) 2. modify the/etc/hosts file and change 127.0.0.1 to your ip address. Otherwise, check the network.

1. Because orcale10 does not support RHEL5, you need to change/etc/redhat_real.pdf to Red Hat Enterprise Linux Server release 5 (Tikanga) to Red Hat Enterprise Linux Server release 4 (Tikanga)

2. Modify the/etc/hosts file and change 127.0.0.1 to your ip address. Otherwise, the network check will fail.

3. Install the following package in sequence libXp-1.0.0-8.i386.rpm openmotif22-2.2.3-18.i386.rpm compat-db-4.2.52-5.1.i386.rpm compat-gcc-34-3.4.6-4.i386.rpm compat-gcc-34-c libaio-0.3.106-3.2.i386.rpm + +-3.4.6-4. i386.rpm compat-libstdc + +-33-3.2.3-61.i386.rpm

4. Because Chinese characters contain garbled characters, you can install export LC_ALL = en_US in English.

5. Select advanced installation during installation, and select GBK for the Chinese Character Set of the database language.

To install Oracle 10.2.0.1 on RHEL5
Perform the following operations as root:

Modify Kernel Parameters
Add the following content to the file/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. wmem_max = 262144

Run the following command to make the kernel parameters take effect:

/Sbin/sysctl-p

Add the following content to the/etc/security/limits. conf file:

* Soft nproc 2047
* Hard nproc 16384
* Soft nofile 1024
* Hard nofile 65536

Add the following content to the file/etc/pam. d/login:

Session required/lib/security/pam_limits.so

Because SELINUX has an impact on oracle, setting secure linux as invalid. edit the file/etc/selinux/config:

SELINUX = disabled

Of course, you can also use the tool (system> Management> Security Level and firewall) in the graphic interface. Select the SELinux page and set it to invalid.

Install
Install the following package:

# From RedHat AS5 disc 1
Cd/media/cdrom/Server
Setarch-2 rpm-Uvh *
Rpm-Uvh make-3 *
Glibc-2 rpm-Uvh *
Libaio-0 rpm-Uvh *
Cd/
Eject

# From RedHat AS5 disc 2
Cd/media/cdrom/Server
Rpm-Uvh compat-libstdc ++-33-3 *
Compat-gcc-34-3 rpm-Uvh *
Rpm-Uvh compat-gcc-34-c ++-3 *
Gcc-4 rpm-Uvh *
LibXp-1 rpm-Uvh *
Cd/
Eject

# From RedHat AS5 disc 3
Cd/media/cdrom/Server
Openmotif-2 rpm-Uvh *
Compat-db-4 rpm-Uvh *
Cd/
Eject

Add group and user:

Groupadd oinstall
Groupadd dba
Groupadd rule

Useradd-g oinstall-G dba oracle
Passwd oracle

Create an Oracle installation directory and grant permissions to oracle users:

Mkdir-p/u01/app/oracle/product/10.2.0/db_1
Chown-R oracle. oinstall/u01

Since oracle only supports RHEL4, You need to modify the version description. In the/etc/redhat-release file, change Red Hat Enterprise Linux Server release 5 (Tikanga) to version 4:

Redhat-4

Log on to the oracle user and configure the environment variables (Add the following content to the file. bash_profile

# 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 = orcl; export ORACLE_SID

DISPLAY = 192.168.0.11: 0, 0; export DISPLAY
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

Note: You can set $ oracle_home by yourself. For efficiency, if some users separately allocate disk space for oracle, the main directory is set by themselves.

Now you can finally install Oracle.
Log on to the oracle user again.

In the extracted directory, run the following command to start the Oracle smart Installation Wizard (Oracle Universal Installer). A graphical interface is displayed, and the installation is performed step by step as prompted:

./RunInstaller

When the installation is completed quickly, a prompt is displayed, and two scripts must be executed as root.

Finally, click Finish to complete the installation.

End Installation
Edit the/etc/redhat-release file and change the RHEL version information back:

Red Hat Enterprise Linux Server release 5 (Tikanga)

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.