Home  >  Article  >  Database  >  CentOS 5.5 32bit 安装Oracle 10g(高级安装)

CentOS 5.5 32bit 安装Oracle 10g(高级安装)

WBOY
WBOYOriginal
2016-06-07 17:13:26980browse

CentOS 5.5 32bit 安装Oracle 10g(高级安装)

一、安装Oracle 10g database 前系统环境准备

1、查看系统版本、内核版本、操作系统位数,内存及交换分区大小、文件系统空间、主机名、IP地址等。

[root@rac02 ~]# cat /etc/issue    #系统版本

CentOS release 5.5 (Final)

Kernel \r on an \m

[root@rac02 ~]# uname -a  #内核版本

Linux rac02 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Linux 

[root@rac02 ~]# getconf LONG_BIT   #操作系统位数

32 

[root@rac02 ~]# free -m   #查看内存及交换分区大小,官方要求内存至少512M,建议1G以上;此处内存为1407M

             total       used       free     shared    buffers     cached

Mem:     1407       1335         72          0        114       1059

-/+ buffers/cache:        161       1246

Swap:   2815          0       2815    #交换分区大小,官方要求为内存的2倍

[root@rac02 ~]# df -hT /tmp    # 查看/tmp分区空间,官方要求至少400M

Filesystem Type    Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

              ext3     17G  4.6G   12G  30% /   #此处/tmp没有单独划分lv,空间足够,,并且安装oracle磁盘空间足够

[root@rac02 tmp]# hostname  #主机名,主机名可通过修改/etc/hosts和/etc/sysconfig/network进行修改

rac02

[root@rac02 tmp]# cat /etc/sysconfig/network-scripts/ifcfg-eth0   #IP地址配置

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]

DEVICE=eth0

BOOTPROTO=static

ONBOOT=yes

HWADDR=00:50:56:2c:87:0e

IPADDR=192.168.163.45

NETMASK=255.255.255.0

GATEWAY=192.168.163.1

DNS1=202.96.134.133

DNS2=8.8.8.8

 

2、关闭防火墙、禁用SELinux

  [root@rac02 tmp]# service iptables stop

  [root@rac02 tmp]# chkconfig iptables off #系统启动后不加载防火墙

  [root@rac02 tmp]# grep -v "#" /etc/selinux/config   #编辑config文件,禁用selinux

SELINUX=disabled

SELINUXTYPE=targeted

 

3、确认以下包全部安装

[root@rac02 /]# rpm -q gcc make binutils openmotif setarch compat-db libXp
gcc-4.1.2-51.el5
make-3.81-3.el5
binutils-2.17.50.0.6-14.el5
openmotif-2.3.1-5.el5_5.1
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++-devel is not installed
libXp-1.0.0-8.1.el5

[root@rac02 /]# rpm -qa |grep compat-gcc
compat-gcc-34-3.4.6-4.1
compat-gcc-34-c++-3.4.6-4.1
compat-gcc-34-g77-3.4.6-4.1

[root@rac02 /]# rpm -qa |grep compat-libstdc
compat-libstdc++-33-3.2.3-61
compat-libstdc++-296-2.96-138

备注:其实也不必在这个地方耗费太多时间,若有相关包未安装时,在安装oracle前环境检测会有提示,只要根据提示安装好相关包即可。

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