在紅旗DC server 6.0上安裝oracle 11gR2時出現的錯誤,以及解決辦法
前端時間在紅旗DC server 6.0上安裝oracle 11gR2時出現了幾個錯誤,經過不斷的排查,最終解決了這些錯誤,現將其整理如下,以供大家參考,如果需補充的請大家補充。
1. 在校驗時會碰到如下兩個錯誤:
a)PRVF-5150的錯誤,此錯誤可以忽略。
這個是oracle的一個bug,可以不用管,具體見:Device Checks for ASM Fails with PRVF-5150: Path ORCL: is not a valid path [ID 1210863.1]
b)PRVF-5623,PRVF-5636
這種錯誤可以忽略
2. 在第一個節點上執行root.sh指令碼後,報下面的錯誤:
./root.sh on node1:
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 'root', privgrp 'root'..
Operation successful.
OLR initialization - successful
root wallet
root wallet cert
root cert export
peer wallet
profile reader wallet
pa wallet
peer wallet keys
pa wallet keys
peer cert request
pa cert request
peer cert
pa cert
peer root cert TP
profile reader root cert TP
pa root cert TP
peer pa cert TP
pa peer cert TP
profile reader pa cert TP
profile reader peer cert TP
peer user cert
pa user cert
Adding daemon to inittab
ACFS-9200: Supported
Invalid kernel variation 'AXS3'.
Operation aborted.
CRS-2672: Attempting to start 'ora.mdnsd' on 'xxxx_db-01'
CRS-2676: Start of 'ora.mdnsd' on 'xxxx_db-01' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'xxxx_db-01'
CRS-2676: Start of 'ora.gpnpd' on 'xxxx_db-01' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'xxxx_db-01'
CRS-2672: Attempting to start 'ora.gipcd' on 'xxxx_db-01'
CRS-2676: Start of 'ora.cssdmonitor' on 'xxxx_db-01' succeeded
CRS-2676: Start of 'ora.gipcd' on 'xxxx_db-01' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'xxxx_db-01'
CRS-2672: Attempting to start 'ora.diskmon' on 'xxxx_db-01'
CRS-2676: Start of 'ora.diskmon' on 'xxxx_db-01' succeeded
CRS-2676: Start of 'ora.cssd' on 'xxxx_db-01' succeeded
ASM created and started successfully.
Disk Group DATA created successfully.
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 4b0f3c0e9c3c4f89bf3f7280c0a20d07.
Successfully replaced voting disk group with +DATA.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 4b0f3c0e9c3c4f89bf3f7280c0a20d07 (ORCL:DATA01) [DATA]
Located 1 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'xxxx_db-01'
CRS-2676: Start of 'ora.asm' on 'xxxx_db-01' succeeded
CRS-2672: Attempting to start 'ora.DATA.dg' on 'xxxx_db-01'
CRS-2676: Start of 'ora.DATA.dg' on 'xxxx_db-01' succeeded
ACFS-9200: Supported
ACFS-9200: Supported
CRS-2672: Attempting to start 'ora.registry.acfs' on 'xxxx_db-01'
CRS-5016: 程式 "/u01/app/11.2.0/grid/bin/acfsregistrymount" (由代理 "/u01/app/11.2.0/grid/bin/orarootagent.bin" 衍生, 用於操作 "start") 失敗: 詳細資訊見 "(:CLSN00010:)" (位於 "/u01/app/11.2.0/grid/log/xxxx_db-01/agent/crsd/orarootagent_root/orarootagent_root.log")
CRS-2674: Start of 'ora.registry.acfs' on 'xxxx_db-01' failed
CRS-4000: Command Start failed, or completed with errors.
FirstNode configuration failed at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 8373.
/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/rootcrs.pl execution failed
2.1此錯誤是紅旗DC Sserver6.0中的bug,因此需要在執行root.sh前修改/u01/app/11.2.0/grid/lib/osds_acfsroot.pm檔案中的一行程式碼(兩個節點都修改),並執行2.2後,再執行root.sh:
具體補丁包:/tmp/osds_acfsroot.pm.diff
內容如下:
--- /u01/app/11.2.0/grid/lib/osds_acfsroot.pm 2011-03-02 13:51:41.000000000 +0800
+++ /u01/app/11.2.0/grid/lib/osds_acfsroot.pm.new 2011-03-02 13:51:25.000000000 +0800
@@ -712,7 +712,7 @@
# case, it's an internal error that should have been caught before we got
# here and so we just bail. We don't want to fail the entire oracle install
# and so return USM_NOT_SUPPORTED so that OUI can complete sans USM.
- if (!(($variation eq 'el5') ||
+ if (!(($variation eq 'el5') || ($variation eq 'AXS3') ||
($variation eq 'el5PAE') || ($variation eq 'el5xen')))
{
lib_error_print(9999, "Invalid kernel variation '$variation'.");
patch -p0 < /tmp/osds_acfsroot.pm.diff
2.2 新增核心目錄:
cd $ORACLE_HOME/install/usm/EL5/x86_64/2.6.18-8
cp -a 2.6.18-8.el5-x86_64 2.6.18-8.AXS3-x86_64
3. 當第一個節點執行root.sh檔案後,在第二個節點上執行root.sh檔案,會報如下錯誤:
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]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
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 'root', privgrp 'root'..
Operation successful.
OLR initialization - successful
Adding daemon to inittab
ACFS-9200: Supported
Invalid kernel variation 'AXS3'.
Operation aborted.
CRS-4402: CSS 守護程式已在獨佔模式下啟動, 但在節點 xxxx_db-01 (編號為 1) 上發現活動 CSS 守護程式, 因此正在終止
An active cluster was found during exclusive startup, restarting to join the cluster
Failed to start Oracle Clusterware stack
Failed to start Cluster Synchorinisation Service in clustered mode at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 1016.
/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/rootcrs.pl execution failed
這是oracle 11.2.0.2上的一bug,需要打補丁:p9974223_112020_Linux-x86-64.zip
打補丁的方法如下:
a)兩個節點上(root):
b)兩個節點上(grid):
/u01/app/11.2.0/grid/OPatch/opatch napply -local -oh /u01/app/11.2.0/grid -id 9974223
c)兩個節點上(root):
/u01/app/11.2.0/grid/crs/install/rootcrs.pl -patch
4. 將補丁打完後,在節點2上再次執行root.sh,即可安裝完成。
5. 在後續的校驗中可能出現scan ip不一致的問題,如:
資訊: 正在檢查 "dbnode-scan" 的名稱解析設定...
資訊: ERROR:
資訊: PRVF-4664 : 發現與 SCAN 名稱 "dbnode-scan" 不一致的名稱解析條目
資訊: ERROR:
資訊: PRVF-4657 : "dbnode-scan" (IP 地址: 192.168.1.129) 的名稱解析設定檢查失敗
資訊: ERROR:
資訊: PRVF-4664 : 發現與 SCAN 名稱 "dbnode-scan" 不一致的名稱解析條目
可以忽略。
6. 安裝完後,發現資料庫的時間是錯的,grid,oracle日誌的時間也是錯的,和正確的時間差了16個小時整。
時區錯誤的解決辦法:
Oracle使用者下:srvctl setenv database -d track -t TZ=Asia/Beijing
但是這樣只能解決oracle的時區時間,對於grid的時區時間卻沒有改變過來,
要想徹底解決時區的問題,
需要修改:$GRID_HOME/crs/install/s_crsconfig_
詳細見How To Change Timezone for 11gR2 Grid Infrastructure [ID 1209444.1]
因此,建議在安裝完grid後,檢查一下此檔案的內容,如果錯誤,調整完後,再安裝oracle資料庫軟體,建庫就不會出現時區錯誤。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12129601/viewspace-709864/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 關於IIS安裝後出現500錯誤的解決辦法
- Ubuntu 安裝包時提示錯誤E: Unable to locate package mysql-server錯誤 解決辦法UbuntuPackageMySqlServer
- scp出現錯誤的解決辦法
- Linux下安裝oracle,遇到錯誤的解決辦法LinuxOracle
- Ubuntu20.04安裝MySQL8.0時出現依賴錯誤解決辦法UbuntuMySql
- 安裝wsl錯誤的一種解決辦法
- 安裝Office2007時出現1402錯誤的解決辦法
- Xamarin提示安裝包錯誤解決辦法
- Mysql出現連線錯誤解決辦法MySql
- SQL Server 2000 安裝檔案掛起錯誤的解決辦法SQLServer
- 安裝vCenter Server出現1603錯誤的一種解決方法Server
- hp-unix 安裝JDK出現異常,以及解決辦法JDK
- oracle 12c r2 rac 安裝時CLSRSC-400錯誤解決辦法Oracle
- 連線oracle錯誤解決辦法Oracle
- oracle 1455 錯誤解決辦法Oracle
- 在使用Apple M1晶片重新安裝macOS出現錯誤的解決辦法APP晶片Mac
- PHP編譯安裝時常見錯誤解決辦法,php編譯常見錯誤PHP編譯
- Win7安裝錯誤提示與解決辦法Win7
- 紅旗linux 4.1上安裝oracle 9204LinuxOracle
- Fedora 8下永中Office安裝出錯的解決辦法
- NPM run dev 出現這樣錯誤我的解決辦法NPMdev
- python3.9安裝wordcloud出錯解決辦法PythonCloud
- git add .出現錯誤LF will be replaced by CRLF in 解決辦法Git
- 安裝ionic 報錯 安裝canvas報錯 解決辦法Canvas
- 時區錯誤導致oracle的EM不能啟動解決辦法Oracle
- Windows 8.1應用安裝錯誤0×80004005的解決辦法Windows
- dns錯誤怎麼辦 dns錯誤的解決辦法DNS
- rhel 6.1 64位上Oracle 10G R2 安裝與常見錯誤解決辦法Oracle 10g
- Python: 安裝 sklearn 包出現錯誤的解決方法Python
- win7 64位 VC++6.0 除錯出錯 解決辦法Win7C++除錯
- Win7 IIS7.5執行ASP時出現500錯誤的解決辦法Win7
- 安裝VMware出現“Error 1406”的解決辦法Error
- mysql安裝出現 conflicts with mysql*的解決辦法MySql
- 【git】Git commit時提示錯誤時 解決辦法GitMIT
- npm 使用安裝超時的解決辦法NPM
- php在iis上配置時報mysql_connect錯誤解決辦法PHPMySql
- unity player 顯示播放錯誤時的解決辦法Unity
- CATIA許可證時間錯誤的解決辦法