I. installation environment: OS: Linuxx86CentOS6.0DB: Oracle11gR1NETWORK: LAN II. Installation Steps 1. Check the required packages using rpm-qlt; package name gt;
I. installation environment: OS: Linux x86 CentOS 6.0DB: Oracle11g R1NETWORK: LAN II. Installation Steps 1. Check the required packages using rpm-q lt; package name gt;
1. installation environment:
OS: Linux x86 CentOS 6.0
DB: Oracle11g R1
NETWORK: LAN
Ii. Installation Steps
1. Check required packages
Use rpm-q <包名> To check whether the following packages have been installed and the version is correct.
Binutils-2.17.50.0.6-2.el5
Compat-libstdc ++-33-3.2.3-61
Elfutils-libelf-0.125-3.el5
Elfutils-libelf-devel-0.125
Gcc-4.1.1-52
Gcc-c ++-4.1.1-52
Glibc-2.5-12
Glibc-common-2.5-12
Glibc-devel-2.5-12
Glibc-headers-2.5-12
Libaio-0.3.106
Libaio-devel-0.3.106
Libgcc-4.1.1-52
Libstdc ++-4.1.1
Libstdc +-devel-4.1.1-52.e15
Make-3.81-1.1
Numactl-devel-0.9.8.i386
Sysstat-7.0.0
UnixODBC-2.2.11
UnixODBC-devel-2.2.11
2. Add a group and a user and create an installation directory.
Groupadd oinstall
Groupadd dba
Useradd-g oinstall-G dba oracle
Passwd oracle
Mkdir-p/u01/app/oracle
Chown-R oracle: oinstall/u01/
3. Edit Kernel Parameters
Vi/etc/sysctl. conf
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 = 1024 65000
Net. core. rmem_default = 4194304
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 1048586
Shmmax maximum shared memory. It can be set to 2147483648 if the host has 2 GB of memory.
Run the following command to make the kernel parameters take effect:
/Sbin/sysctl-p
4. Set shell limit for oracle users
Vi/etc/security/limits. conf
Add the following content
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
5. Edit the login configuration file
Vi/etc/pam. d/login
Add the following statement
Session required pam_limits.so or
Session required/lib/security/pam_limits.so
6. Configure the IP address
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
The content is as follows:
DEVICE = "eth0"
NM_CONTROLLED = "yes"
ONBOOT = "yes"
TYPE = Ethernet
BOOTPROTO = static
IPADDR = 192.168.1.12
NETWORK = 255.255.255.0
GATEWAY = 192.168.1.1
PREFIX = 24
DEFROUTE = yes
20174_failure_fatal = yes
IPV6INIT = no
NAME = "System eth0"
UUID = 5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
HWADDR = 00: 0C: 29: F8: C7: 79:
7. Modify the/etc/hosts file
Vi/etc/hosts
Add content in the following format
127.0.0.1 hostname localhost
The hostname can be obtained through the hostname command query.
8. Set Environment Variables
Edit. bash_profile in the oracle main directory
Add the following content:
Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_HOME = $ ORACLE_BASE/product/11.1.0/db_1
Export ORACLE_SID = orcl
Export PATH = $ PATH: $ ORACLE_HOME/bin
9. Install
To run the installation, you must use the oracle user instead of the su-oracle user. Instead, you must use the oracle user to log on to the logon page.
If garbled, you can use the LANG = us_EN.utf-8 to temporarily change the system character environment.