码迷,mamicode.com
首页 > 数据库 > 详细

redhat下oracle11g的安装部署过程

时间:2014-05-20 20:30:02      阅读:621      评论:0      收藏:0      [点我收藏+]

标签:oracle 11g

一、检查Linux够不够1G

  • 方法:

  • #grep MemTotal /proc/meminfo

二、检查交换分区的大小:

方法:

#grep SwapTotal  /proc/meminfo

参考例图如下:

bubuko.com,布布扣


屏幕剪辑的捕获时间: 2013/9/24 星期二 7:45


这一步很重要:Package Requirements

1、Oracle Database Package Requirements for Linux x86

Operating SystemRequirement
Oracle Linux 4 and Red Hat Enterprise Linux 4The following packages (or later versions) must be installed:
binutils-2.15.92.0.2
compat-libstdc++-33-3.2.3
elfutils-libelf-0.97
elfutils-libelf-devel-0.97
gcc-3.4.6
gcc-c++-3.4.6
glibc-2.3.4-2.41
glibc-common-2.3.4
glibc-devel-2.3.4
glibc-headers-2.3.4
libaio-devel-0.3.105
libaio-0.3.105
libgcc-3.4.6
libstdc++-3.4.6
libstdc++-devel-3.4.6
make-3.80
numactl-0.6.4.i386
pdksh-5.2.14
sysstat-5.0.5
Asianux Server 3, Oracle Linux 5, and Red Hat Enterprise Linux 5The following packages (or later versions) must be installed:
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
Oracle Linux 6 and Red Hat Enterprise Linux 6The following packages (or later versions) must be installed:
binutils-2.20.51.0.2-5.11.el6.i686
compat-libcap1-1.10-1.i686
compat-libstdc++-33-3.2.3-69.el6.i686
gcc-4.4.4-13.el6.i686
gcc-c++-4.4.4-13.el6.i686
glibc-2.12-1.7.el6.i686
glibc-devel-2.12-1.7.el6.i686
ksh
libgcc-4.4.4-13.el6.i686
libstdc++-4.4.4-13.el6.i686
libstdc++-devel-4.4.4-13.el6.i686
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6.i686
make-3.81-19.el6.i686
sysstat-9.0.4-11.el6.i686



2、Oracle Database Package Requirements for Linux x86-64


Operating SystemRequirement
Oracle Linux 4 and Red Hat Enterprise Linux 4The following packages (or later versions) must be installed:
binutils-2.15.92.0.2
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.97
elfutils-libelf-devel-0.97
expat-1.95.7
gcc-3.4.6
gcc-c++-3.4.6
glibc-2.3.4-2.41
glibc-2.3.4-2.41 (32 bit)
glibc-common-2.3.4
glibc-devel-2.3.4
glibc-headers-2.3.4
libaio-0.3.105
libaio-0.3.105 (32 bit)
libaio-devel-0.3.105
libaio-devel-0.3.105 (32 bit)
libgcc-3.4.6
libgcc-3.4.6 (32-bit)
libstdc++-3.4.6
libstdc++-3.4.6 (32 bit)
libstdc++-devel 3.4.6
make-3.80
numactl-0.6.4.x86_64
pdksh-5.2.14
sysstat-5.0.5
Asianux Server 3, Oracle Linux 5, and Red Hat Enterprise Linux 5The following packages (or later versions) must be installed:
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
Oracle Linux 6 and Red Hat Enterprise Linux 6The following packages (or later versions) must be installed:
binutils-2.20.51.0.2-5.11.el6 (x86_64)
compat-libcap1-1.10-1 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (x86_64)
compat-libstdc++-33-3.2.3-69.el6.i686
gcc-4.4.4-13.el6 (x86_64)
gcc-c++-4.4.4-13.el6 (x86_64)
glibc-2.12-1.7.el6 (i686)
glibc-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6.i686
ksh
libgcc-4.4.4-13.el6 (i686)
libgcc-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6.i686
libstdc++-devel-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6.i686
libaio-0.3.107-10.el6 (x86_64)
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6.i686
make-3.81-19.el6
sysstat-9.0.4-11.el6 (x86_64)

查看是否安装这个包的命令:


# rpm -q package_name

如果没有安装的话就yum安装或者rpm安装上。


三、检查磁盘空间:

执行检查:#df -h /tmp

也可以执行:#df -h

检查结果:1GB of disk space in the /tmp directory(只要/分区足够大有25GB以上,/tmp就会大于1GB)

四、配置IP

      1

先配置

静态IP:也就是让Linux能上网

      2

修改配置文件

Vi  /etc/hosts

文件/etc/hosts里面的内容如下:


# Do not remove the following line, or various programs

# that require network functionality will fail.

#127.0.0.1              localhost.localdomain localhost

192.168.1.111           oracle

#::1            localhost6.localdomain6 localhost6


还要改一个地方:

#vi /etc/sysconfig/network


bubuko.com,布布扣


屏幕剪辑的捕获时间: 2013-10-29 16:34


如上图所示:把HOSTNAME=改为oracle和上面的/etc/hosts的内容一致;



上面的192.168.1.111Linux的静态IP,orcleserverLinux的主机名,,要和主机名相同

直接把上面那句话加上就行了;


  • 确认selinux与iptables是否禁用      

  • # vi  /etc/selinux/config


  • SELINUX=disabled-->这一步一定要有,不设置的话会出问题的


  • chkconfig iptables      off---->关闭防火墙

创建必须的操作系统用户和组

命令如下:

# groupadd oinstall

#groupadd dba

#useradd -g oinstall -G dba oracle

#passwd oracle---->该步骤设置用户oracle密码

配置Oracle用户的环境变量


bubuko.com,布布扣


屏幕剪辑的捕获时间: 2013/9/24 星期二 15:47


  • 创建oracle 基目录文件夹

    • mkdir    -pv         /u01/app/oracle  

    • chown  -R           oracle:oinstall     /u01

    • chmod  -R          775     /u01

  • 编辑环境变量(/home/oracle/.bash_profile)

  • #      su - oracle

  • # vi      .bash_profile(最后面有截图)

    • export ORACLE_BASE=/u01/app/oracle

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

    • export ORACLE_SID=orcl

    • export NLS_LANG=American_America.ZHS16GBK-----》这一项可以不弄

    • export  PATH=$PATH:$ORACLE_HOME/bin

    • 注意:LANG=en;(乱码的时候需要设置)

  • 注销一次然后设置语言是英语

  • 重启一次,然后

  • #echo $DISPLAY显示:0.0表明是本机的如果是远程的话需要在前面加上ip地址;

  • #xhost +

然后用oracle用户登录即可:# su - oracle

  • 然后切换到oracle 11g r2源文件目录

  • 执行./runInstaller

  • 然后就可以安装了,安装过程和window下的安装差不多在这中间可能

  • 需要执行几个脚本


bubuko.com,布布扣


屏幕剪辑的捕获时间: 2013/10/8 星期二 16:57









本文出自 “那你魔鬼” 博客,请务必保留此出处http://599184429.blog.51cto.com/5147223/1413482

redhat下oracle11g的安装部署过程,布布扣,bubuko.com

redhat下oracle11g的安装部署过程

标签:oracle 11g

原文地址:http://599184429.blog.51cto.com/5147223/1413482

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!