Installing Oracle 11gR2 in RHEL 6.5

Source: Internet
Author: User

Installing Oracle 11gR2 in RHEL 6.5

Record the process of installing Oracle 11gR2 in RHEL 6.5, and hope to help you.

1. Disable selinux and use vi/etc/selinux/config

Selinux = disabled

2. Use yum to install rpm

Yum-y install compat-db compat-db42 compat-db43 compat-gcc-34 compat-gcc-34-c + + compat-libstdc ++-33 glibc -*. i686 libXpm -*. i686 libXp. so.6 libXt. so.6 libXtst. so.6 libgcc_s.so.1 ksh libXp libaio-devel numactl-devel unixODBC-devel

3. Add the following parameter vi/etc/sysctl. conf

# The sum of the active asynchronous IO process context is 1024*1024, that is, 1 M.
Fs. aio-max-nr = 1048576

# Number of files simultaneously opened
Fs. file-max = 6815744

# Number of pages in the shared memory. The size of the Linux Shared Memory Page is 4 kb, and the size of the shared memory segment is an integer multiple of the size of the shared memory page.
Kernel. shmall = 2097152

# Indicates the maximum value of a single shared memory segment
Kernel. shmmax = 2147483648

# Indicates the minimum value of a single shared memory segment, usually 4 kb, that is, 4096bit
Kernel. shmmni = 4096

# This file is used to control the kernel semaphore
# The first column indicates the maximum number of semaphores in each signal set.
# The second column indicates the total number of semaphores in the system range.
# The third column indicates the maximum number of system operations when each signal occurs.
# The fourth column indicates the total number of signal sets in the system range.
Kernel. sem = 250 32000 100 128

# This file indicates the local port number opened by the TCP/UDP protocol.
Net. ipv4.ip _ local_port_range = 9000 65500

# Specifies the default value of the buffer size of the receiving socket (in bytes ).
Net. core. rmem_default = 4194304

# Specifies the maximum buffer size of the received socket (in bytes ).
Net. core. rmem_max = 4194304

# Specifies the default value of the buffer size of the sending socket (in bytes ).
Net. core. wmem_default = 262144

# Specifies the maximum buffer size of the sending socket (in bytes ).
Net. core. wmem_max = 1048586

4. After the modification is completed, run the following command to make the modification take effect.

Sysctl-p

5. Modify the restricted file, vi/etc/security/limits. conf.

# Number of processes available for a single user (soft limit)
Oracle soft nproc 2047

# Number of processes available for a single user (hard limitation)
Hard nproc 16384

# Maximum number of file descriptors that can be opened (soft limit)
Oracle soft nofile 1024

# Maximum number of file descriptors that can be opened (hard limit)
Oracle hard nofile 65536

6. Create a user and group

# Create an oinstall Group
Groupadd oinstall

# Create a dba group
Groupadd dba

#-U user number-g main user group-G sub-User Group
Useradd-g oinstall-G dba oracle

# Modifying the oracle user name and password
Passwd oracle modify user's oracle Password

7. Create an installation path

Mkdir-p/u01/app/oracle
Mkdir-p/u01/software

8. Modify permissions

Chown-R oracle: oinstall/u01/
Chmod-R 755/u01/

9. Set the environment variable vi/home/oracle/. bash_profile

# Oracle Settings
TMP =/tmp; export TMP
TMPDIR = $ TMP; export TMPDIR
ORACLE_BASE =/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME = $ ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID = orcl; export ORACLE_SID
SQLPATH = $ ORACLE_HOME/sqlplus/admin; export SQLPATH
ORACLE_TERM = xterm; export ORACLE_TERM
EDITOR = vi; export EDITOR
PATH = $ PATH: $ ORACLE_HOME/bin: $ HOME/myShell;
Export PATH
LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib;
Export CLASSPATH

If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi

10. Use an oracle user to upload the installation file to/oracle/software and decompress the package.

11. Enter the/oracle/software startup graphical installation interface.

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.