Fedora Core 6下Oracle 10G的安装

下载软件包

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:
<script type="text/javascript"> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script>
QUOTE:
<script type="text/javascript"> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script> width="728" scrolling="no" height="15" frameborder="0" allowtransparency="true" hspace="0" vspace="0" marginheight="0" marginwidth="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-3707276699544226&dt=1178384149997&lmt=1178384136&prev_fmts=468x60_as%2C728x90_as&format=728x15_0ads_al_s&output=html&url=http%3A%2F%2Funix-cd.com%2Funixcd12%2Farticle_6706.html&cc=100&flash=9&u_h=900&u_w=1440&u_ah=869&u_aw=1440&u_cd=24&u_tz=480&u_his=1&u_java=true&u_nplug=7&u_nmime=49" name="google_ads_frame">
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:
<script type="text/javascript">  </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
* 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上快速安装指南

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值