Install Oracle 11g in 64-bit RedHat 5.6

Source: Internet
Author: User
Tags custom name

Prerequisites: You are advised to install the following software when installing Linux. Otherwise, you cannot pass the prerequisite check during Oracle installation. (The missing software can also be installed after the test, but the dependency between the software may make the installation very difficult. In the worst condition, the system will be reinstalled)

Binutils-2.17.50.0.6
Compat-libstdc ++-33-3.2.3
Compat-libstdc ++-33-3.2.3 (32 bit)
Elfutils-libelf-0.125
Elfutils-libelf-devel-0.125
Gcc-4.1.1
Gcc-c ++-4.1.1
Glibc-2.5-12
Glibc-2.5-12 (32 bits)
Glibc-common-2.5
Glibc-devel-2.5
Glibc-devel-2.5-12 (32 bits)
Libaio-0.3.106
Libaio-0.3.106 (32 bits)
Libaio-devel-0.3.106
Libgcc-4.1.1
Libgcc-4.1.1 (32 bits)
Libstdc ++-4.1.1
Libstdc ++-4.1.1 (32 bit)
Libstdc ++-devel 4.1.1
Make-3.81
Sysstat-7.0.0

1. Modify Kernel Parameters in root Mode

# Vi/etc/sysctl. conf

Add the following code at the end of the Code:

Fs. file-max = 6815744

 

Kernel. shmmni = 4096

Kernel. shmmax = 4294967295 # half of the physical memory

Kernel. sem = 250 32000 100 128

Net. ipv4.ip _ local_port_range = 9000 65500

Net. core. rmem_default = 262144

Net. core. rmem_max = 4194304

Net. core. wmem_default = 262144

Net. core. wmem_max = 10488576

Fs. aio-max-nr = 10488576

Save and exit

#/Sbin/sysctl-p make the modification take effect

2. Set shell restrictions for oracle users

# Vi/etc/security/limits. conf

Add the following code at the end of the file:

Oracle soft nproc 2047

Hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

Oracle-nofile 1006154

Save and exit

3. Create oracle users and groups in root Mode

# Groupadd oinstall

# Groupadd dba

# Groupadd rule

# Useradd-g oinstall-G dba, guest oracle // added oracle users

# Passwd oracle (set the oracle account password in the command line shown below)

4. Create a directory for installing oracle

# Cd/home/oracle // go to the oracle directory

# Mkdir app // create an app directory

# Chown-R oracle: oinstall/home/oracle/app

# Chmod-R 775/home/oracle/app // grant permissions

5. Switch to the oracle account and set environment variables for oracle users

# Su-oracle

$ Vi/home/oracle/. bash_profile

Add:

Export ORACLE_BASE =/home/oracle/app

Export ORACLE_HOME = $ ORACLE_BASE/product/11.1.0/db_1

Export ORACLE_SID = orcl (custom name)

Export PATH = $ ORACLE_HOME/bin: $ PATH
Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib
Export CLASSPATH = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib
Export NLS_LANG = "SIMPLIFIED CHINESE_CHINA". ZHS16GBK

Save and exit

$ Source/home/oracle/. bash_profile make it take effect

6. Restart the operating system:
# Reboot (restart command)
Note: root (super user) cannot be used to install the Oracle software. You can only use the newly created oracle user to install the software!

7. Use the FTP tool to copy the oracle11g compressed package to the oracle folder

8. decompress the oracle11g package in oracle Mode

# Unzip linux.x64_11gR2_database_1of2.zip-d/home/oracle

# Unzip linux.x64_11gr2_database5of2.zip-d/home/oracle

 

9. Open a new terminal window and run the command as root # xhost +

10. Return to the oracle window.

Enter the database directory

$ Cd/home/oracle/database

$./RunInstaller

Start installation. The remaining installation steps are the same as those in windows.

The last two commands must be executed.

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.