下载软件包
Oracle Database 10g Release 2 (10.2.0.1) Software
openmotif21-2.1.30-14.i386.rpm
解压软件包(unzip 10201_database_linux32.zip)
修改Hosts文件
<机器全名(机器名.域名)> <机器名(缩写)>
设置内核参数(在/etc/sysctl.conf)
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
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
然后运行下面命令,使上面的设置生效
/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
禁用SELINUX,编辑/etc/selinux/config,将SELINUX设置为SELINUX=disabled
安装下面软件包
# 从 Fedora Core 6 DVD 光盘文件
cd /media/dvd/Fedora/RPMS
rpm -Uvh setarch-*
rpm -Uvh --force tcl-*
rpm -Uvh --force libXau-devel-* libXp-*
rpm -Uvh compat-db-*
rpm -Uvh compat-libstdc++-33*
rpm -Uvh compat-libf2c-34-*
rpm -Uvh compat-gcc-34-*
rpm -Uvh libaio-*
rpm -Uvh compat-gcc-34-c++-*
rpm -Uvh compat-libstdc++-296*
rpm -Uvh compat-libgcc-296*
# 从上面网址下载
rpm -Uvh openmotif21-2.1.30-14.i386.rpm
添加用户组和用户
groupadd oinstall
groupadd dba
groupadd oper
useradd -g oinstall -G dba oracle
passwd oracle
创建Oracle安装文件夹
mkdir -p /u01/app/oracle/product/10.2.0/db_1
chown -R oracle.oinstall /u01
用root用户登陆,并执行下列命令:
xhost +
编辑/etc/redhat-release文件并将(Fedora Core release 6 (Zod))用下面内容替换:
redhat-4
用oracle用户登陆并将下面内容添加到.bash_profile文件中:
# Oracle Settings TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME ORACLE_SID=TSH1; export ORACLE_SID ORACLE_TERM=xterm; export ORACLE_TERM export BULILD_CCC296=1 PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; 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
if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi |
安装数据库
用oracle用户登陆,切换到刚才解压的目录下,运行:
./runInstaller
最后按照界面操作就可以将数据库安装成功了
将/etc/redhat-release改为原来的发行号(Fedora Core release 6 (Zod))
修改/etc/oratab将所需启动的实例修改为Y
TSH1:/u01/app/oracle/product/10.2.0/db_1:Y