enterprise|oracle
1)硬件环境
至少512mb RAM,但是256mb由于测试足够了
硬盘至少要6G(2G系统+4G数据库)
2)安装RHEL3ASU2
选择最小安装,大概500多mb吧
关掉防火墙
固定IP,不要DHCP
swap是RAM的两倍,且至少是400mb
3)解压缩安装文件
zcat ship_9204_linux_disk1.cpio.gz | cpio -idmv
zcat ship_9204_linux_disk2.cpio.gz | cpio -idmv
zcat ship_9204_linux_disk3.cpio.gz | cpio -idmv
4)环境设置
echo "kernel.shmmax=2147483648" >> /etc/sysctl.conf
5)安装编译包
rpm -Uvh cpp-3.2.3-34.i386.rpm \
gcc-3.2.3-34.i386.rpm \
glibc-devel-2.3.2-95.20.i386.rpm \
glibc-headers-2.3.2-95.20.i386.rpm \
glibc-kernheaders-2.4-8.34.i386.rpm \
compat-libstdc++-7.3-2.96.128.i386.rpm
6)添加用户
groupadd dba
groupadd oinstall
useradd -g oinstall -G dba oracle
passwd oracle
7)建立安装目录
mkdir /u01/oracle/product/9.2.0 -p
chown -R oracle.oinstall /u01/oracle
8)配置环境变量
编辑/home/oracle/.bash_profile,添加
# Use the "Linuxthreads with floating stacks" implementation instead of NPTL:
export LD_ASSUME_KERNEL=2.4.1
# Oracle Environment
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=/u01/oracle/product/9.2.0
export ORACLE_SID=test
export ORACLE_TERM=xterm
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK;
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
# Set shell search paths
export PATH=$PATH:$ORACLE_HOME/bin