Install Oracle10gRelease2 on RedHatEnterpriseLinux5

Source: Internet
Author: User
I. In the installation environment, I use the virtual RHEL5 in vmware. The allocated memory is 1 GB and the SWAP partition is 1 GB. We recommend that you change the SWAP partition to 2G. Otherwise, the test procedure will

I. In the installation environment, I use the virtual RHEL5 in vmware. The allocated memory is 1 GB and the SWAP partition is 1 GB. We recommend that you change the SWAP partition to 2G. Otherwise, the test procedure will

I. installation environment

I am a virtual RHEL5 in vmware. The allocated memory is 1 GB and the SWAP partition is 1 GB. We recommend that you change the SWAP partition to 2 GB. Otherwise, the monitoring fails when the test is performed. (Of course, it's okay if you force install it)

Ii. configuration before installing Oracle 10g Release2

1. install the software packages required for Oracle 10g R2

# Cd/mnt/cdrom/Server/

# Rpm-uv h setarch-2 *

# Rpm-Uvh make-3 *

# Rpm-uv h glibc-2 *

# Rpm-uv h libaio-0 *

# Rpm-Uvh compat-libstdc ++-33-3 *

# Rpm-uv h compat-gcc-34-3 *

# Rpm-Uvh compat-gcc-34-c + +-3 *

# Rpm-uv h gcc-4 *

# Rpm-uv h libXp-1 *

LibXp-1 (control graphical interface, if not installed this package, when running runInstaller, it said that none of the libawt. so: libXp. so.6: cannot open shared object file: No such file or directory occurred .)

# Rpm-Uvh openmotif22 -*

# Rpm-uv h compat-db-4 *

In fact, when installing the system, you can install all development tools and the like, so as not to make some inexplicable errors when installing oracle.

(In addition to the openmotif22-2.2.3-18 and compat-db-4.2.52-5.1 on the third disk, the rest of the packages are on the first disk.

(I used ISO and DVD files on the Server .)

If you cannot install it, force install the rpm-I compat-db-4 * -- force -- nodeps to ignore all dependencies and file issues and install any package, however, this force-installed software package cannot guarantee full functionality.

2. Modify the/etc/RedHat-release file

Because Oracle 10g officially only supports RHEL4, so you need to change the version description, edit the/etc/redhat-release file, delete the Red Hat Enterprise Linux Server release 5 (Tikanga), change to redhat-4

# Vi/etc/redhat-release and then delete and paste it directly.

3. Modify Kernel Parameters

# Vi/etc/sysctl. conf)

Kernel. shmmni = 4096

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

To make the change take effect immediately, run the following command:

# Sysctl-p

4. Create users, groups, and directories required for Oracle Installation

(In this case, the installation can be successful if you simply follow the program below, but if you want to install oracle in another directory, You need to modify it. Here, you just need to create oracle in the root directory, then install oracle in this directory. If you want to install oracle Under opt, you need to make a simple modification .)

# Groupadd oinstall

# Groupadd dba

# Groupadd rule

# Useradd-g oinstall-G dba oracle

# Passwd oracle

# Mkdir/oracle (if you want to install oracle Under opt, mkdir/opt/oracle, and then modify the following permissions)

# Chown-R oracle: oinstall/oracle (chown-R oracle: oinstall/opt/oracle)

# Chmod-r 775/oracle (chmod-R 775/opt/oracle)

We recommend that you install the oracle installation directory in a separate partition or disk.

5. Set shell limit for oracle users (to improve the performance of running software on linux systems, the following limits must be set for oracle users .)

# Vi/etc/security/limits. conf

Oracle soft nproc 2047

Hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

Next, modify the/etc/pam. d/login file and add the following content to make the shell limit take effect:

# Vi/etc/pam. d/login

Session required pam_limits.so

6. Configure the IP address (this can be determined during installation. If it is not determined, you can also modify it using the built-in tool)

It is best to use a static IP address when installing RHEL. If DHCP is selected at the time, now you need to change the/etc/sysconfig/network-scripts/ifcfg-eth0 File

[Root @ TSM54-Test network-scripts] # cat ifcfg-eth0

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]

DEVICE = eth0

BOOTPROTO = static

HWADDR = 00: 0C: 29: 4B: 17: C4

ONBOOT = yes

IPADDR = 192.168.68.98

NETMASK = 255.255.255.0

GATEWAY = 192.168.68.10

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.