Oracle RAC重新執行root.sh指令碼
Oracle RAC重新執行root.sh指令碼
----------------- 加入常用命令 vi /etc/profile export GRID_HOME=/u01/app/12.1.0/grid export ORACLE_HOME=/u01/app/12.1.0/grid export PATH=$PATH:$GRID_HOME/bin ===================================rac中重新執行root.sh指令碼=================================================== 需要注意的是,多數以pl結尾的指令碼從12.1.0.2開始都變為了sh指令碼,例如:rootcrs.pl需要修改為rootcrs.sh In 12.1.0.2, rootcrs.sh/roothas.sh should be used instead of rootcrs.pl/roothas.pl # OCR備份,物理和邏輯都進行備份 ocrconfig -export /tmp/export_asm_lhr_logical.bak ocrconfig -manualbackup ocrconfig -showbackup ocrconfig -copy +MGMT:/raclhr-cluster/OCRBACKUP/backup_20190822_085506.ocr.285.1016960109 /tmp/export_asm_lhr_physical.bak #從12.2開始的OCR物理備份預設放在MGMT磁碟組,建議單獨cp到FS中 cp /u01/app/11.2.0/grid/cdata/raclhr-cluster/backup_20190822_111554.ocr /tmp/export_asm_lhr_physical.bak #手動對叢集相關資源進行備份,包括新增的db、監聽、service等 ----------------- 日誌地址 ---11g、12.1.0.2、 日誌地址:$ORACLE_HOME/cfgtoollogs/crsconfig/ 重置的日誌檔案:hadelete.log root.sh指令碼日誌:rootcrs_rac2.log ---18c 18c的日誌地址:$ORACLE_HOME/install/ 18c的詳細日誌地址:/u01/app/grid/crsdata/raclhr-18c-n1/crsconfig/ 重置的日誌檔案:crsdeconfig_raclhr-18c-n1_2019-08-21_11-21-45AM.log root.sh指令碼日誌:rootcrs_raclhr-18c-n1_2019-08-21_11-15-48AM.log export GRID_HOME=$ORACLE_HOME # 查詢ASM磁碟 $GRID_HOME/bin/kfod disks=asm st=true ds=true cluster=true # /grid/stage/ext/bin/kfod disks=asm st=true ds=true cluster=true #root使用者重新執行root.sh,配置檔案:$ORACLE_HOME/crs/install/crsconfig_params crsctl stop crs -f #kill -9 `ps -ef|grep d.bin| grep -v grep | awk '{print $2}'` export GRID_HOME=$ORACLE_HOME $GRID_HOME/crs/install/rootcrs.pl -deconfig -force -verbose $GRID_HOME/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode -keepdg #find $ORACLE_HOME/gpnp/* -type f -exec rm -rf {} \; dd if=/dev/zero of=/dev/rhdiskN bs=1024k count=100 --清理磁碟頭 --檢視磁碟是否有內容 --AIX用:lquerypv -h /dev/rhdisk5 --linux用:hexdump /dev/sdb ,例如:hexdump -n 1024 -C /dev/sdb1 #保證叢集完全關閉,最好重啟OS,檢查網路情況,是否有cvuqdisk #find /u01 -name cvuqdisk* #rpm -qa cvuqdisk #rpm -ivh $GRID_HOME/cv/rpm/cvuqdisk-*.rpm #檢查配置檔案($ORACLE_HOME/crs/install/crsconfig_params)是否需要修改,18c可以去掉MGMTDB $GRID_HOME/root.sh #若出現錯誤,則在解決錯誤後可以重複執行,不需要先deconfig #也可以圖形化介面使用GRID配置 #export DISPLAY=192.168.59.1:0.0 #$ORACLE_HOME/crs/config/config.sh ----------------------------------------------------- --- 對於18c,需要注意: #若MGMTDB不需要重複建立,則可以修改配置檔案 #配置檔案($ORACLE_HOME/crs/install/crsconfig_params)修改以下內容的值為空: MGMT_DB= GIMR_CONFIG= CDATA_BACKUP_DISK_GROUP= CDATA_BACKUP_FAILURE_GROUPS= CDATA_BACKUP_QUORUM_GROUPS= CDATA_BACKUP_DISKS= CDATA_BACKUP_REDUNDANCY= CDATA_BACKUP_AUSIZE= CDATA_BACKUP_SITES= CDATA_BACKUP_SIZE= ----------------------------------------------------- # OCR恢復 crsctl stop crs crsctl start crs -excl -nocrs #crsctl stop resource ora.crsd -init ocrconfig -import /tmp/export_asm_lhr_logical.bak #邏輯備份恢復 #ocrconfig -restore /tmp/export_asm_lhr_physical.bak #物理備份恢復 crsctl stop crs crsctl start crs ===============================================================================================================
kfod命令:
[root@raclhr-11gR2-N1 app]# kfod -h KFOD-00101: LRM error [107] while parsing command line arguments _asm_a/llow_only_raw_disks KFOD allow only raw devices [_asm_allow_only_raw_disks=TRUE/(FALSE)] _asm_l/ibraries ASM Libraries[_asm_libraries=lib1,lib2,...] _asms/id ASM Instance[_asmsid=sid] a/sm_diskstring ASM Diskstring [asm_diskstring=discoverystring, discoverystring ...] c/luster KFOD cluster [cluster=TRUE/(FALSE)] db/_unique_name db_unique_name for ASM instance[db_unique_name=dbname] di/sks Disks to discover [disks=raw,asm,all] ds/cvgroup Include group name [dscvgroup=TRUE/(FALSE)] g/roup Disks in diskgroup [group=diskgroup] h/ostlist hostlist[hostlist=host1,host2,...] metadata_a/usize AU Size for Metadata Size Calculation metadata_c/lients Client Count for Metadata Size Calculation metadata_d/isks Disk Count for Metadata Size Calculation metadata_n/odes Node Count for Metadata Size Calculation metadata_r/edundancy Redundancy for Metadata Size Calculation n/ohdr KFOD header suppression [nohdr=TRUE/(FALSE)] o/p KFOD options type [OP=DISKS/CANDIDATES/MISSING/GROUPS/INSTS/VERSION/CLIENTS/RM/RMVERS/DFLTDSTR/GPNPDSTR/METADATA/ALL] p/file ASM parameter file [pfile=parameterfile] s/tatus Include disk header status [status=TRUE/(FALSE)] v/erbose KFOD verbose errors [verbose=TRUE/(FALSE)] [grid@raclhr-18c-n1 ~]$ kfod -h KFOD-00101: LRM error [107] while parsing command line arguments _asm_a/llow_only_raw_disks KFOD allow only raw devices [_asm_allow_only_raw_disks=(TRUE)/FALSE] _asm_l/ibraries ASM Libraries[_asm_libraries=lib1,lib2,...] _asms/id ASM Instance[_asmsid=sid] _b/oot Running in pre-install env (boot=TRUE/FALSE) _f/lexinfo Provide flexinfo (_flexinfo=TRUE/FALSE) _p/atch_lib Patchlib [_patch_lib=<asmclntsh_path>] _u/ser OS Username asm_/diskstring ASM Diskstring [asm_diskstring=discoverystring, discoverystring ...] asmc/ompatibility Include diskgroup ASM compatibility [asmcompatibility=TRUE/(FALSE)] ce/ll KFOD display OSS site/rack info [cell=TRUE/(FALSE)] cli/ent_cluster client cluster name clus_/version cluster version clust/er KFOD cluster [cluster=TRUE/(FALSE)] db_/unique_name db_unique_name for ASM instance[db_unique_name=dbname] dbc/ompatibility Include diskgroup DB compatibility [dbcompatibility=TRUE/(FALSE)] disk_/access Disk access method [disk_access=DIRECT/(INDIRECT)] disks Disks to discover [disks=raw,asm,badsize,all] ds/cvgroup Include group name [dscvgroup=TRUE/(FALSE)] f/orce Force option to delete files (force=TRUE/FALSE) g/roup Disks in diskgroup [group=diskgroup] h/ostlist hostlist[hostlist=host1,host2,...] l/abel KFOD display disk labels [label=TRUE/(FALSE)] metadata_a/usize AU Size for Metadata Size Calculation metadata_c/lients Client Count for Metadata Size Calculation metadata_d/isks Disk Count for Metadata Size Calculation metadata_n/odes Node Count for Metadata Size Calculation metadata_r/edundancy Redundancy for Metadata Size Calculation na/me Include disk name [name=TRUE/(FALSE)] no/hdr KFOD header suppression [nohdr=TRUE/(FALSE)] ol/r Import credentials to OLR [olr=TRUE/(FALSE)] op KFOD options type [OP=DISKS/CANDIDATES/MISSING/GROUPS/INSTS/VERSION/PATCHES/PATCHLVL/CLIENTS/RM/RMVERS/DFLTDSTR/GPNPDSTR/METADATA/CREDCRECLUS/GETCLSTYPE/CREDEXPORT/GETASMGUID/CREDDELCLUS/CREDVERIFY/UPGRADEVERIFY/LSCC/CREDLIST/CELLCONFIG/SETDISKACCESSMODE/SETRIMACCESSMODE/ALL] p/file ASM parameter file [pfile=parameterfile] r/im_disk_access Rim disk access method [rim_disk_access=DIRECT/(INDIRECT)] sh/allow Do shallow discovery and report disk cnt [shallow=TRUE/(FALSE)] st/atus Include disk header status [status=TRUE/(FALSE)] v/erbose KFOD verbose [verbose=none,errors,warnings,functions,all] w/rap wrap file for credentials
About Me
........................................................................................................................ ● 本文作者:小麥苗,部分內容整理自網路,若有侵權請聯絡小麥苗刪除 ● 本文在itpub、部落格園、CSDN和個人微 信公眾號( xiaomaimiaolhr)上有同步更新 ● 本文itpub地址: http://blog.itpub.net/26736162 ● 本文部落格園地址: http://www.cnblogs.com/lhrbest ● 本文CSDN地址: https://blog.csdn.net/lihuarongaini ● 本文pdf版、個人簡介及小麥苗雲盤地址: http://blog.itpub.net/26736162/viewspace-1624453/ ● 資料庫筆試面試題庫及解答: http://blog.itpub.net/26736162/viewspace-2134706/ ● DBA寶典今日頭條號地址: http://www.toutiao.com/c/user/6401772890/#mid=1564638659405826 ........................................................................................................................ ● QQ群號: 230161599 、618766405 ● 微 信群:可加我微 信,我拉大家進群,非誠勿擾 ● 聯絡我請加QQ好友 ( 646634621 ),註明新增緣由 ● 於 2019-08-01 06:00 ~ 2019-08-31 24:00 在西安完成 ● 最新修改時間:2019-08-01 06:00 ~ 2019-08-31 24:00 ● 文章內容來源於小麥苗的學習筆記,部分整理自網路,若有侵權或不當之處還請諒解 ● 版權所有,歡迎分享本文,轉載請保留出處 ........................................................................................................................ ● 小麥苗的微店: https://weidian.com/s/793741433?wfr=c&ifr=shopdetail ● 小麥苗出版的資料庫類叢書: http://blog.itpub.net/26736162/viewspace-2142121/ ● 小麥苗OCP、OCM、高可用網路班: http://blog.itpub.net/26736162/viewspace-2148098/ ● 小麥苗騰訊課堂主頁: https://lhr.ke.qq.com/ ........................................................................................................................ 使用 微 信客戶端掃描下面的二維碼來關注小麥苗的微 信公眾號( xiaomaimiaolhr)及QQ群(DBA寶典)、新增小麥苗微 信, 學習最實用的資料庫技術。
........................................................................................................................ |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2654612/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle:GRID 下 root.sh 指令碼Oracle指令碼
- Oracle運維指令碼-巡檢(RAC版)Oracle運維指令碼
- 12c rac在安裝grid軟體執行root.sh指令碼的時候出現PRCT-1431,CLSRSC-180指令碼
- Oracle運維指令碼-巡檢(RAC版本)-V1.1Oracle運維指令碼
- oracle 11g RAC 安裝前準備指令碼Oracle指令碼
- 執行shell指令碼指令碼
- 執行python指令碼後臺執行Python指令碼
- appium ios java 指令碼如何用指令執行,例如 adb 那種方式執行指令碼APPiOSJava指令碼
- mybatis執行sql指令碼MyBatisSQL指令碼
- Selenium執行JavaScript指令碼JavaScript指令碼
- Oracle 11g RAC重新新增節點Oracle
- 在Suse 12.4上安裝11.2.0.4的rac執行root.sh報錯“ORA-12547: TNS:lost contact”
- Oracle利用coe_load_sql_profile指令碼繫結執行計劃OracleSQL指令碼
- [20190107]生成bbed執行指令碼:指令碼
- sh指令碼執行報錯指令碼
- Laravel 中執行 Python 指令碼LaravelPython指令碼
- C# 執行Javascript指令碼C#JavaScript指令碼
- python ansible如何執行指令碼?Python指令碼
- Oracle如何手動重新整理執行計劃Oracle
- oracle執行java程式碼OracleJava
- Oracle Restart 單例項執行root.sh報錯roothas.pl line 377【轉載】OracleREST單例
- xcall叢集執行命令指令碼指令碼
- Linux 後臺執行 PHP 指令碼LinuxPHP指令碼
- Linux 定時執行指令碼、命令Linux指令碼
- [20190510]快速建立執行指令碼.txt指令碼
- Mac 終端執行 shell 指令碼Mac指令碼
- Linux定時執行.sh指令碼Linux指令碼
- python中怎樣執行指令碼Python指令碼
- Oracle 資料庫巡檢指令碼 單例項 RAC 輸出HTML格式Oracle資料庫指令碼單例HTML
- powershell重新命名指令碼指令碼
- oracle-rac出問題需要重灌,自動清理安裝痕跡指令碼Oracle指令碼
- 模擬oracle rac節點異常時如何保持ogg正常執行Oracle
- shell指令碼linux命令連續執行指令碼Linux
- [20231021]生成bbed的執行指令碼.txt指令碼
- 通過 Redis 定時執行指令碼Redis指令碼
- 開機自動執行python指令碼Python指令碼
- python 如何執行子層 py 指令碼Python指令碼
- [轉載]ubuntu中執行python指令碼UbuntuPython指令碼