Oracle 11g R2 For RedHat Enterprise Linux 6.3 安装说明书
1.内存要求
[root@js database]# grep MemTotal /proc/meminfo MemTotal: 1906904 kB [root@js database]# grep SwapTotal /proc/meminfo SwapTotal: 4194296 kB
2.存储空间要求
[root@js database]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 36G 12G 22G 35% / tmpfs 932M 264K 931M 1% /dev/shm /dev/sda1 194M 32M 153M 18% /boot
3.安装依赖包
Packages for Oracle Linux 6 and Red Hat Enterprise Linux 6 |
The following packages (or later versions) must be installed: binutils-2.20.51.0.2-5.11.el6 (x86_64) compat-libcap1-1.10-1 (x86_64) compat-libstdc++-33-3.2.3-69.el6 (x86_64) compat-libstdc++-33-3.2.3-69.el6 (i686) gcc-4.4.4-13.el6 (x86_64) gcc-c++-4.4.4-13.el6 (x86_64) glibc-2.12-1.7.el6 (i686) glibc-2.12-1.7.el6 (x86_64) glibc-devel-2.12-1.7.el6 (x86_64) glibc-devel-2.12-1.7.el6 (i686) ksh libgcc-4.4.4-13.el6 (i686) libgcc-4.4.4-13.el6 (x86_64) libstdc++-4.4.4-13.el6 (x86_64) libstdc++-4.4.4-13.el6 (i686) libstdc++-devel-4.4.4-13.el6 (x86_64) libstdc++-devel-4.4.4-13.el6 (i686) libaio-0.3.107-10.el6 (x86_64) libaio-0.3.107-10.el6 (i686) libaio-devel-0.3.107-10.el6 (x86_64) libaio-devel-0.3.107-10.el6 (i686) libXext-1.1 (x86_64) libXext-1.1 (i686) libXtst-1.0.99.2 (x86_64) libXtst-1.0.99.2 (i686) libX11-1.3 (x86_64) libX11-1.3 (i686) libXau-1.0.5 (x86_64) libXau-1.0.5 (i686) libxcb-1.5 (x86_64) libxcb-1.5 (i686) libXi-1.3 (x86_64) libXi-1.3 (i686) make-3.81-19.el6 sysstat-9.0.4-11.el6 (x86_64)
|
首先配置yum源, 见 http://www.cnblogs.com/jusonsummer/p/4842508.html
yum install binutils-* yum install compat-libcap* yum install compat-libstdc++* yum install compat-libstdc++-*.i686 yum install gcc-4.* yum install gcc-c++-4.* yum install glibc-2.* yum install glibc-2*.i686 yum install glibc-devel-2.* yum install glibc-devel-2*.i686 yum install ksh yum install libgcc-4.* yum install libgcc-4.*.i686 yum install libstdc++-4.* yum install libstdc++-4.*.i686 yum install libstdc++-devel-4.* yum install libstdc++-devel-4.*.i686 yum install libaio-* yum install libaio-*.i686 yum install libXext-* yum install libXext-*.i686 yum install libXtst-* yum install libXtst-*.i686 yum install libX11-1.* yum install libX11-1.*.i686 yum install libXau-1* yum install libXau-1*.i686 yum install libxcb-1.* yum install libxcb-1.*.i686 yum install libXi-1.*x86_64 yum install libXi-1.*.i686 yum install make-3.* yum install sysstat-9.*
4.创建用户和组
[root@js ~]# groupadd oinstall [root@js ~]# groupadd dba [root@js ~]# useradd -g oinstall -G dba oracle [root@js ~]# passwd oracle Changing password for user oracle. New password: BAD PASSWORD: it is based on a dictionary word BAD PASSWORD: is too simple Retype new password: passwd: all authentication tokens updated successfully.
5.关闭 SELinux,修改hosts
编辑 SELinux 配置文件 vim /etc/selinux/config,将 SELINUX 的值设为 disabled,需重启机器才能生效。
可以通过 setenforce 0 临时关闭不必重启机器
[root@js ~]# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: disabled
Policy version: 24
Policy from config file: targeted
[root@js ~]# setenforce 0
修改hosts
[root@js ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.3.222 js.fiberhome.com [root@js ~]# hostname js.fiberhome.com
6.配置内核参数和资源限制
内核参数最小值:
Parameter | Minimum Value | File |
---|---|---|
semmsl
|
250
32000 100 128 |
/proc/sys/kernel/sem |
shmall |
40 percent of the size of physical memory in pages
Note: If the server supports multiple databases, or uses a large SGA, then set this parameter to a value that is equal to the total amount of shared memory, in 4K pages, that the system can use at one time |
/proc/sys/kernel/shmall |
shmmax |
Half the size of physical memory in bytes
See My Oracle Support Note 567506.1 for additional information about configuring |
/proc/sys/kernel/shmmax |
shmmni |
4096 | /proc/sys/kernel/shmmni |
panic_on_oops |
1 | /proc/sys/kernel/panic_on_oops |
file -max |
6815744 | /proc/sys/fs/file-max |
ip_local_port_range |
Minimum: 9000
Maximum: 65500 See the "Setting UDP and TCP Kernel Parameters Manually" section in Oracle Database Installation Guide for Linux |
/proc/sys/net/ipv4/ip_local_port_range |
rmem_default |
262144 | /proc/sys/net/core/rmem_default |
rmem_max |
4194304 | /proc/sys/net/core/rmem_max |
wmem_default |
262144 | /proc/sys/net/core/wmem_default |
wmem_max |
1048576 | /proc/sys/net/core/wmem_max |
aio-max-nr |
1048576
Note: This value limits concurrent outstanding requests and should be set to avoid I/O subsystem failures. |
/proc/sys/fs/aio-max-nr |
编辑/etc/sysctl.conf
[root@js ~]# cat /etc/sysctl.conf # Controls the maximum shared segment size, in bytes #kernel.shmmax = 68719476736 kernel.shmmax = 1073741824 # Controls the maximum number of shared memory segments, in pages #kernel.shmall = 4294967296 kernel.shmall = 2097152 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 fs.aio-max-nr = 1048576 fs.file-max = 6815744
使更改生效
[root@js ~]# /sbin/sysctl -p
修改系统资源限制
[root@js ~]# vim /etc/security/limits.conf js.fiberhome.com soft nproc 2047 js.fiberhome.com hard nproc 16384 js.fiberhome.com soft nofile 4096 js.fiberhome.com hard nofile 65536 js.fiberhome.com soft stack 10240 js.fiberhome.com hard stack 32768
7.创建oracle安装目录,配置环境变量
创建目录:
[root@js ~]# mkdir -p /oracle/ora11 [root@js ~]# chown -R oracle:oinstall /oracle/ora11 [root@js ~]# chmod 755 /oracle/ora11 [root@js ~]# mkdir -p /oracle/ora11/oradata [root@js ~]# chown -R oracle:oinstall /oracle/ora11/oradata [root@js ~]# chmod -R 755 /oracle/ora11/oradata [root@js ~]# mkdir -p /oracle/ora11/oraInventory [root@js ~]# chown -R oracle:oinstall /oracle/ora11/oraInventory [root@js ~]# chmod -R 755 /oracle/ora11/oraInventory [root@js ~]# mkdir -p /oracle/ora11/product/11.2.0/dbhome_1 [root@js ~]# chown -R oracle:oinstall /oracle/ora11/product/11.2.0/dbhome_1 [root@js ~]# chmod -R 755 /oracle/ora11/product/11.2.0/dbhome_1
配置环境变量:
[root@js ora11]# su - oracle [oracle@js ~]$ vim /home/oracle/.bash_profile
ORACLE_BASE=/oracle/ora11 ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1 ORACLE_SID=ora11g LD_LIBRARY_PATH=$ORACLE_HOME/lib export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin export PATH
更改生效
[oracle@js ~]$ source /home/oracle/.bash_profile
8.开始安装
上传安装包到/home/oracle,解压
[root@js oracle]# uzip linux.x64_11gR2_database_1of2.zip [root@js oracle]# uzip linux.x64_11gR2_database_2of2.zip
开始安装
[root@js oracle]# chown -R oracle:oinstall /home/oracle/database/ [root@js oracle]# chmod -R 755 /home/oracle/database/ [root@js oracle]# export DISPLAY=:0.0
[root@js oracle]# xhost +
[root@js oracle]# su - oracle
[oracle@js ~]$ cd database/
[oracle@js database] ./runInstaller
接下来就是图形安装了,就不废话了
posted on 2015-09-27 21:43 JusonSummer 阅读(673) 评论(0) 编辑 收藏 举报