快速安裝CentOS4.7+Oracle 11g

linyu2012發表於2009-09-19

一、安裝虛擬機器

二、安裝CentOS

============================

編輯主機名
vi /etc/hosts
172.16.99.195 oracleasm
=============================

設定開機用文字形式
vi /etc/inittab
3
=============================

檢視安裝軟體包 CenOS4.7
============================
binutils-2.15.92.0.2-18
compat-libstdc++-33.2.3-47.3
elfutils-libelf-0.97-5
elfutils-libelf-devel-0.97-5
glibc-2.3.4-2.19
glibc-common-2.3.4-2.19
glibc-devel-2.3.4-2.19
glibc-headers-2.3.4-2.19
gcc-3.4.5-2
gcc-c++-3.4.5-2
libaio-devel-0.3.105-2
libaio-0.3.105-2
libgcc-3.4.5
libstdc++-3.4.5-2
libstdc++-devel-3.4.5-2
make-3.80-5
sysstat-5.0.5
unixODBC-2.2.11
unixODBC-devel-2.2.11
============================
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
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144

執行生效:/sbin/sysctl -p
==============================
vi /etc/security/limits.conf

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
===============================
vi /etc/pam.d/login

session required /lib/security/pam_limits.so
session required pam_limits.so
==============================
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
===============================
groupadd oinstall
groupadd dba
cd /
mkdir -p /u01/oracle
useradd -g oinstall -G dba -d /u01/oracle oracle
passwd oracle
oracle
oracle
chown -R oracle:oinstall u01
==============================
vi. bash_profile

ORACLE_BASE=/u01
ORACLE_HOME=$ORACLE_BASE/oracle
ORACLE_SID=snowdb
PATH=$ORACLE_HOME/bin:$PATH
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH NLS_LANG

三、安裝Oracle 11g

[@more@]測試。。。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15242702/viewspace-1027147/,如需轉載,請註明出處,否則將追究法律責任。

相關文章