How to install Oracle 11gR2 on CentOS 6.7

Source: Internet
Author: User
Tags dba iptables

1. Software Preparation:

centos6.7 (64-bit);

ORACLE11GR2 ((Linux x86-64))

2, execute the following command to install the relevant package:

Yum-y install \
Binutils \
COMPAT-LIBCAP1 \
COMPAT-LIBSTDC++-33 \
compat-libstdc++-33*.i686 \
Elfutils-libelf-devel \
GCC \
gcc-c++ \
glibc*.i686 \
GLIBC \
Glibc-devel \
glibc-devel*.i686 \
Ksh \
libgcc*.i686 \
LIBGCC \
libstdc++ \
libstdc++*.i686 \
Libstdc++-devel \
libstdc++-devel*.i686 \
Libaio \
libaio*.i686 \
Libaio-devel \
libaio-devel*.i686 \
Make \
Sysstat \
UnixODBC \
unixodbc*.i686 \
Unixodbc-devel \
unixodbc-devel*.i686 \
Libxp

3. SELinux closed
Vi/etc/sysconfig/selinux
Change Selinux=enforcing to Selinux=disabled

4. Firewall off
Iptables

Service iptables stop;

5, Machine name hostname

Please change the hostname in the/etc/sysconfig/network to match the/etc/hosts

6, modify the kernel parameters (operating under the root account): Edit the kernel parameter profile vi/etc/sysctl.conf, modify or add the following line under the file:

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

Then execute the following command to make the above configuration effective immediately:

Sysctl-p;
7. Modify the system resource limit (operate under root account):

Edit the system resource limit profile vi/etc/security/limits.conf, and add the following line under the file:

Oracle Soft Nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536oracle soft stack 10240

8. Create users and Groups
Groupadd Oinstall;groupadd Dba;groupadd Oper;
USERADD-G oinstall-g Dba,oper Oracle; #初始群组为 Oinstall, the effective group is DBA, OPERPASSWD Oracle; #为oracle帐号设置密码 (login required during installation)
If an Oracle account already exists, use the command usermod-a-G Dba,oper Oracle to join the group DBA and Oper

8, set up the installation directory
Mkdir-p/u01/app/oracle/product/11.2.0/db_1
Chown-r Oracle:oinstall/u01/app
Chmod-r 775/u01/app
9. Modify the Oracle User environment variables
VI ~oracle/.bash_profile

Oracle_home= $ORACLE _base/product/11.2.0/db_1
Oracle_sid=orcl
Export Oracle_base oracle_home Oracle_sid

Path= $ORACLE _home/bin: $PATH
Export PATH

10. Start the installation

Download Oracle files for SSH to/u01/app/oracle

# su-oracle
$ cd/u01/app/oracle
$ unzip Linux.x64_11gR2_database_1of2.zip
$ unzip Linux.x64_11gR2_database_2of2.zip
$ unset LANG LANGUAGE #解决中文乱码
$ cd/u01/app/oracle/databse
$./runinstaller

11. After the installation is complete: Execute two scripts: to execute two scripts with root, follow the prompts to OK

How to install Oracle 11gR2 on CentOS 6.7

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.