| 掛載點 | 檔案系統 | 大小(MB) |
|---|---|---|
| / | ext3 | 39911 |
| swap | swap | 1024 |
199.0.0.230/24,Gateway 199.0.0.1,DNS 202.103.96.68/112Linuxsvrlibaio-devel-0.3.103-3.i386.rpm(第三張光碟)/etc/sysctl.confkernel.shmall = 2097152
kernel.shmmax = 536870912
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 = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
套用:sysctl -p
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
mkdir -p /oracle/product/10.2.0
chown -R oracle:oinstall /oracle
chmod -R 775 /oracle
~/.bash_profileumask 022
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0; export ORACLE_HOME
ORACLE_SID=fstest; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
# LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL # 視 glibc 版本決定
生效:source ~/.bash_profile 或重新登入
$ /home/oracle/database/runInstaller/oracle/oraInventory, Group: oinstallOraDb10g_home1, Path: /oracle/product/10.2.0fstest, SID: fstest, Charset: ZHS16GBK/oracle/product/10.2.0/oradataorainstRoot.sh、root.sh(root)https://Linuxsvr:5560/isqlplushttps://Linuxsvr:5560/isqlplus/dbahttps://Linuxsvr:1158/em (SYS/SYSDBA)# 啟動/關閉資料庫
sqlplus "sys/pass AS SYSDBA"
SQL> STARTUP
SQL> SHUTDOWN
# 監聽器
lsnrctl
LSNRCTL> START
LSNRCTL> STOP
/etc/init.d/dbora#!/bin/sh
# chkconfig: - 20 80
ORA_HOME=/oracle/product/10.2.0
ORA_OWNER=oracle
case "$1" in
'start')
su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart"
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start"
;;
'stop')
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop"
su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut"
;;
'restart')
$0 stop; $0 start
;;
esac
chmod 750 /etc/init.d/dbora
ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora
chkconfig --level 345 dbora on
RedHat AS4 + Oracle 10g R2 部署關鍵在於核心參數預調、libaio-devel 預裝、oraInventory/權限規劃、自動啟動腳本 chkconfig 整合。將上述步驟封裝為 Kickstart + 期望狀態配置,可實現標準化批量交付。