一、 环境要求与准备 1、硬件要求
(1)内存
Minimum: 1 GB of RAM
Recommended: 2 GB of RAM or more
To determine the RAM size, enter the following command:
# grep MemTotal /proc/meminfo
(2)SWAP
Available RAM Swap Space Required
Between 1 GB and 2 GB 1.5 ——times the size of the RAM
Between 2 GB and 16 GB ——Equal to the size of the RAM
More than 16 GB ——16 GB
# grep SwapTotal /proc/meminfo
(3)ASM
Automatic Memory Management feature requires more shared memory ( /dev/shm) and file descriptors
#df -h /dev/shm/
Note: MEMORY_MAX_TARGET and MEMORY_TARGET cannot be used when LOCK_SGA is enabled or with HugePages on Linux.
(4)磁盘空间
At least 1 GB of disk space in the /tmp directory
Enterprise Edition ——At least 4.7 GB for Software Files and 1.7 GB for Data Files
Standard Edition ——At least 4.6 GB for Software Files and 1.5 GB for Data Files
2、软件要求
(1)操作系统要求
■ Asianux Server 3 SP2
■ Asianux Server 4 SP3
■ Oracle Linux 4 Update 7
■ Oracle Linux 5 Update 2 (with Red Hat Compatible Kernel)
■ Oracle Linux 5 Update 5
■ Oracle Linux 6
■ Oracle Linux 6 (with Red Hat Compatible Kernel)
■ Oracle Linux 7
■ Oracle Linux 7 (with the Red Hat Compatible Kernel)
■ Red Hat Enterprise Linux 4 Update 7
■ Red Hat Enterprise Linux 5 Update 2
■ Red Hat Enterprise Linux 6
■ Red Hat Enterprise Linux 7
■ SUSE Linux Enterprise Server 10 SP2
■ SUSE Linux Enterprise Server 11
(2)内核要求
■On Red Hat Enterprise Linux 5 Update 5
2.6.18 or later
■On Red Hat Enterprise Linux 6
2.6.32-71.el6.x86_64 or later
■ On Red Hat Enterprise Linux 7
3.10.0-54.0.1.el7.x86_64 or later
(3)依赖包要求 Note: Starting with Oracle Database 11g Release 2 (11.2.0.2), all the 32-bit packages, except for gcc-32bit-4.3 , listed in the following table are no longer required for installing a database on Linux x86-64. Only the 64-bit packages are required. However, for any Oracle Database 11g release before 11.2.0.2, both the 32-bit and 64-bit packages listed in the following table are required.
The following or later version of packages for Oracle Linux 6, Red Hat Enterprise Linux 6, and Asianux Server 4 must be installed:
(4)ODBC要求
On Oracle Linux 6, Red Hat Enterprise Linux 6:
unixODBC-2.2.14-11.el6 (x86_64) or later
unixODBC-2.2.14-11.el6.i686 or later
unixODBC-devel-2.2.14-11.el6 (x86_64) or later
unixODBC-devel-2.2.14-11.el6.i686 or later
3、用户和组要求
The following local operating system groups and users are required if you are installing Oracle Database:
■ The Oracle Inventory group (typically, oinstall )
■ The OSDBA group (typically, dba )
■ The Oracle software owner (typically, oracle )
■ The OSOPER group (optional. Typically, oper )
# grep dba /etc/group
# id oracle
#groupadd dba
#groupadd oinstall
If the oracle user exists:
# /usr/sbin/usermod -g oinstall -G dba oracle
If the oracle user does not exist:
# /usr/sbin/useradd -g oinstall -G dba oracle
set the password:
# passwd oracle
4、内核参数要求
Note: If the current value of any parameter is higher than the value listed in this table, then do not change the value of that parameter.本文原始出处:江健龙的技术博客http://jiangjianlong.blog.51cto.com/3735273/1832986 修改方法:
create or edit the /etc/sysctl.conf file, and add or edit lines similar to the following:
Note: if any of the current values are larger than the
minimum value, then specify the larger value。
使生效:
# /sbin/sysctl -p或reboot
如果运行 #sysctl -p 命令报错
error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
error: "net.bridge.bridge-nf-call-iptables" is an unknown key
error: "net.bridge.bridge-nf-call-arptables" is an unknown key
则解决方法为执行如下命令:
#modprobe bridge
8、编辑/etc/profile vi /etc/profile
末尾加入:
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
本文原始出处:江健龙的技术博客http://jiangjianlong.blog.51cto.com/3735273/1832986
二、 静默安装Oracle 软件和监听 1、静默安装命令
$ /directory_path/runInstaller [-silent] [-noconfig] -responseFile responsefilename
■-noconfig suppresses running the configuration assistants during installation,
and a software-only installation is performed instead.
■ responsefilename is the full path and file name of the installation response
file that you configured.