Red Flag 5.0 (基於 Red Hat) 安裝 Oracle 10.1.0.3 完整步驟,含修補套件、核心參數、用戶建立、靜默安裝、DBCA/NetCA 建庫配置、中文環境處理。
rpm -ivh compat-libstdc++-7.3-2.96.118.i386.rpm (Red Hat 9 光碟)sh rhel3_pre_install.sh (解決 JRE 問題)。rpm -ivh oracleasm-support-1.0.2-1.i386.rpm oracleasmlib-1.0.0-1.i386.rpm
echo "Red Hat Enterprise Linux AS release 2.1 (Nahant Update 1)" > /etc/redhat-release/etc/security/limits.conf: oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 /etc/sysctl.conf: kernel.sem = 256 32000 100 128 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.shmall = 2097152 fs.file-max = 65536 # sysctl -p 生效
groupadd dba; groupadd oinstall useradd -g oinstall -G dba oracle passwd oracle
su - root; xhost + 127.0.0.1 su - oracle; xhost + 127.0.0.1 export LANG=en ./runInstaller -- 選擇「不建立資料庫」 -- 安裝過程 root 執行 oraInstRoot.sh、root.sh -- 忽略 gcc 版本檢查警告
dbca 建立資料庫 (英文介面避免中文亂碼)。netca 配置預設監聽器 (安裝後未自動建立)。/home/oracle/.bash_profile 或 /etc/profile 設定 ORACLE_HOME、ORACLE_SID。lsnrctl start → sqlplus / as sysdba → startup。/etc/oratab + dbstart)。