????????????????????????RAC??????????????????
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了????????????????????????RAC??????????????????相关的知识,希望对你有一定的参考价值。
????????????????????????RAC??????????????????
1.1 ??????????????????
?????? | source db |
db ?????? | 2??????RAC |
db version | 11.2.0.1.0 |
db ?????? | ASM |
OS?????????kernel?????? | RHEL 6.6 |
1.2 ??????????????????
??????10???????????????????????????????????????RAC????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????N?????????????????????N??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????1???css????????????????????????????????????????????????2???ha??????????????????????????????????????????????????????????????????????????????????????????MOS????????????????????????Google?????????OCR?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????root.sh?????????
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????$ORACLE_HOME/crs/install/rootcrs.pl -deconfig -force -verbose???????????????-keepdg???????????????11.2.0.1???????????????????????????????????????????????????????????????????????????-lastnode?????????????????????????????????
??????????????????????????????????????????????????????????????????????????????????????????10?????????1?????????????????????????????????OCR??????????????????????????????exec????????????CRS???????????????????????????????????????????????????????????????????????????????????????OCR?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????2?????????????????????????????????
??????8???????????????????????????teamviewer????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????leshami?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
?????????????????????????????????????????????deconfig?????????root.sh????????????root.sh????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????OCR???????????????????????????????????????10T??????????????????????????????????????????????????????kfod??????????????????????????????????????????????????????????????????MOUNT????????????????????????root.sh?????????????????????????????????????????????????????????????????????MOUNT????????????????????????????????????????????????OCR??????????????????
?????????????????????????????????????????????????????????DB???srvctl??????????????????????????????????????????????????????????????????????????????????????????????????????????????????
1.2.1 ????????????????????????????????????
????????????root.sh????????????????????????????????????????????????????????????OCR????????????????????????OCR????????????????????????????????????????????????
1???2?????????????????????deconfig???
export ORACLE_HOME=/u01/app/11.2.0/grid export PATH=$PATH:$ORACLE_HOME/bin $ORACLE_HOME/crs/install/rootcrs.pl -deconfig -force -verbose |
2???????????????????????????OCR?????????dd???2?????????????????????
dd if=/dev/zero of=/dev/oracleasm/disks/OCR_VOL2 bs=1024k count=1024 dd if=/dev/zero of=/dev/oracleasm/disks/OCR_VOL1 bs=1024k count=1024 |
3?????????1????????????????????????2?????????
export ORACLE_HOME=/u01/app/11.2.0/grid $ORACLE_HOME/root.sh |
???????????????11.2.0.1????????????root.sh??????????????????bug?????????
CRS-4124: Oracle High Availability Services startup failed. CRS-4000: Command Start failed, or completed with errors. ohasd failed to start: Inappropriate ioctl for device ohasd failed to start: Inappropriate ioctl for device at /u01/app/11.2.0/grid/crs/install/roothas.pl line 296. |
?????????????????????????????????
???????????????root.sh????????????????????????
/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1 |
????????????
/bin/dd: opening`/var/tmp/.oracle/npohasd???: No such file or directory |
?????????????????????????????????????????????????????????????????????????????????????????????????????????Adding daemon to inittab???????????????????????????dd?????????
1.2.2 root.sh???????????????
root.sh????????????????????????????????????????????????????????????OCR?????????????????????????????????
$ORACLE_HOME/crs/config/config.sh |
1.2.3 kfod??????
?????????????????????????????????????????????
data01->export ORACLE_HOME=/u01/app/11.2.0/grid data01->$ORACLE_HOME/bin/kfod disk=all s=true ds=true c=true
-------------------------------------------------------------------------------- Disk Size Header Path Disk Group User Group ================================================================================ 1: 476837 Mb MEMBER /dev/oracleasm/disks/DATA_VOL1 DATA grid asmadmin 2: 953674 Mb MEMBER /dev/oracleasm/disks/DATA_VOL10 DATA grid asmadmin 3: 953674 Mb MEMBER /dev/oracleasm/disks/DATA_VOL11 DATA grid asmadmin 4: 953675 Mb MEMBER /dev/oracleasm/disks/DATA_VOL12 DATA grid asmadmin 5: 953674 Mb MEMBER /dev/oracleasm/disks/DATA_VOL13 DATA grid asmadmin 6: 953674 Mb MEMBER /dev/oracleasm/disks/DATA_VOL14 DATA grid asmadmin 7: 953674 Mb MEMBER /dev/oracleasm/disks/DATA_VOL15 DATA grid asmadmin 8: 953674 Mb MEMBER /dev/oracleasm/disks/DATA_VOL16 DATA grid asmadmin 9: 953675 Mb MEMBER /dev/oracleasm/disks/DATA_VOL18 DATA grid asmadmin 10: 953675 Mb MEMBER /dev/oracleasm/disks/DATA_VOL2 DATA grid asmadmin 11: 953674 Mb MEMBER /dev/oracleasm/disks/DATA_VOL3 DATA grid asmadmin 12: 953674 Mb MEMBER /dev/oracleasm/disks/DATA_VOL4 DATA grid asmadmin 13: 953675 Mb MEMBER /dev/oracleasm/disks/DATA_VOL5 DATA grid asmadmin 14: 953674 Mb MEMBER /dev/oracleasm/disks/DATA_VOL6 DATA grid asmadmin 15: 953674 Mb MEMBER /dev/oracleasm/disks/DATA_VOL7 DATA grid asmadmin 16: 953674 Mb MEMBER /dev/oracleasm/disks/DATA_VOL8 DATA grid asmadmin 17: 953675 Mb MEMBER /dev/oracleasm/disks/DATA_VOL9 DATA grid asmadmin 18: 476837 Mb MEMBER /dev/oracleasm/disks/FLASH_VOL1 FLASH grid asmadmin 19: 286103 Mb MEMBER /dev/oracleasm/disks/FLASH_VOL2 FLASH grid asmadmin 20: 286057 Mb MEMBER /dev/oracleasm/disks/OCR_VOL1 OCR grid asmadmin 21: 286102 Mb CANDIDATE /dev/oracleasm/disks/OCR_VOL2 # grid asmadmin 22: 476837 Mb MEMBER ORCL:DATA_VOL1 DATA <unknown> <unknown> 23: 953674 Mb MEMBER ORCL:DATA_VOL10 DATA <unknown> <unknown> 24: 953674 Mb MEMBER ORCL:DATA_VOL11 DATA <unknown> <unknown> 25: 953675 Mb MEMBER ORCL:DATA_VOL12 DATA <unknown> <unknown> 26: 953674 Mb MEMBER ORCL:DATA_VOL13 DATA <unknown> <unknown> 27: 953674 Mb MEMBER ORCL:DATA_VOL14 DATA <unknown> <unknown> 28: 953674 Mb MEMBER ORCL:DATA_VOL15 DATA <unknown> <unknown> 29: 953674 Mb MEMBER ORCL:DATA_VOL16 DATA <unknown> <unknown> 30: 953675 Mb MEMBER ORCL:DATA_VOL18 DATA <unknown> <unknown> 31: 953675 Mb MEMBER ORCL:DATA_VOL2 DATA <unknown> <unknown> 32: 953674 Mb MEMBER ORCL:DATA_VOL3 DATA <unknown> <unknown> 33: 953674 Mb MEMBER ORCL:DATA_VOL4 DATA <unknown> <unknown> 34: 953675 Mb MEMBER ORCL:DATA_VOL5 DATA <unknown> <unknown> 35: 953674 Mb MEMBER ORCL:DATA_VOL6 DATA <unknown> <unknown> 36: 953674 Mb MEMBER ORCL:DATA_VOL7 DATA <unknown> <unknown> 37: 953674 Mb MEMBER ORCL:DATA_VOL8 DATA <unknown> <unknown> 38: 953675 Mb MEMBER ORCL:DATA_VOL9 DATA <unknown> <unknown> 39: 476837 Mb MEMBER ORCL:FLASH_VOL1 FLASH <unknown> <unknown> 40: 286103 Mb MEMBER ORCL:FLASH_VOL2 FLASH <unknown> <unknown> 41: 286057 Mb MEMBER ORCL:OCR_VOL1 OCR <unknown> <unknown> 42: 286102 Mb CANDIDATE ORCL:OCR_VOL2 # <unknown> <unknown> -------------------------------------------------------------------------------- ORACLE_SID ORACLE_HOME HOST_NAME ================================================================================ +ASM1 /u01/app/11.2.0/grid data01 +ASM2 /u01/app/11.2.0/grid data02 data01-> data01-> data01-> data01->sqlplus / as sysasm
SQL*Plus: Release 11.2.0.1.0 Production on Sat Dec 10 12:27:25 2016
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Real Application Clusters and Automatic Storage Management options
SQL> SQL> SQL> alter diskgroup OCR ADD DISK ???/dev/oracleasm/disks/OCR_VOL2???;
Diskgroup altered.
|
1.2.4 ??????db???srvctl????????????
11.2.0.1??????-c?????????????????????????????????-h?????????????????????
srvctl add database -d DGPHY -c RAC -o /oracle/app/oracle/product/11.2.0/db -p ???+DATA/TESTDGPHY/PARAMETERFILE/spfiledgphy.ora??? -r primary -n TESTDG
srvctl add instance -d DGPHY -i DGPHY1 -n ZFZHLHRDB1 srvctl add instance -d DGPHY -i DGPHY2 -n ZFZHLHRDB2
srvctl status database -d DGPHY srvctl start database -d TESTDG
|
About Me
...............................................................................................................................
??? ????????????????????????????????????????????????????????????????????????????????????
??? ?????????itpub???http://blog.itpub.net/26736162??????????????????http://www.cnblogs.com/lhrbest??????????????????????????????xiaomaimiaolhr?????????????????????
??? ??????itpub?????????http://blog.itpub.net/26736162/viewspace-2130218/
??? ????????????????????????http://www.cnblogs.com/lhrbest/p/6157931.html
??? ??????pdf??????????????????????????????http://blog.itpub.net/26736162/viewspace-1624453/
??? QQ??????230161599 ??????????????????
??? ???????????????QQ??????(642808185)?????????????????????
??? ??? 2016-12-09 22:00 ~ 2016-12-10 16:00 ????????????????????????
??? ???????????????????????????????????????????????????????????????????????????????????????????????????????????????
??? ?????????????????????????????????????????????????????????
...............................................................................................................................
??????????????????????????????????????????????????????????????????????????????????????????????????????????????????xiaomaimiaolhr?????????????????????????????????????????????
???????????? ???????????????????????? ?????????????????????????????????http://lhrbest.blog.51cto.com/2318295/1881547
以上是关于????????????????????????RAC??????????????????的主要内容,如果未能解决你的问题,请参考以下文章
shinydashboard ui.R 和 server.R 未读取 Global.R