本文記錄在 CentOS 6.3 (x86_64) 上安裝 Oracle 10g Release 2 的完整前置作業與安裝流程,包含核心參數調整、套件安裝、使用者建立、環境變數設定等關鍵步驟。
/etc/selinux/config 設 SELINUX=disabled 並重啟,或暫時 setenforce 0)。service iptables stop / chkconfig iptables off)。yum -y install binutils compat-libstdc++-33 compat-libstdc++-33.i686 \ elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc.i686 \ glibc-common glibc-devel glibc-devel.i686 glibc-headers ksh \ libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libgcc.i686 \ libstdc++ libstdc++.i686 libstdc++-devel make sysstat libXp
groupadd oinstall groupadd dba useradd -m -g oinstall -G dba oracle passwd oracle
visudo 加入 oracle ALL=(ALL) ALL)。/etc/sysctl.conf):
kernel.shmall = 4294967296 kernel.shmmax = 68719476736 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 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套用:
sysctl -p
/etc/security/limits.conf):
oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536
/etc/pam.d/login 加入 session required pam_limits.so)。/etc/profile 針對 oracle 使用者設定 ulimit)。/etc/redhat-release 改為 redhat 4),讓 10g 安裝程式通過平台檢查。mkdir -p /opt/oracle/102 chown -R oracle:dba /opt/oracle
export ORACLE_BASE=/opt/oracle export ORACLE_HOME=$ORACLE_BASE/102 export ORACLE_SID=orcl export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
database 目錄執行 ./runInstaller。./runInstaller 選擇 Patch 升級)。















