Installation of Oracle 11g R2 on CentOS 6.4

Source: Internet
Author: User

"//" Is followed by a comment. "#" indicates the operation under the root user, and "$" indicates the operation under the Oracle user.

# Chkconfig iptables off // permanently disable the firewall or

# Service iptabels stop // temporarily disable the firewall. It will be automatically enabled after the system is restarted.

 

1. hardware check:

1.1 memory requirements:

The memory size is greater than 1 GB (the memory size is slightly larger when the virtual machine is used for installation; otherwise, the installation check fails)

# Cat/proc/meminfo // view memory size

1.2 requirements for swap partitions:

Swap partition is 1.5 times the memory, which can be adjusted according to the actual situation

# Grep SwapTotal/proc/meminfo // view swap partition size

1.3 hard disk space requirements

Hard Disk Space must meet the required software size,/tmp partition not less than 400 M, installation directory should be greater than 4G:

# Df-h // view disk space usage

# Du-ch // view the directory space size

 

 

2. Software Check: 2.1 check whether the component package on which oracle depends is installed:

# Rpm-qa | grep package name // check whether the package is installed

 

1. binutils-2.17.50.0.6

2. compat-libstdc ++-33-3.2.3

 

3. elfutils-libelf-0.125

4. elfutils-libelf-devel-0.125

5. elfutils-libelf-devel-static-0.125

 

6. gcc-4.1.2

7. gcc-c ++-4.1.2

 

Glibc-2.5-24

9. glibc-common-2.5

Glibc-devel-2.5

11. glibc-headers-2.5

 

12. kernel-headers-2.6.18

13. pdksh-5.2.14

 

14. libaio-0.3.106

Libaio-devel-0.3.106

 

16. libgcc-4.1.2

17. libgomp-4.1.2

18. libstdc ++-4.1.2

19. libstdc ++-devel-4.1.2

 

20. make-3.81

21. numactl-devel-0.9.8.i386

22. sysstat-7.0.2

23. unixODBC-2.2.11

UnixODBC-devel-2.2.11

 

 

2.2 install the missing software package:

# Rpm-ivh package name // use a local CD image to install the package

# Yum install package name // use yum for online Installation

 

3. configure system environment 3.1 to modify kernel parameters:

# Vi/etc/sysctl. conf

Fs. file-max = 6815744

Fs. aio-max-nr = 1048576

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

Kernel. sem = 250 32000 100 128

Kernel. shmall = 2097152 (you can follow the system default, do not modify)

Kernel. shmmax = 536870912 (you can follow the system default, do not modify)

 

# Sysctl-p // make kernel parameters take effect

 

 

3.2 modify the number of processes and the maximum number of sessions

# Vi/etc/security/limits. conf

Oracle soft nproc 2047

Hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

 

3.3 Association settings

# Vi/etc/pam. d/login

Session required pam_limits.so

 

3.4 Modify/etc/profile

# Vi/etc/profile

If [$ USER = "oracle"]; then

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

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Fi

 

 

4. Create an installer, group, and directory 4.1. Create the installer and group

# Groupadd oinstall // create an oinstall Group

# Groupadd dba // create a dba group

# Useradd-g oinstall-G dba oracle // create a user oracle, set the master group to oinstall, And the slave group to dba

# Id oracle // check result

# Passwd oracle // set the oracle user password

 

 

4.2 create a software installation project

# Mkdir-p/home/oracle_11/app // create the installation root directory

# Chown-R oracle: oinstall/home/oracle_11 // users and groups of the installation root directory are oracle users and oinstall groups

# Chmod-R 755/home/oracle_11 // modify the access permission of the directory to be fully controlled by the owner, and read and execute the group and other users

 

4.3 set user environment variables

# Vi/home/oracle/. bash_profile

ExportORACLE_BASE =/home/oracle_11/app // software installation base Directory

ExportORACLE_SID = orcl // Instance name

ExportORACLE_HOME = $ ORACLE_BASE/product/11.2.0/dbhome_1 // software installation product directory

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

 

# Source/home/oracle/. bash_profile // load the file to make the configuration take effect

# Env | more // check whether the configured environment variables are correct

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • Next Page

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.