Oracle 10g release 2 for CentOS 5.5

Source: Internet
Author: User
Tags oracle database installation

Part 1: Environment Configuration

1. Install CentOS 5.5

When installing CentOS 5.5, if the server is only running the Oracle database, you must install gnome, development kit, and Legacy development kit when installing CentOS. You can choose not to install other packages.

2. Check whether the required installation package is complete.

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

You may also need the following packages. During the installation process, install the dependent packages based on the package dependency:

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

LibXp-devel-1.0.0-8.i386.rpm

Openmotif-devel-2.3.0-0.3.el5.i386.rpm

Openmotif22-2.2.3-18.i386.rpm

Perl-libxml-perl-0.08-1.2.1.noarch.rpm

3. Modify the kernel parameter to the system configuration file/etc/sysctl. conf. Add the following content at the end of the line, which will be displayed on CentOS5.5.

Kernel. shmmax = 4294967295

Kernel. shmall = 268435456 these parameters already exist and are enabled by default,

You need to comment out the original kernel. shmmax and kernel. shmall parameters. [Idc.com] and add the following content at the end of the file:

# Use for Oracle10gR2

Kernel. shmall = 2097152

Kernel. shmmax = 2147483648

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 

When installing the oracle database, pay attention to the consistency between the/etc/hosts and the Host Name of the/etc/sysconfig/network file. Otherwise, an error message may appear when running netca and dbca later.

[Note: Do not use localhost. localdomain when setting the host name, because a series of problems may occur when setting up RAC.]

For example, the content of the/etc/hosts file is as follows:

# Do not remove the following line, or various programs

# That require network functionality will fail.

127.0.0.1 localhost. localdomain localhost

: 1 localhost6.localdomain6 localhost6

192.168.1.2 keiichi.ora.com 

The content of/etc/sysconfig/network is as follows:

NETWORKING = yes

NETWORKING_IPV6 = no

HOSTNAME = keiichi.ora.com 

4. Modify the/etc/security/limits. conf file and add the following content at the end of the file.

# Use for oracle10g

Oracle soft nproc 2047

Hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536 

5. Modify the pam module login file/etc/pam. d/login and add the following content at the end of the line:

Session required/lib/security/pam_limits.so

Session required pam_limits.so 

6. Modify the SELINUX configuration file/etc/selinux/config to ensure the following content:

SELINUX = disabled

Disable SELIINUX

7. Modify the global environment file/etc/profile and add the following at the end:

If [$ USER = "oracle"]; then

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

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Fi 

8. Because the default centos5.5 does not support 10.2.0, modify the configuration file so that CentOS 5.5 supports Oracle10gR2.

#Redhat-release.bak cp/etc/RedHat-release

Back up the file to be modified.

Directly modify the/etc/redhat-release contentRedhat-4

Run "sysctl-p" to apply the preceding parameters.

Part 2: Configure and install Oracle users and directories

1. Create and configure users

[Root @ localhost ~] #Groupadd oinstall// Create an oracle database installation Group

[Root @ localhost ~] #Groupadd dba// Create an oracle Database Management Group

[Root @ localhost ~] #Useradd-m-g oinstall-G dba oracle// Create an oracle user

[Root @ localhost ~] #Id oracle

Uid = 501 (oracle) gid = 501 (oinstall) groups = 501 (oinstall), 502 (dba)

[Root @ localhost ~] #Passwd oracle// Set the password for the Oracle user:

Changing password for user oracle.

New UNIX password:

Bad password: it is based on a dictionary word

Retype new UNIX password:

Passwd: all authentication tokens updated successfully.

2. Create an installation directory

#Mkdir-p/u01/oracle// Create an oracle BASE Directory

#Chown-R oracle: oinstall/u01/oracle// Modify the owner and group of the BASE Directory

#Chmod-R 775/u01/oracle

#Mv/root/10201_database_linux32.zip/u01/mk

#Unzip/u01/10201_database_linux32.zip 

3. Modify the Oracle user environment configuration file. bash_profile

#Su-oracle

$Vi ~ /. Bash_profile

Add

Export ORACLE_BASE =/u01/oracle

Export ORACLE_HOME = $ ORACLE_BASE/10g

Export ORACLE_SID = keiichi// The SID of the database instance, which must be the same as the SID in the graphic interface Installation Process

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

Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib 

Start Installation

#Su-oralce

$Cd/u01/databases// The Directory generated after Oracle Decompression

$Export LANG = en_US// Set temporary environment variables to solve the problem of garbled characters in the oracle graphic interface

$./RunInstaller// You can add the ignoreSysPreReqs parameter to skip the check before installing the system.

Continue to the next step.

If any file is missing during the installation process, you can switch to the ROOT user to install the required file and continue the installation.

After the installation is complete, the system will prompt you to use the ROOT user to execute two scripts one by one. After installation, exit.

For more information about Oracle Installation, see the following webpage:

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.