RedHat5.6(32位)安装Oracle11g(32位)

一,检查RPM

rpm -q binutils-2.17.50.0.6 compat-libstdc++-33-3.2.3 elfutils-libelf-0.125 elfutils-libelf-devel-0.125 elfutils-libelf-devel static-0.125 gcc-4.1.2 gcc-c++-4.1.2 glibc-2.5-24 glibc-common-2.5 glibc-devel-2.5 glibc-headers-2.5 kernel-headers-2.6.18 ksh-20060214 libaio-0.3.106 libaio-devel-0.3.106 libgcc-4.1.2 libgomp-4.1.2 libstdc++-4.1.2 libstdc++-devel-4.1.2 make-3.81 sysstat-7.0.2

显示结果如下:

binutils-2.17.50.0.6-14.el5

compat-libstdc++-33-3.2.3-61

package elfutils-libelf-0.125 is not installed

package elfutils-libelf-devel-0.125 is not installed

elfutils-libelf-devel-0.137-3.el5

package static-0.125 is not installed

gcc-4.1.2-50.el5

gcc-c++-4.1.2-50.el5

package glibc-2.5-24 is not installed

glibc-common-2.5-58

glibc-devel-2.5-58

glibc-headers-2.5-58

kernel-headers-2.6.18-238.el5

package ksh-20060214 is not installed

libaio-0.3.106-5

libaio-devel-0.3.106-5

libgcc-4.1.2-50.el5

package libgomp-4.1.2 is not installed

libstdc++-4.1.2-50.el5

libstdc++-devel-4.1.2-50.el5

make-3.81-3.el5

sysstat-7.0.2-3.el5_5.1

 

二,利用yum安装缺失的安装包

  1,首先将RedHat5.6的系统镜像挂载到光驱上

  2,执行:

[root@jeason ~]# mkdir -p /mnt/cdrom

[root@jeason ~]# mount /dev/cdrom /mnt/cdrom

mount: block device /dev/cdrom is write-protected, mounting read-only

3,配置yum仓库

[root@jeason ~]# cd /etc/yum.repos.d/

[root@jeason yum.repos.d]# vi yum.repo

添加以下信息:

[base]

baseurl=file:///mnt/cdrom/Server

enabled=1

gpgcheck=0

 

更新yum仓库

[root@jeason yum.repos.d]# yum repolist

Loaded plugins: rhnplugin, security

Repository 'base' is missing name in configuration, using id

This system is not registered with RHN.

RHN support will be disabled.

repo id                             repo name                            status

base                               base                          enabled: 2,428

repolist: 2,428

4,利用vi创建安装缺失RPM包的脚本

[root@jeason ~]# vi pack.sh 添加以下内容

#!bin/bash

#start install required packages

[base]

baseurl=file:///mnt/cdrom/Server

enabled=1

gpgcheck=0

yum -y install elfutils-libelf-*

yum -y install elfutils-libelf-devel-*

yum -y install static-*

yum -y install glibc-*

yum -y install ksh-*

yum -y install libaio-devel-*

yum -y install libgomp-*

yum –y install unixODBC-*

[root@jeason ~]# chmod +x pack.sh 执行权限

[root@jeason ~]# sh pack.sh       执行脚本

,创建Oracle的用户和组

[root@jeason ~]# groupadd -g 1001 oinstall

[root@jeason ~]# groupadd -g 1002 dba

[root@jeason ~]# useradd -g oinstall -G dba oracle

[root@jeason ~]# passwd oracle

Changing password for user oracle.

New UNIX password:

BAD PASSWORD: it is based on a dictionary word

Retype new UNIX password:

passwd: all authentication tokens updated successfully.

,创建Oracle要求的目录

[root@jeason ~]# mkdir -p /u01/app/oracle/product/11.2.0 创建目录

[root@jeason ~]# chown -R oracle:oinstall /u01/         更改权限

,配置内核参数

[root@jeason ~]# vi /etc/sysctl.conf 添加以下内容

 

 

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmall = 2097152

kernel.shmmax = 536870912

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048576

[root@jeason ~]# sysctl –p 使上面添加的参数生效

 

[root@jeason ~]# vi /etc/security/limits.conf 添加以下内容

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

oracle soft stack 10240

,配置Oracle用户的环境变量

[root@jeason ~]# su - oracle

[oracle@jeason ~]$ vi .bash_profile 添加以下内容

export ORACLE_SID=jeason

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=/u01/app/oracle/product/11.2.0

export PATH=$ORACLE_HOME/bin:$PATH

export DISPLAY=192.168.20.13:0.0 (此处为你物理机的IP

,利用xftp等工具,将Oracle11g安装包上传至虚拟机的Linux里,另外确保你主机上安装了Xmanager并且开启了Xmanager - Passive

[root@jeason ~]# unzip p10404530_112030_LINUX_1of7.zip

[root@jeason ~]# unzip p10404530_112030_LINUX_2of7.zip

[root@jeason ~]# chown -R oracle:oinstall database/

[root@jeason ~]# mv database/ /u01/app/oracle/

[root@jeason ~]# su – oracle

[oracle@jeason ~]$ cd /u01/app/oracle/database/

[oracle@jeason database]$ ./runInstaller

开始安装......

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

转载于:http://blog.itpub.net/28865262/viewspace-766399/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值