Install oracle11gr2 in Redhat6

Source: Internet
Author: User
1. check the system package rpm-qcompat-libstdc ++-runtime ++ libaio-devellibaiolibgcclibstdc ++ libstdc ++-develmake ..

 

1. check the system package

Rpm-q compat-libstdc ++-33 elfutils-libelf-devel glibc-common glibc-devel gcc-c ++ libaio-devel libaio libgcc libstdc ++ libstdc ++-devel make sysstat unixODBC-devel pdksh5.2.14

 

 

Note that the package pdk5.2.14 does not exist in rhel6 and needs to be downloaded separately. Versions 5 can be found under the CD.

Ftp://ftp.pbone.net/mirror/archive.download.redhat.com/pub/redhat/linux/6.1/en/ OS /i386/RedHat/RPMS/pdksh-5.2.14-1.i386.rpm

Attached

 

 

2. modify kernel parameters

Back up first

Cp/etc/sysctl. conf/etc/sysctl. conf. bk

Modify and add the following content.

Vi/etc/sysctl. conf

(The parameters here are different from those in the previous 10 GB installation)

 

 

Fs. aio-max-nr = 1048576

Fs. file-max = 6815744

Kernel. shmall = 2097152

Kernel. shmmax = 536870912

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

 

 

 

 

Sysctl-p

3. add users and groups.

Groupadd dba

Groupadd oinstall

Useradd-g oinstall-G dba oracle

Passwd oracle

4. modify environment variables

Linux

Vi/home/oracle/. bash_profile

Export EDITOR = vi

Export ORACLE_SID = dex

Export ORACLE_BASE =/u01/apps/oracle

Export ORACLE_HOME = $ ORACLE_BASE/product/11gr2/db_1

Export nls_date_format = "yyyy-mm-dd hh24: mi: ss"

Export PATH =/u01/apps/oracle/product/11gr2/db_1/bin: $ PATH

5. modify user restrictions

Vi/etc/security/limits. conf

Add at the end

Oracle soft nproc 2047

Hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

 

 

Vi/etc/pam. d/login

Add at the end

Session required/lib/security/pam_limits.so

6. edit/etc/profile

Vi/etc/profile

Add 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

7. create a directory and authorize

Mkdir-p/u01/apps/oracle

Chown-R oracle: oinstall/u01

8. verify it.

Su-oracle

9. reboot, decompress,./runInstall

10. good luck.

 

From Column DexterR

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.