1、至少1G物理内存;检查命令:# grep MemTotal /proc/meminfo
2、交换空间的设置;检查命令:# grep SwapTotal /proc/meminfo
实际内存 建议交换空间大小
-------------- -----------------------------
不超过1G 2倍于内存
1G-2G 1.5倍于内存
2G-8G 与内存相同
超过8G 0.75倍于内存
3、/tmp目录至少400M空闲空间;检查命令:# df -k /tmp
4、oracle软件所需空间至少3G;检查命令:# df -k
5、数据库文件所需空间1.2G左右;检查命令:# df -k
6、确认系统架构(主要确认是装32bit还是64bit版本);检查命令:# grep "model name" /proc/cpuinfo
7、确认Linux版本;检查命令:# more /etc/issue
8、确认Linux内核;检查命令:# uname -r
二、准备工作
检查安装oracle10g的依赖包是否存在,如没有则安装
# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})n' binutils compat-db compat-libstdc++-296 control-center gcc gcc-c++ glibc glibc-common gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver setarch
应该包含下列的包:
grep MemTotal /proc/meminfo grep SwapTotal /proc/meminfo 例如: # grep MemTotal /proc/meminfo MemTotal:512236 kB # grep SwapTotal /proc/meminfo SwapTotal:1574360 kB
df -h 例如: # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 6.8G 1.3G 5.2G 20% / /dev/sda1 99M 17M 77M 18% /boot
groupadd dba
mkdir -p /u01/oracle
useradd -g oinstall -G dba -d /u01/oracle oracle
passwd oracle
/]#chown -R oracle:oinstall u01
/]#ls -l
缺省存在的。如果不存在 # /usr/sbin/useradd -g nobody
========================================
vi /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
cat >> /etc/sysctl.conf <<EOF 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 EOF /sbin/sysctl -p 例如: # cat >> /etc/sysctl.conf <<EOF > 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 > EOF # /sbin/sysctl -p net.ipv4.ip_forward = 0 net.ipv4.conf.default.rp_filter = 1 kernel.sysrq = 0 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
/sbin/sysctl -a | grep shm /sbin/sysctl -a | grep sem /sbin/sysctl -a | grep file-max /sbin/sysctl -a | grep ip_local_port_range 例如: # /sbin/sysctl -a | grep shm kernel.shmmni = 4096 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shm-use-bigpages = 0 # /sbin/sysctl -a | grep sem kernel.sem = 250 32000 100 128 # /sbin/sysctl -a | grep file-max fs.file-max = 65536 # /sbin/sysctl -a | grep ip_local_port_range net.ipv4.ip_local_port_range = 1024 65000
/sbin/sysctl -p
vi /etc/security/limits.conf
oracle
oracle
oracle
------------
vi /etc/pam.d/login
=================================================
ls -la
vi .bash_profile
ORACLE_HOME=$ORACLE_BASE/oracle
ORACLE_SID=wilson
PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
ls -l
修改配置比较多东西, 重启一下系统,然后接着 就开始安装了,