CRS-2101:The OLR was formatted using version 3 ORACLE單機ASM報錯
環境centos7.9 搭建的是RAC的dg 但是用到了asm
參照了資料 https://blog.csdn.net/u010692693/article/details/104712471/
重點:
grid圖形介面安裝單機asm時可參照 http://blog.itpub.net/70004783/viewspace-2792218/
當執行第二個指令碼時
[root@racdg ~]# /u01/app/11.2.0/grid/root.sh Performing root user operation for Oracle 11g The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /u01/app/11.2.0/grid Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ... Creating /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root script. Now product-specific root actions will be performed. 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. LOCAL ONLY MODE Successfully accumulated necessary OCR keys. Creating OCR keys for user 'root', privgrp 'root'.. Operation successful. CRS-4664: Node racdg successfully pinned. Adding Clusterware entries to inittab racdg 2021/09/18 09:18:45 /u01/app/11.2.0/grid/cdata/racdg/backup_20210918_091845.olr Successfully configured Oracle Grid Infrastructure for a Standalone Server [root@racdg ~]# su - grid
當快執行到,以下時,
CRS-4664: Node racdg successfully pinned. Adding Clusterware entries to inittab
新開一個視窗,進入到/etc/init.d/目錄一旦出現init.ohasd檔案,即root執行
/etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null &
[root@racdg ~]# cd /etc/init.d/ [root@racdg init.d]# ls functions init.ohasd multipathd netconsole network ohasd README
這樣就不會出現報錯。
繼續思考一個問題,系統重啟has服務起不來網上也有挺多的解決方法。但是如何系統重啟自動啟動has呢
重點在這一句
CAUSE The problem is caused by init.ohasd not running, ohasd.bin start up is waiting for init.ohasd acknowledgement, hence it is waiting on the pipe /var/tmp/.oracle/npohasd, it times out and fails to startup after 10minutes.
所以果斷將 /etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null &新增到自啟動/etc/rc.d/rc.local檔案最後一行
[root@racdg rc.d]# cat /etc/rc.d/rc.local #!/bin/bash # THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES # # It is highly advisable to create own systemd services or udev rules # to run scripts during boot instead of using this file. # # In contrast to previous versions due to parallel execution during boot # this script will NOT be run after all other services. # # Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure # that this script will be executed during boot. touch /var/lock/subsys/local /etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null &
並且給此檔案執行許可權
重啟系統試一下吧,看看has能否自動隨系統啟動。
覺得對你有用,給點個贊吧,歡迎分享。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70004783/viewspace-2792705/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Gather/Backup ASM Metadata In A Formatted Manner version 10g/11g/12c_470211.1ASMORM
- 安裝Oracle報Checking os version: must be redhat-3OracleRedhat
- Oracle ASM 配置錯誤OracleASM
- Oracle Rac root.sh報錯 Failed to create keys in the OLR, rc = 127 libcap.so.1OracleAI
- asm報錯一例-support 報錯rename failedASMAI
- [vue]執行vue --version報錯:-4054 ENOSYSVue
- Using Android Phone to recover SD card formatted with DD command under linuxAndroidORMLinux
- 【ASM】Oracle RAC css啟動報錯"Duplicate voting file found"ASMOracleCSS
- 啟動ASM 例項報錯ASM
- Qt 解決報錯registered using qRegisterMetaType()QT
- you are using an old unsupported version of gradle 1.9Gradle
- 單機搭建ASM環境ASM
- 11.2單例項ASM啟動報錯ORA-15186單例ASM
- Using FTP Transferring Non-ASM Datafiles to ASM diskgroupFTPASM
- Duplicate Database from ASM to Non- ASM Database Using RMANDatabaseASM
- Oracle 21C OCR和OLR管理Oracle
- AIX6.1安裝ORACLE 11g(單機使用ASM)AIOracleASM
- Using ASMLIB Management ASM DiskASM
- ASM using ASMLib and Raw DevicesASMdev
- 11.2.0.4單例項ASM安裝報錯ohasd failed to ... line 73.單例ASMAI
- 11g單機使用asmASM
- 10g 單機使用asmASM
- 報錯“Please indicate a valid Swagger or OpenAPI version field”SwaggerAPI
- RHEL5單機安裝11gR2 asm執行root.sh報錯:CRS-4124ASM
- oracle 11.2.0.3 單機 asm 儲存打psu 10補丁OracleASM
- Using SQL Script Get Information about ASMSQLORMASM
- Migrating to ASM Using RMAN(二)ASM
- Migrating to ASM Using RMAN(一)ASM
- oracle ASM錯誤Initializing the Oracle ASMLib driver:[FAILED]OracleASMAI
- Oracle 11g ASM 單例項安裝 DBCA 建庫 報錯 ORA-12547: TNS:lost contactOracleASM單例
- ElasticSearch 7.6.2 單機部署三個節點 報錯Elasticsearch
- oracle dg報錯Oracle
- oracle emctl 報錯Oracle
- Python 連線 Minio 報錯:[SSL: WRONG_VERSION_NUMBER]Python
- tsm在client端執行dsmj報錯:jre version低client
- Oracle DDL動態SQL使用using語法報錯'ORA-01027: bind'OracleSQL
- Oracle資料庫(單機)巡檢報告Oracle資料庫
- 【Oracle】RAC ASM日誌報錯 ORA-15078 CRSD自動關閉OracleASM