下载软件包
Oracle Database 10g Release 2 (10.2.0.1) Software
openmotif21-2.1.30-14.i386.rpm
解压软件包(unzip 10201_database_linux32.zip)
修改Hosts文件
Now we have to make Oracle installer think that we have one of the supported distributions: Create a backup of your /etc/redhat-release file, an change its contents:
# cp /etc/redhat-release /etc/redhat-release.orig
# echo "Red Hat Enterprise Linux AS release 3 (Taroon)" > /etc/redhat-release
Change kernel parameters by adding the following lines in /etc/sysctl.conf:
Oracle Database 10g Release 2 (10.2.0.1) Software
openmotif21-2.1.30-14.i386.rpm
解压软件包(unzip 10201_database_linux32.zip)
修改Hosts文件
Now we have to make Oracle installer think that we have one of the supported distributions: Create a backup of your /etc/redhat-release file, an change its contents:
# cp /etc/redhat-release /etc/redhat-release.orig
# echo "Red Hat Enterprise Linux AS release 3 (Taroon)" > /etc/redhat-release
Change kernel parameters by adding the following lines in /etc/sysctl.conf:
QUOTE: |
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 文件中:
QUOTE: |
* soft nproc 2047 * hard nproc 16384 * soft nofile 1024 * hard nofile 65536 |
将下面几行添加到/etc/pam.d/login文件中:
QUOTE: |
session required /lib/security/pam_limits.so |
禁用SELINUX,编辑/etc/selinux/config,将SELINUX设置为SELINUX=disabled
安装下面软件包
QUOTE: |
# 从 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文件中:
QUOTE: |
# 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 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
到此数据库安装就大功告成了.
原文链接:http://unix-cd.com/unixcd12/article_6706.html
相关文章(英文):http://www.seeitco.com/doc/Html/DataBasc/105624441.html Oralcle 10g Fedora Core X上快速安装指南