Home  >  Article  >  Database  >  RHEL5.3 安装Oracle 11g

RHEL5.3 安装Oracle 11g

WBOY
WBOYOriginal
2016-06-07 16:55:38862browse

建议,安装系统的时候将硬盘空间大于等于10G,可以单独弄一个大的分区来存放oracle安装后的程序,我此次实验系统共总就10G,完成

建议,安装系统的时候将硬盘空间大于等于10G,可以单独弄一个大的分区来存放Oracle安装后的程序,我此次实验系统共总就10G,完成的时候很险,差一点不够,,安装oracle 11g 提示是需要3.4G,而我只有3.6G了。。。。

一、检查硬件需求

1、检查内存空间大小

[root@tech_002 ~]# grep MemTotal /proc/meminfo
MemTotal: 3041772 kB    

2、查看交换分区swap


[root@tech_002 home]# grep SwapTotal

/proc/meminfo SwapTotal: 2031608 kB


3、假如交换分区空间不够,可以增加

创建/home/swap这么一个分区文件。文件的大小是5120000个block,一般情况下1个block为1K,所以这里空间是5G。 

dd if=/dev/zero of=/home/swap bs=1024 count=5120000
5120000+0 records in
5120000+0 records out
5242880000 bytes (5.2 GB) copied, 39.3974 seconds, 133 MB/s

接着再把这个分区变成swap分区。 

[root@tech_002 home]# /sbin/mkswap /home/swap

Setting up swapspace version 1, size = 5242875 kB

然后把它加到fstab里面

[root@tech_002 home]# echo "/home/swap swap swap defaults 0 0" >> /etc/fstab ; cat /etc/fstab

/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/home/swap swap swap defaults 0 0

4、oracle 11g 所必须的安装包


[root@tech_002 ~]# rpm -q binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc- gcc-c++ libaio-devel libaio libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel
binutils-2.17.50.0.6-9.el5
compat-libstdc++-33-3.2.3-61
elfutils-libelf-0.137-3.el5
elfutils-libelf-devel-0.137-3.el5
glibc-2.5-34
glibc-common-2.5-34
glibc-devel-2.5-34
gcc-4.1.2-44.el5
gcc-c++-4.1.2-44.el5
libaio-devel-0.3.106-3.2
libaio-0.3.106-3.2
libgcc-4.1.2-44.el5
libstdc++-4.1.2-44.el5
libstdc++-devel-4.1.2-44.el5
make-3.81-3.el5
sysstat-7.0.2-3.el5
unixODBC-2.2.11-7.1
unixODBC-devel-2.2.11-7.1

linux

Statement:
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