64-bit Oracle 11gR2 Silent Installation on CentOS 6.2 X64

Source: Internet
Author: User

On CentOS 6.2 X64, 64-bit Oracle11gR2 is installed silently, and listening settings are silent.

1. Environment before installation:
Operating System: CetnOS6.2x64 minimal installation. configured network IP address:, physical memory 8 GB, hard disk 100 GB.
Downloaded: linux.x64_11gR2_database_1of2.zip
Linux.x64_11gr2_databasesilicate f2.zip

2. Preparations
After the root user logs on
# Yum install vim // if you prefer vim, edit various configuration files.
# Yum install unzip // download unzip to decompress the preceding two compressed files
# Cd/opt // switch the current directory to the directory where the oracle compressed file is located
# Unzip linux.x64_11gR2_database_1of2.zip // decompress
# Unzip linux.x64_11gr2_database204 f2.zip
After decompression, a new/opt/database directory is added, which contains all the oracle installation files after decompression.
In the/etc/hosts file, add the Host Name (obtained through hostname) to the loopback IP address ing as follows: localhost. localdomain localhost4 localhost4.localdomain4 oracle11gcentos6.dlxg.gov.cn
: 1 localhost. localdomain localhost6 localhost6.localdomain6 oracle11gcentos6.dlxg.gov.cn

# Vim/etc/selinux/conf set SELINUX = disabled
# Setenforce 0 // disable selinux
# Service iptables stop // temporarily close the Firewall
3. install required packages
# Yum install gcc
# Yum install make
# Yum install binutils
# Yum install gcc-c ++
# Yum install compat-libstdc ++-33
# Yum install elfutils-libelf-devel
# Yum install elfutils-libelf-devel-static
# Yum install ksh
# Yum install libaio
# Yum install libaio-devel
# Yum install numactl-devel
# Yum install sysstat
# Yum install unixODBC
# Yum install unixODBC-devel
# Yum install pcre-devel
4. Install users and user groups
# Groupadd oinstall
# Groupadd dba
# Useradd-g oinstall-G dba-d/home/oracle
# Passwd oracle // set the oracle Password

5. Modify the kernel parameter configuration file
# Add vim/etc/sysctl. conf at the end of the file
Fs. aio-max-nr = 1048576
Fs. file-max = 6553600
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 262144
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 1048586
Save the file.
#/Sbin/sysctl-p // make the parameter take effect
6. Modify the user's restricted file
# Vim/etc/security/limits. conf added after the file
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
Oracle soft stack 10240
Save the file.
Modify the/etc/pam. d/login file and add the following:
Session required/lib64/security/pam_limits.so // 64 is the system. Do not write it as/lib/security/pam_limits.so. Otherwise, you cannot log on.
Session required pam_limits.so
Modify/etc/profile and add:
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Ulimit-u 16384-n 65536

7. Create an installation directory and set File Permissions
# Mkdir/opt/oracle
# Mkdir/opt/oracle/11.2.0 // database system installation directory
# Mkdir/opt/oradata // database data installation directory
# Mkdir/opt/oradata_back // Data Backup Directory
# Mkdir/home/oracle/inventory // List Directory
# Chown-R oracle: oinstall/opt/oracle
# Chown-R oracle: oinstall/home/oracle/inventory
# Chomod-R 775/opt/oracle

  • 1
  • 2
  • 3
  • 4
  • Next Page

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.