linux下Oracle11g RAC搭建

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux下Oracle11g RAC搭建相关的知识,希望对你有一定的参考价值。

linux下Oracle11g RAC搭建(六)


五、校验安装前的环境

root身份下完毕解压grid、database安装包

[[email protected] soft]$ su -

Password:

[[email protected] ~]# cd /soft

[[email protected] soft]# ls

asm linux_11gR2_database_1of2.zip linux_11gR2_database_2of2.zip linux_11gR2_grid.zip

[[email protected] soft]# unziplinux_11gR2_grid.zip

[[email protected] soft]# unziplinux_11gR2_database_1of2.zip 

[[email protected] soft]# unziplinux_11gR2_database_2of2.zip

grid 身份下校验安装环境

[[email protected] soft]#su – grid

[[email protected] ~]$ cd /soft/grid

[[email protected] grid]$ ./runcluvfy.shstage -pre crsinst -nnode1,node2 -fixup -verbose  

//pre-安装前,post-安装后,阶段名称叫crsinst-crsinstall。-n-节点之间校验,verbose-校验的过程

 

检測crs安装环境(node1、node2)。安装失败的包例如以下:

sysstat-7.0.2

unixODBC-2.2.11

unixODBC-devel-2.2.11

libaio-devel-0.3.106

 

具体列表例如以下:

Check: Package existence for "sysstat-7.0.2"

  Node Name     Available                 Required                  Comment  

 ------------ ------------------------ ------------------------ ----------

  node2         missing                   sysstat-7.0.2             failed   

  node1         missing                   sysstat-7.0.2             failed   

Result: Package existence check failed for"sysstat-7.0.2"

 

Check: Package existence for "unixODBC-2.2.11"

  Node Name     Available                 Required                  Comment  

 ------------ ------------------------ ------------------------ ----------

  node2         missing                   unixODBC-2.2.11           failed   

  node1         missing                   unixODBC-2.2.11           failed   

Result: Package existence check failed for"unixODBC-2.2.11"

 

Check: Package existence for "unixODBC-devel-2.2.11"

  Node Name     Available                 Required                  Comment  

 ------------ ------------------------ ------------------------ ----------

  node2         missing                   unixODBC-devel-2.2.11     failed   

  node1         missing                   unixODBC-devel-2.2.11     failed

 

Check: Package existence for "libaio-devel-0.3.106"

  Node Name     Available                 Required                  Comment  

 ------------ ------------------------  ------------------------  ----------

  node2         missing                   libaio-devel-0.3.106      failed   

  node1         missing                   libaio-devel-0.3.106      failed

 

补充:

若出现swap分区大小不足。參考例如以下更改:

 

[[email protected] localdisk]# dd if=/dev/zeroof=/localdisk/swapfile bs=1024 count=4096000

[[email protected] localdisk]# mkswap/localdisk/swapfile

[[email protected] localdisk]# swapon/localdisk/swapfile

[[email protected] localdisk]# vi/etc/fstab

加入/localdisk/swapfile      swap                    swap   defaults        0 0

 [[email protected] localdisk]# cat/proc/swaps

 

查看swap具体:

Filename                                                         Type            Size                    Used    Priority

/dev/mapper/VolGroup00-LogVol01         partition    2097144 136     -1

/localdisk/swapfile                                         file              4095992 0         -2

 

配置yum  install安装工具(node1、node2)

为node1配置yum

yum工具:能够自己主动解决软件包之间的依赖关系。使用它之前要先创建软件仓库。

下面,開始构建软件仓库:

 

[[email protected] grid]$ su –

[[email protected] ~]# cd/etc/yum.repos.d/      //进入到该文件夹下生成一个配置文件

[[email protected] yum.repos.d]# ls

[[email protected] yum.repos.d]# cprhel-debuginfo.repo yum.repo  

//做一个拷贝

[[email protected] yum.repos.d]# mv  rhel-debuginfo.repo    rhel-debuginfo.repo.bak  

//改动原来文件名称

[[email protected] yum.repos.d]#vi yum.repo   

