在redhat linux as 5上安装oracle 10g

问题提出:

oracle 10g 在redhat linux as 5上安装时,系统检测无法通过。

解决办法:

1、修改/etc/redhat-realease

将 Red Hat Enterprise Linux Server release 5 (Tikanga) 改为Red Hat Enterprise Linux Server release 4 (Tikanga)

2、修改内核参数

增加下面的内容到文件 /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

3、使内核参数生效

/sbin/sysctl  -p

4、修改/etc/security/limits.conf文件,增加下面内容

*               soft    nproc   2047
*               hard    nproc   16384
*               soft    nofile  1024
*               hard    nofile  65536

5、修改/etc/pam.d/login,增加下面内容

session  required  /lib/security/pam_limits.so

6、修改/etc/selinux/config,使secure linux无效

SELINUX=disabled

7、检查并安装下列系统包

rpm  -Uvh  

binutils-2.17.50.0.6-2.el5
compat-gcc-34-3.4.6-4
compat-gcc-34-c++-3.4.6-4
compat-libstdc++-33-3.2.3-61
control-center-2.16.0-14.el5
gcc-4.1.1-52
gcc-c++-4.1.1-52
gdbm-1.8.0-26.2.1
glibc-2.5-12
glibc-common-2.5-12
glibc-devel-2.5-12
libaio-0.3.96-3
libgcc-4.1.1-52
libgnome-2.16.0-6.el5
libstdc++-devel-3.4.3-22.1
libXp-1.0.0-8.i386
make-3.81-1.1
sysstat-5.0.5-1
util-linux-2.13-0.44.e15

8、创建oracle用户及组

groupadd   oinstall

groupadd   dba

groupadd  oper

useradd -g oinstall  -G dba,oper  oracle

passwd oracle

9、创建oracle安装目录,并将权限赋予oracle用户

mkdir -p  /u01/app/oracle/product/10.2.0/db_1

chown  -R  oracle:oinstall  /u01

chmod   -R  775  /u01

10、设置oracle用户的.bash_profile文件

vi   /home/oracle/.bash_profile

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

ORACLE_BASE=/u01/app/oracle;export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;export ORACLE_HOME
ORACLE_SID=orcl;export ORACLE_SID

PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/usr/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
LANG='en_US';export LANG

11、以oracle用户登录,进入安装程序所在目录运行 ./runInstaller

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10537377/viewspace-609816/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10537377/viewspace-609816/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值