CentOS5.5安装oracle10g - 图文

更新时间:2023-12-07 18:29:01 阅读量: 教育文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

数据库Oracle10.2.0.1.0版本在CentOS5.5安装文档

1 安装前的配置

1.1 安装Oracle的环境

centOS5.5默认安装,/opt单独分区,以供oracle安装使用。

/opt/setup/目录:安装文件10201_database_linux32.zip放在该目录。 /opt/app/oracle/目录:为Oracle安装的ORACLE_BASE

1.2 查询所需安装包是否完整 进入系统,用root用户,终端命令:

# rpm -q gcc make binutils openmotif setarch compat-db compat-gcc compat-gcc-c++ compat-libstdc++ compatlibstdc++- devel

运行结果如图:

gcc-4.1.1-52.el5 make-3.81-1.1

binutils-2.17.50.0.6-2.el5

package openmotif is not installed setarch-2.0-1.1

package compat-db is not installed package compat-gcc is not installed package compat-gcc-c++ is not installed package compat-libstdc++ is not installed

package compat-libstdc++-devel is not installed

缺少的都需要安装相关的软件包, DVD安装光盘中,请参考安装下面的包: # 从DVD安装光盘中( 按照以下的顺序安装) rpm -Uvh compat-db-4* rpm -Uvh libaio-0*

rpm -Uvh compat-libstdc++-33-3* rpm -Uvh compat-gcc-34-3* rpm -Uvh compat-gcc-34-c++-3* rpm -Uvh libXp-1* rpm -Uvh openmotif-2* rpm -Uvh gcc-4*

rpm -Uvh glibc-2.5-12.i686.rpm

然后在检查需要的软件包是否都安装成功。 注:

[root@zjinterface Server]# rpm -q gcc make binutils openmotif setarch compat-db compat-gcc compat-gcc-c++ compat-libstdc++ compat-libstdc++-devel gcc-4.1.1-52.el5 make-3.81-1.1

binutils-2.17.50.0.6-2.el5 openmotif-2.3.0-0.3.el5 setarch-2.0-1.1

compat-db-4.2.52-5.1

package compat-gcc is not installed package compat-gcc-c++ is not installed package compat-libstdc++ is not installed

package compat-libstdc++-devel is not installed [root@zjinterface Server]#

注:安装后一直都是报libstdc以及gcc-c没有安装 实际上已经安装成功了不知道为什么这样

1.3 OS参数要求vi /etc/sysctl.conf , 在行末添加以下内容

#use for oracle

kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096

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

再运行sysctl -p应用以上参数 如图:

[root@zjinterface Server]# sysctl -p net.ipv4.ip_forward = 0

net.ipv4.conf.default.rp_filter = 1

net.ipv4.conf.default.accept_source_route = 0 kernel.sysrq = 0

kernel.core_uses_pid = 1 net.ipv4.tcp_syncookies = 1 kernel.msgmnb = 65536 kernel.msgmax = 65536

kernel.shmmax = 4294967295 kernel.shmall = 268435456 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096

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

1.4 vi /etc/security/limits.conf 行末添加以下内容 #use for oracle

* soft nproc 2047 * hard nproc 16384 * soft nofile 1024 * hard nofile 65536 如图:

1.5 vi /etc/selinux/config 确保以下内容

SELINUX=disabled SELINUXTYPE=disabled 关闭SELIINUX 如图:

本文来源:https://www.bwwdw.com/article/ez6t.html

Top