一,检查硬件需求:
1,物理内存:至少1G的物理内存
2,SWAP分区:(swap分区与物理内存的关系)
RAM Swap Space
-------------------------------------------- ---------------------------------------
Up to 512 MB 2 times the size of RAM
Between 1024 MB and 2048 MB 1.5 times the size of RAM
Between 2049 MB and 8192 MB Equal to the size of RAM
More than 8192 MB 0.75 times the size of RAM
3,/tmp:至少400M
4,磁盘空间:至少4G
检查内存:
# grep MemTotal /proc/meminfo
检查交换分区:
# grep SwapTotal /proc/meminfo
检查/tmp临时文件夹的空余空间:
# df -k /tmp 或df -h /tmp
检查磁盘剩余空间大小:
# df -k 或df -h
二,检查软件环境:
1,软件环境要求:
操作系统版本:Red Hat Enterprise Linux 4.0 (Update 1 or later)
内核版本:Red Hat Enterprise Linux 4.0的内核版本为2.6.9-11.EL (or later)
软件包:Red Hat Enterprise Linux 4.0:
binutils-2.15.92.0.2-10.EL4
compat-db-4.1.25-9
control-center-2.8.0-12
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
glibc-2.3.4-2
glibc-common-2.3.4-2
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2
检查操作系统的版本:# cat /proc/version
检查操作系统的内核:# uname -r
检查安装Oracle 10g的操作系统安装包是否全部安装:
#rpm -q binutils-2.15.92.0.2-10.EL4
#rpm -q compat-db-4.1.25-9
#rpm -q control-center-2.8.0-12
#rpm -q gcc-3.4.3-9.EL4
#rpm -q gcc-c++-3.4.3-9.EL4
#rpm -q glibc-2.3.4-2
#rpm -q glibc-common-2.3.4-2
#rpm -q gnome-libs-1.4.1.2.90-44.1
#rpm -q libstdc++-3.4.3-9.EL4
#rpm -q libstdc++-devel-3.4.3-9.EL4
#rpm -q make-3.80-5
#rpm -q pdksh-5.2.14-30
#rpm -q sysstat-5.0.5-1
#rpm -q xscreensaver-4.18-5.rhel4.2
如果有没有安装的包,执行rpm -ivh package_name(安装包的包名)
三,创建操作系统组和用户
1,检查dba组是否存在
# grep dba /etc/group
如果不存在,创建oinstall和dba组
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
2,检查Oracle用户是否存在
# id oracle
如果不存在,添加Oracle用户并指定相应的组
# /usr/sbin/useradd -g oinstall -G dba oracle
3,修改Oracle密码
# passwd oracle
四,配置内核参数
1,在 /etc/sysctl.conf配置文件中添加下列行:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
修改完以后执行 #/sbin/sysctl -p 来生效
2,在配置文件 /etc/security/limits.conf 加入下列行:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
3,在配置文件/etc/pam.d/login加入下列行:
session required pam_limits.so
4,在配置文件 /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
五,创建目录:
1,创建目录:
#mkdir -p /u01/app/oracle
2,修改属组:
#chown -R oracle:oinstall /u01/app/oracle
3,修改目录权限:
chmod -R 775 /u01/app/oracle
六,配置Oracle用户环境变量:
$ su - oracle
$ vi .bash_profile
umask 022
export TMP=/tmp
export PATH
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0
export ORACLE_SID=orcl
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
保存以后执行 $ . ./.bash_profile生效。
七,安装Oracle软件
1,解压软件包
#su - oracle
$ unzip 10201_database_linux_x86_64.zip
2,进入解压目录,安装oracle
$cd database
$./runInstall
------------------------------------------------------------------------------------------------------------------------------------------------------
在安装oracle 10gR2时,会检验操作系统是否符合先决条件,如果检测操作系统版本不符合要求,可以用以下两个方法解决。
方法1:安装时加 ignoreSysPrereqs参数可以跳过操作系统检测
$./runinstaller -ignoreSysPrereqs
方法2:修改/etc/redhat-release里的值
如果是 Oracle Linux 5 and Red Hat Enterprise Linux 5
|
Original Value
|
Changed
Value
|
|
Enterprise Release Enterprise Linux server
release 5
|
Enterprise Release Enterprise Linux
server release 4
|
|
(On
Oracle Linux 5)
|
|
Red Hat Enterprise Linux server release 5
|
Red Hat Enterprise Linux server
release 4
|
|
(On Red
Hat Enterprise Linux 5)
|
如果是SUSE Linux Enterprise Server 10 and SUSE Linux Enterprise Server 11
|
Original Value
|
Changed
Value
|
|
SUSE Linux Enterprise Server 10 (x86_64)
|
SUSE Linux Enterprise Server 9 (x86_64)
|
|
VERSION
= 10
|
VERSION = 9
|
|
SUSE Linux Enterprise Server 11 (x86_64)
|
SUSE Linux Enterprise Server 9 (x86_64)
|
|
VERSION
= 11
|
VERSION = 9
|
参考:http://docs.oracle.com/cd/B19306_01/install.102/b15668/toc.htm#BAGIBAAD
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25373498/viewspace-1261520/
,如需转载,请注明出处,否则将追究法律责任。