CentOS   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

以下检查,最好在二台机器上都进行操作; 检查crs状态: [grid@rac1 ~]$ crsctl check crs CRS-4638: Oracle High Availability Servicesis online CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Servicesi


Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

以下检查,最好在二台机器上都进行操作;

  • 检查crs状态:

[grid@rac1~]$crsctlcheckcrs
CRS-4638:OracleHighAvailabilityServicesisonline
CRS-4537:ClusterReadyServicesisonline
CRS-4529:ClusterSynchronizationServicesisonline
CRS-4533:EventManagerisonline
  • 检查集群节点

[grid@rac1~]$olsnodes-n
rac11
rac22
  1. 检查监听器进程

[grid@rac1~]$srvctlstatuslistener
监听程序LISTENER已启用
监听程序LISTENER正在节点上运行:rac1,rac2
  • 检查Oracle ASM

[grid@rac1~]$srvctlstatusasm-a
ASM正在rac1,rac2上运行
ASM已启用。
  • 检查OCR

[grid@rac1~]$ocrcheck
StatusofOracleClusterRegistryisasfollows:
Version:3
Totalspace(kbytes):262120
Usedspace(kbytes):2248
Availablespace(kbytes):259872
ID:1968086688Device/FileName:+OCR_Vote
Device/FileintegritychecksucceededDevice/FilenotconfiguredDevice/FilenotconfiguredDevice/FilenotconfiguredDevice/Filenotconfigured
Clusterregistryintegritychecksucceeded
Logicalcorruptioncheckbypassedduetonon-privilegeduser


  • 检查表决磁盘

[grid@rac1~]$crsctlquerycssVotedisk
##STATEFileUniversalIdFileNameDiskgroup
------------------------------------------
ONLINE433b29a662934f14bf5ce26f5c5f1bbf(ORCL:OCR_Vote01)[OCR_Vote]
  • 安装oracle11gR2

[oracle@rac1~]$unziplinux.x64_11gR2_database_1of2.zip
[oracle@rac1~]$unziplinux.x64_11gR2_database_2of2.zip
[oracle@rac1~]$cddatabase/
[oracle@rac1database]$./runInstaller

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

在二台机器上运行脚本
[root@rac1~]#/u01/app/oracle/product/11.2.0/db_1/root.sh
RunningOracle11groot.shscript...
Thefollowingenvironmentvariablesaresetas:
ORACLE_OWNER=oracle
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
Enterthefullpathnameofthelocalbindirectory:[/usr/local/bin]:
Thefile"dbhome"alreadyexistsin/usr/local/bin.Overwriteit?(y/n)
[n]:y
Copyingdbhometo/usr/local/bin...
Thefile"oraenv"alreadyexistsin/usr/local/bin.Overwriteit?(y/n)
[n]:y
Copyingoraenvto/usr/local/bin...
Thefile"coraenv"alreadyexistsin/usr/local/bin.Overwriteit?(y/n)
[n]:y
Copyingcoraenvto/usr/local/bin...


Entrieswillbeaddedtothe/etc/oratabfileasneededby
DatabaseConfigurationAssistantwhenadatabaseiscreated
Finishedrunninggenericpartofroot.shscript.
Nowproduct-specificrootactionswillbeperformed.
Finishedproduct-specificrootactions.

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二


#su�Coracle
$dbca

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二


至此,oracle 11gr2 rac安装完成,可以使用plsql进行连接测试即可

大佬总结

以上是大佬教程为你收集整理的Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二全部内容,希望文章能够帮你解决Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: