Home > Database > Mysql Tutorial > body text

centos 5.0中成功安装Oracle10201(10g)

WBOY
Release: 2016-06-07 16:51:35
Original
822 people have browsed it

环境:1.安装CENTOS 5.0安装CentOs5.0 时,如果服务器只是运行Oracle数据库的话,在安装CentOs5.0 时一定要选择安装gnome,开发工具包,遗留

环境:

1.安装CentOS 5.0
安装CentOs5.0 时,如果服务器只是运行Oracle数据库的话,在安装CentOs5.0 时一定要选择安装gnome,开发工具包,遗留开发包,,其他一些包可以不选择安装。

2.查询所需安装包是否完整
rpm -q gcc make binutils openmotif setarch compat-db compat-gcc compat-gcc-c++
compat-libstdc++ compat-libstdc++-devel libaio
可能还需要以下一些包,在安装的过程中根据包依赖的关系,把所依赖的包安装上:
compat-db-4.2.52-5.1.i386.rpm
libjpeg-devel-6b-37.i386.rpm
libpng-devel-1.2.10-7.i386.rpm
libX11-devel-1.0.3-8.el5.i386.rpm
libXau-devel-1.0.1-3.1.i386.rpm
libXdmcp-devel-1.0.1-2.1.i386.rpm
libXft-devel-2.1.10-1.1.i386.rpm
libXmu-1.0.2-5.i386.rpm
libXmu-devel-1.0.2-5.i386.rpm
libXp-1.0.0-8.i386.rpm
libXp-devel-1.0.0-8.i386.rpm
libXpm-3.5.5-3.i386.rpm
libXpm-devel-3.5.5-3.i386.rpm
libXt-devel-1.0.2-3.1.fc6.i386.rpm
mesa-libGL-devel-6.5.1-7.2.el5.i386.rpm
openmotif-2.3.0-0.3.el5.i386.rpm
openmotif-devel-2.3.0-0.3.el5.i386.rpm
openmotif22-2.2.3-18.i386.rpm
perl-libxml-perl-0.08-1.2.1.noarch.rpm
setarch-2.0-1.1.i386.rpm
xorg-x11-proto-devel-7.1-9.el5.centos.i386.rpm

3.检查内存和磁盘
grep MemTotal /proc/meminfo
MemTotal:512236 kB
grep SwapTotal /proc/meminfo
SwapTotal:1574360 kB
df -h

4.kernel参数修改vi /etc/sysctl.conf , 在行末添加以下内容,在CentOs5.0上会看到
kernel.shmmax = 4294967295
kernel.shmall = 268435456这些参数已经存在并且默认启用了,
需要将原kernel.shmmax与kernel.shmall参数注释掉。并在文件末尾添加以下内容:
#use for oracle10g
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应用以上参数
另外在安装oracle数据库的时候要注意/etc/hosts与/etc/sysconfig/network文件主机名的一致性,
否则会在后面运行netca和dbca可能出现错误提示。
例如:/etc/hosts文件内容如下:
192.168.164.129 mail.boson.com
127.0.0.1 localhost.localdomain localhost

/etc/sysconfig/network内容如下:
#NETWORKING_IPV6=yes //该行已经注释
NETWORKING=yes
HOSTNAME=mail.boson.com

5.vi /etc/security/limits.conf 在文件末尾添加以下内容
#use for oracle10g
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template