Archive for 四月 26th, 2011

1. 解压安装文件
unzip 10201_database_linux32.zip
chmod -R 777 /opt
chown -R oracle.oinstall /opt

2. 修改 /etc/hosts
本机IP地址          主机名         localhost
192.168.1.210        linuxserver     localhost

3. 设置内核参数/etc/sysctl.conf
# This is Oracle 10g sysctl Kernel Setting by heweilong 20110415
# 可以使用的共享内存的总量 (最小内存)
kernel.shmall = 2097152
# 最大共享内存段大小 (内存大小)
kernel.shmmax = 1073741824
# 整个系统共享内存段的最大数目 (4096)
kernel.shmmni = 4096
# 每个信号对象集的最大信号对象数;系统范围内最大信号对象数;每个信号对象支持的最大操作数;系统范围内最大信号对象集数 (250 32000 100 128)
kernel.sem = 5010 641280 5010 128
# 系统中所允许的文件句柄最大数目 (65536)
fs.file-max = 65536
# 应用程序可使用的IPv4端口范围 (1024 65000)
net.ipv4.ip_local_port_range = 1024 65000
# 套接字接收缓冲区大小的缺省值  (262144)
net.core.rmem_default = 1048576
# 套接字接收缓冲区大小的最大值 (262144)
net.core.rmem_max = 1048576
# 套接字发送缓冲区大小的缺省值 (262144)
net.core.wmem_default = 262144
# 套接字发送缓冲区大小的最大值 (262144)
net.core.wmem_max = 262144
# 禁止ping主机 (0)
# net.ipv4.icmp_echo_ignore_all = 1

执行生效
# /sbin/sysctl  -p

4. 编辑/etc/security/limits.conf  添加
oracle    soft        nproc    2047
oracle    hard        nproc    16384
oracle    soft        nofile    1024
oracle    hard        nofile    65536
or
*    soft        nproc    2047
*    hard        nproc    16384
*    soft        nofile    1024
*    hard        nofile    65536

5.  编辑/etc/pam.d/login 添加
session    required     pam_limits.so

6. 修改/etc/selinux/config文件
SELINUX=disabled (more…)