| 項目 | 指令/檢查 | 建議值 |
|---|---|---|
| 記憶體 | grep MemTotal /proc/meminfo | ≥ 512 MB (建議 1 GB) |
| Swap | grep SwapTotal /proc/meminfo | ≥ 1 GB |
| /tmp 空間 | df -k /tmp | ≥ 400 MB |
| 磁碟空間 | df -k | ≥ 4 GB |
檢查:rpm -q <套件名>
# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba oracle
# passwd oracle
# id oracle # 驗證群組
# mkdir -p /u01/app/oracle /u02/oradata
# chown -R oracle:oinstall /u01/app/oracle /u02/oradata
# chmod -R 755 /u01/app/oracle /u02/oradata
編輯 /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
套用:# /sbin/sysctl -p
/etc/security/limits.conf:
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
/etc/pam.d/login 新增:
session required /lib/security/pam_limits.so
依 Shell 類型修改 /etc/profile (bash/ksh) 或 /etc/csh.login (csh) 設定 ulimit。
su - oraclexhost + (確認 X Window).bash_profile:umask 022ORACLE_BASE=/u01/app/oracleORACLE_SID=salesexport ORACLE_BASE ORACLE_SIDunset ORACLE_HOME; unset TNS_ADMIN. ./.bash_profile 套用並驗證 env | grep ORACLE$ cd /tmp
$ /mnt/cdrom/runInstaller
依圖形介面精靈完成安裝。