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

前端之家收集整理的这篇文章主要介绍了Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。


wKioL1j-DujwrhRlAAJmI6DqZNA304.png-wh_50

wKiom1j-DunBpSVoAAJsrM4sf2U636.png-wh_50

wKiom1j-DuripNa9AAMPMWU2JX4839.png-wh_50

wKiom1j-DuvRdhjoAANwsEBzLx4931.png-wh_50

wKioL1j-DuyA6JFJAALuLZLp8M0532.png-wh_50

wKioL1j-Du2hlyK6AAChzY-39h0368.png-wh_50

wKiom1j-Du2jeWI4AAC5lfMJR0Y343.png-wh_50

wKioL1j-Du7i0DOjAACe8y_0IPA974.png-wh_50

wKiom1j-DvDzjgOiAALJZEDgEAw286.png-wh_50

wKiom1j-DvGx6TiDAAMTfWrDP-w432.png-wh_50

wKioL1j-DvKzXYkYAALrclH5OMM287.png-wh_50

wKioL1j-DvXTIfPIAANyPlyr3E8142.png-wh_50

wKiom1j-DveBG3X6AAPCGaT_E7k989.png-wh_50

wKioL1j-DvjT6qvYAAPxmlCuWvw382.png-wh_50

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

  • 检查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

wKiom1j-EFjC3kf6AAJiyQk7suY092.png-wh_50

wKioL1j-EFjjei-LAAIwjUWR_-c356.png-wh_50

wKiom1j-EGLAV0t0AAKxSSOFAdE368.png-wh_50

wKioL1j-EGPD_2y_AAJo-XwNRoU008.png-wh_50

wKiom1j-EGWQ-ZnZAANGM3ngK-8377.png-wh_50

wKioL1j-EGbihTcoAAN5pRU4-Os217.png-wh_50

在二台机器上运行脚本
[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.

wKioL1j-EKmj_XnMAAGuHsrXIws536.png-wh_50


#su�Coracle
$dbca

wKioL1j-ETawmX8UAADVujs-Sos979.png-wh_50

wKioL1j-ETfAo84GAADRPp-DFk8617.png-wh_50

wKiom1j-ETfBOhNgAADpccL6044598.png-wh_50

wKioL1j-ETiSG_vgAADgjdsESzo287.png-wh_50

wKiom1j-ETniPimiAAJj5gE3SLo702.png-wh_50

wKioL1j-ETvCz7_xAALX5x_O3vA535.png-wh_50

wKioL1j-ETzA2-HrAALgMoLqbfg779.png-wh_50

wKioL1j-ET3hRW2MAAJb8dBV_M8943.png-wh_50

wKiom1j-ET-g8-LVAAK0p1D33gA591.png-wh_50

wKiom1j-EUCAToyZAALk6lqYI5s861.png-wh_50

wKioL1j-EUDC4q_mAAH-gALM_g4259.png-wh_50

wKioL1j-EUKjGFgdAAKO6mSCyZQ534.png-wh_50

wKiom1j-EUOi9XXZAALcDY249CU130.png-wh_50

wKioL1j-EUSiId_DAAKazKmupFM566.png-wh_50

wKiom1j-EUawYFDSAAKYDogWkYE151.png-wh_50


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

猜你在找的CentOS相关文章