Install Oracle11gR2 (x64) in CentOS6.4)

Source: Internet
Author: User
Install Oracle11gR2 (x64) in CentOS6.4)

Install Oracle 11gR2 (x64) in CentOS 6.4)

Install Oracle 11gR2 (x64) in CentOS 6.4)

[Date:] Source: Linux community Author: mophee [Font:]

Before installation, note: Install the environment in this article: install the required package (under the root account ):

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

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.2

Gcc-c ++-4.1.2

Glibc-2.5-24

Glibc-2.5-24 (32 bits)

Glibc-common-2.5

Glibc-devel-2.5

Glibc-devel-2.5 (32 bits)

Glibc-headers-2.5

Ksh-20060214

Libaio-0.3.106

Libaio-0.3.106 (32 bits)

Libaio-devel-0.3.106

Libaio-devel-0.3.106 (32 bits)

Libgcc-4.1.2

Libgcc-4.1.2 (32 bits)

Libstdc ++ 4.1.2

Libstdc ++-4.1.2 (32 bit)

Libstdc ++-devel 4.1.2

Make-3.81

Sysstat-7.0.2

UnixODBC-2.2.14-11.el6 (x86_64) or later

UnixODBC-2.2.14-11.el6.i686 or later

UnixODBC-devel-2.2.14-11.el6 (x86_64) or later

UnixODBC-devel-2.2.14-11.el6.i686 or later

LibXp

Run the command yum list | grep 'package name', rpm-q 'package name', or rpm-qa | grep 'package name' to check whether the package has been installed. Run the command yum install-y 'package name' to install the missing package, except for the pdksh package. Note: To use yum to install a 32-bit package, you can first modify vi/etc/yum. conf and add a line: multilib_policy = all. I386 is required for Oracle to check the environment, but the 32-bit packages in CentOS 6.4 are i686, ignore this difference (see the installation section below ).

1

Yum install-y binutils compat-libstdc ++-33 elfutils-libelf-devel gcc-c ++ glibc-common glibc-devel libaio-devlibel gcc libstdc + + libstdc ++-devel make numactl sysstat libXp unixODBC-devel

Install the pdksh package (this package is not included in the CentOS installation disk ):

Use the command: wget ftp://rpmfind.net/linux/centos/5.9/ OS /x86_64/CentOS/pdksh-5.2.14-37.el5_8.1.x86_64.rpm to download the pdksh package to a local

Install with the command rpm-ivh pdksh-5.2.14-37.el5_8.1.x86_64.rpm (Note: This package conflicts with ksh, if you have installed ksh, it is recommended to uninstall with command rpm-e ksh)

Create a user group (under the root account ):

1

2

3

Groupadd oinstall;

Groupadd dba;

Groupadd rule;

Create a required account (under the root account ):

Use the command id oracle to check whether the oracle account already exists. If not, use the following command to create

1

2

Useradd-g oinstall-G dba, role oracle; # The initial group is oinstall, and the valid group is dba and role

Passwd oracle; # set a password for the oracle account (login required during installation)

If an oracle account already exists, run the usermod-a-G dba command to add oracle to group dba and role.

Modify kernel parameters (under the root account ):

Edit the kernel parameter configuration file vi/etc/sysctl. conf and modify or add the following lines under the file:

1

2

3

4

5

6

7

8

9

10

11

Fs. file-max = 6815744

Fs. aio-max-nr = 1048576

Kernel. shmall = 2097152

Kernel. shmmax = 2147483648

Kernel. shmmni = 4096

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

Run the following command to make the preceding configuration take effect immediately:

1

Sysctl-p;

Modify system resource limits (under the root account ):

Edit the system resource limit configuration file vi/etc/security/limits. conf and add the following lines under the file:

1

2

3

4

5

Oracle soft nproc 2047

Hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

Oracle soft stack 10240

Edit the vi/etc/pam. d/login file and add the following lines (11gR1 is required, R2 is not required ):

1

Session required pam_limits.so

Edit the vi/etc/profile file and add the following lines (11gR1 is required, R2 is not required ):

1

2

3

4

5

6

7

8

If [$ USER = "oracle"]; then

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

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Fi

This configuration takes effect immediately when you log on to oracle. If you have logged on to oracle, you can log out and log on again.

Disable SELinux (under the root account ):

Edit the SELinux configuration file vi/etc/selinux/config and set the SELINUX value to disabled, as shown below:

1

SELINUX = disabled;

Modify the file so that SELinux is not started after the system is restarted. To disable SELinux, run the following command:

1

Setenforce 0

Modify the/etc/hosts file (under the root account ):

Edit the vi/etc/hosts file and add a line:

1

192.168.80.19 mophee

If you do not perform this operation, a warning will be displayed during installation, which may affect the normal operation of the listener. Therefore, we recommend that you make this modification.

Create the required directory (under the root account ):

To install oracle in the/opt/oracle directory, create the directory:

1

2

3

Mkdir/opt/oracle;

Chown oracle: oinstall/opt/oracle;

Chmod 755/opt/oracle;

You also need to set the Inventory directory during installation, so you need to create this directory:

1

2

3

Mkdir/opt/oraInventory;

Chown oracle: oinstall/opt/oraInventory;

Chmod 755/opt/oraInventory;

Installation packages:

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.