//文件内容改为例如以下

              

改动例如以下:

[base]

name=Red Hat Enterprise Linux

baseurl=file:///media/Server 

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

 

说明:

media这个就是安装光盘挂载所在位置。Server下就是一些安装包。S是大写。

enabled=1表示启动,gpgcheck=0表示校验关闭。

为node2配置yum

[[email protected] yum.repos.d]# scpyum.repo  node2:/etc/yum.repos.d  

//把yum.repo复制到node2


技术分享


依据校验结果使用yum安装缺失软件包(node1、node2)

Vbox中挂载ios光盘(node1node2


技术分享


[[email protected] yum.repos.d]#mount/dev/hdc  /media  或者mount /dev/cdrom   /media

//vbox设置完成后。手工挂载光盘

[[email protected] yum.repos.d]# ls /media/     //能够查看一下文件夹下文件

[[email protected] yum.repos.d]# ls/media/Server|more

//再看一下server下应该有非常多软件包

 

至此。yum仓库构建完毕。

安装node1中缺失的软件包

[[email protected] yum.repos.d]# yuminstall libaio* -y    

Loaded plugins: rhnplugin, security

This system is not registered with RHN.

RHN support will be disabled.

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : libaio-devel                                                    1/1

 

Installed:

 libaio-devel.i386 0:0.3.106-5                                                         

 

Complete!

[[email protected] yum.repos.d]#yum install syssta* -y

Loaded plugins: rhnplugin, security

This system is not registered with RHN.

RHN support will be disabled.

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package sysstat.i386 0:7.0.2-3.el5 set to beupdated

--> Finished Dependency Resolution

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : sysstat                                                         1/1

 

Installed:

  sysstat.i3860:7.0.2-3.el5                                                           

 

Complete!

[[email protected] yum.repos.d]#yum install unixO* -y

Loaded plugins: rhnplugin, security

This system is not registered with RHN.

RHN support will be disabled.

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package unixODBC.i386 0:2.2.11-7.1 set to beupdated

---> Package unixODBC-devel.i386 0:2.2.11-7.1 set tobe updated

---> Package unixODBC-kde.i386 0:2.2.11-7.1 set tobe updated

--> Finished Dependency Resolution

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     :unixODBC                                                        1/3

  Installing     : unixODBC-kde                                                    2/3

  Installing     : unixODBC-devel                                                  3/3

 

Installed:

  unixODBC.i3860:2.2.11-7.1               unixODBC-devel.i386 0:2.2.11-7.1          

 unixODBC-kde.i386 0:2.2.11-7.1          

 

Complete!

[[email protected] yum.repos.d]#rpm -qa |grep -i odbc

unixODBC-2.2.11-7.1

unixODBC-devel-2.2.11-7.1

unixODBC-kde-2.2.11-7.1

[[email protected] yum.repos.d]# cd            //安装vnc包

 

安装node2中缺失的软件包

Vbox中挂载IOS光盘(node1node2

[[email protected] ~]#mount/dev/hdc  /media  或者mount /dev/cdrom   /media

//vbox设置完成后。手工挂载光盘


技术分享


參考“安装node1中缺失的软件包”

 

grid身份下再次校验安装环境

又一次启动node1、node2系统,在node1以grid身份再次完毕环境校验(“參考grid身份下校验安装环境”)



声明:
         原创作品,出自 “深蓝的blog” 博客,同意转载,转载时请务必注明出处(http://blog.csdn.net/huangyanlong)。

         关于涉及版权事宜,作者有权追究法律责任。




************************** 未完待续 敬请关注 **************************************





















以上是关于linux下Oracle11g RAC搭建的主要内容,如果未能解决你的问题,请参考以下文章

Oracle 11g R2(11.2.0.4.0)+udev搭建RAC

Oracle11g RAC+DG搭建

Linux下Oracle11G RAC报错:在安装oracle软件时报file not found一例

Oracle 11g 两个节点RAC 搭建单实例DG详细步骤以及注意事项

oracle 11g r2 rac linux下 ntp问题

Centos-6.5搭建oracle11g RAC集群