RHEL6.7 + ASM + Oracle11gR2 RI for standalone
装好后状态都是正常的:
[grid@RHEL ~]$ crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora.DATA.dg ora....up.type 0/5 0/ ONLINE ONLINE rhel
ora.FRA.dg ora....up.type 0/5 0/ ONLINE ONLINE rhel
ora....ER.lsnr ora....er.type 0/5 0/ ONLINE ONLINE rhel
ora.asm ora.asm.type 0/5 0/ ONLINE ONLINE rhel
ora.cssd ora.cssd.type 0/5 0/5 ONLINE ONLINE rhel
ora.diskmon ora....on.type 0/10 0/5 ONLINE ONLINE rhel
ora.orcl.db ora....se.type 0/2 0/1 ONLINE ONLINE rhel
也配置了下面的自启:
crsctl modify resource "ora.cssd" -attr "AUTO_START=1"
crsctl modify resource "ora.diskmon" -attr "AUTO_START=1"
crsctl modify resource "ora.DATA.dg" -attr "AUTO_START=1"
crsctl modify resource "ora.FRA.dg" -attr "AUTO_START=1"
[grid@RHEL ~]$ crsctl check has
CRS-4638: Oracle High Availability Services is online
[grid@RHEL ~]$ crsctl check css
CRS-4529: Cluster Synchronization Services is online
[grid@RHEL ~]$ cat /etc/oracle/ocr.loc
ocrconfig_loc=/u01/app/11.2.0/grid/cdata/localhost/local.ocr
local_only=TRUE
[root@RHEL ~]# /u01/app/11.2.0/grid/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 120
Available space (kbytes) : 262000
ID : 1617473145
Device/File Name : /u01/app/11.2.0/grid/cdata/localhost/local.ocr
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
都运行正常,但是在EM里面看到oracle restart的状态为 n/a
一重启Linux,has这些的都不会自动启动,全部要手动一个个的启动
求教是什么回事呢?
安装的grid的时候遇到了已知的bug
[root@localhost Oracle]# /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl
2018-02-12 15:51:54: Checking for super user privileges
2018-02-12 15:51:54: User has super user privileges
2018-02-12 15:51:54: Parsing the host name
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
CRS-4664: Node localhost successfully pinned.
Adding daemon to inittab
需要执行
/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
不过最后还是安装成功的,但是oracle restart完全不起作用,不知道是不是和这个bug有关