【RAC】 RAC For W2K8R2 安裝--安裝過程中碰到的問題(九)

Appleses發表於2016-01-30

RACRAC For W2K8R2 安裝--安裝過程中碰到的問題()

一.1  BLOG文件結構圖

 

wpsC213.tmp 

 

一.2  前言部分

 

一.2.1  導讀

各位技術愛好者,看完本文後,你可以掌握如下的技能,也可以學到一些其它你所不知道的知識,~O(∩_∩)O~:

① RAC for windows 2008R2 的安裝

② rac環境下共享儲存的規劃和搭建

③ starwind軟體的應用

④ VMware workstation 如何做共享儲存

⑤ rac資料的靜默安裝和dbca靜默建庫

⑥ rac資料庫在windows環境下的解除安裝

⑦ windows 2008R2的學習

⑧ windows環境雙網路卡下IP地址的配置

 

 

注意:本篇BLOG中程式碼部分需要特別關注的地方我都用黃色背景和紅色字型來表示,比如下邊的例子中,thread 1的最大歸檔日誌號為33thread 2的最大歸檔日誌號為43是需要特別關注的地方。

  List of Archived Logs in backup set 11

  Thrd Seq     Low SCN    Low Time            Next SCN   Next Time

  ---- ------- ---------- ------------------- ---------- ---------

  1    32      1621589    2015-05-29 11:09:52 1625242    2015-05-29 11:15:48

  1    33      1625242    2015-05-29 11:15:48 1625293    2015-05-29 11:15:58

  2    42      1613951    2015-05-29 10:41:18 1625245    2015-05-29 11:15:49

  2    43      1625245    2015-05-29 11:15:49 1625253    2015-05-29 11:15:53

 

 

 

 

 

本文如有錯誤或不完善的地方請大家多多指正,ITPUB留言或QQ皆可,您的批評指正是我寫作的最大動力。

 

 

一.2.2  相關參考文章連結

 

linux 環境下rac的搭建:

一步一步搭建 oracle 11gR2 rac + dg 之前傳(一) http://blog.itpub.net/26736162/viewspace-1290405/  

一步一步搭建oracle 11gR2 rac+dg之環境準備(二)  http://blog.itpub.net/26736162/viewspace-1290416/ 

一步一步搭建oracle 11gR2 rac+dg之共享磁碟設定(三) http://blog.itpub.net/26736162/viewspace-1291144/ 

一步一步搭建 oracle 11gR2 rac+dg之grid安裝(四)  http://blog.itpub.net/26736162/viewspace-1297101/ 

一步一步搭建oracle 11gR2 rac+dg之database安裝(五) http://blog.itpub.net/26736162/viewspace-1297113/ 

一步一步搭建11gR2 rac+dg之安裝rac出現問題解決(六) http://blog.itpub.net/26736162/viewspace-1297128/ 

一步一步搭建11gR2 rac+dg之DG 機器配置(七)  http://blog.itpub.net/26736162/viewspace-1298733/ 

一步一步搭建11gR2 rac+dg之配置單例項的DG(八)  http://blog.itpub.net/26736162/viewspace-1298735/  

一步一步搭建11gR2 rac+dg之DG SWITCHOVER功能(九) http://blog.itpub.net/26736162/viewspace-1328050/ 

一步一步搭建11gR2 rac+dg之結尾篇(十)  http://blog.itpub.net/26736162/viewspace-1328156/ 

【RAC】如何讓Oracle RAC crs_stat 命令顯示完整  http://blog.itpub.net/26736162/viewspace-1610957/ 

如何建立ASM磁碟  http://blog.itpub.net/26736162/viewspace-1401193/ 

linux下rac的解除安裝: http://blog.itpub.net/26736162/viewspace-1630145/

 

 

一.2.3  本系列blog簡介

 

個人一直以為windows環境的rac效能不是很好,也有瓶頸,所以沒有研究windows環境下的安裝,不過最近一個網友問起rac for windows環境下的安裝,我手癢癢就試了試安裝,果然也學到了很多的知識,今天起就分為幾個部分給大家分享出來,若有不對的地方還請大家指出來。

需要指出的是:文章中有的內容來源於網路,所以截圖可能和安裝時不太一樣,但是理解了原理,安裝都是一樣的,若有疑問可以及時聯絡我,這裡感謝廣大網友的分享!

 

一.3  安裝過程中碰到的錯誤

一.3.1  INS-20802: Grid Infrastructure configuration failed

原因 - 外掛的執行方法失敗 

操作 - 參閱日誌或與 Oracle 技術支援服務聯絡。 

日誌檔案位置

C:\Program Files\Oracle\Inventory\logs\installActions2015-06-30_01-58-16PM.log

 

 

 

這裡有比較詳盡的討論:http://blog.ronnyegner-consulting.de/2010/04/17/11g-release-2-for-windows-buggy/


Also please chekc for error message in
Installation log
< GRID_HOME>\cfgtoollogs\crsconfig\rootcrs_.log on Local Node
< GRID_HOME>\cfgtoollogs\crsconfig\rootcrs_.log on Remote Node

 

 

附:其他故障的解決方法

1A Troubleshooting the Oracle Grid Infrastructure Installation Process

http://docs.oracle.com/cd/E11882_01/install.112/e24169/trouble.htm#sthref718

INS-20802: Grid Infrastructure configuration failed

Cause: If an error is encountered while running an Oracle Grid Infrastructure installation and the Deinstallation tool is used to remove the failed installation, the rootcrs.pl -deconfig command is not run.

Action: Run the rootcrs.pl -deconfig command manually after using the Deinstallation tool, then install Oracle Grid Infrastructure again.

 

Master Note: Windows Grid Infrastructure Install/Upgrade fails with [INS-20802]: Most Common Causes and Solutions (Doc ID 1542814.1) (1542814.1):1542814.1BLANK

Windows: [INS-20802] Grid Infrastructure Configuration Failed as Local Node can not get Correct status of crssetup.exe on Remote Node (1215613.1):1215613.1BLANK

Windows: GI Installation Fails With 'INS-20802 Grid Infrastructure configuration failed' due to loopback Interface (1490913.1):1490913.1BLANK

 

1,檢查防火牆。並是不是說簡單的關閉防火牆就可以了,需要在:伺服器管理器-高階安全防火牆中將“域配置檔案”,“專用配置檔案”,“公用配置檔案”均關閉。

2,一定要將網路卡改成英文,否則addvip那裡執行命令有問題。報錯OUI-20802

3,最好將另外一節點(相對執行安裝操作主節點)的C盤修改成共享。

4,修改“禁用媒體感知功能”時,主意登錄檔不要有空格。(因為這個空格,卡了一晚上,日~

5,不要格式化磁碟

6,解壓時把前兩個檔案一起解壓,不要分開,否則會缺檔案。(這個不用提醒了,大家應該都知道)

1、禁用不需要的網路卡

2、安裝11.2.0.4

3、兩個節點都做成域控制器

4、確何C盤和安裝Oracle的盤設定了“完全控制”的高階共享

 

 

 

 

察看安裝日誌,沒有記錄任何錯誤資訊。
表現為節點1(安裝節點)服務建立正常,節點2服務建立失敗,只有一個OracleRemExecService服務啟動。
察看系統日誌,一堆的類似如下錯誤:
racleOUIOraCrs11g_home1Service 服務啟動失敗:
服務沒有及時響應啟動或控制請求。

 

 

物理環境:2臺華為RH2488,配置48核心CPU,64GB記憶體。。

物理伺服器安裝的WIN2008 X64企業版作業系統,如果在此伺服器上安裝oracle 10G需要在BIOS中關閉CPU的超執行緒屬性。之前配置過程中遇到過此問題,MS因為ORACLE 10G支援48核心CPU,而開了開執行緒後,CPU可以到64核心。。。。11G未測試,,,應該升級了對CPU的支援。。。

掛載華為S5600T儲存。。。已經成功安裝oracle 11g r2 RAC for windows 64bit...

當前oracle 版本為11.2.0.1 已下載了11.2.0.3的升級檔案(其實可以直接在新環境上安裝11.2.0.3的升級檔案包,安裝完成後就是11.2.0.3,不需要像10G那樣的升級,之前是先安裝其他版10.2.0.1再安裝升級包,在原目錄的基礎上升級到10.2.0.410.2.0.5.。。。。)

但上在升級的過程中遇到如下問題。。。

http://blog.ronnyegner-consulting.de/2010/04/17/11g-release-2-for-windows-buggy/

(回頭轉中文連結)

遇到的問題描述和上述連結一模一樣。。。

wpsC223.tmp

 

其中有人提出成功的解決方法如下:

Finally was ableto install the grid infrastructure successfully.

1. Make surethat the disk drives are not lettered. After using the diskpart utility tocreate the partitions be sure to do a refresh in Disk Manager facility ofServer Manager to be sure that none of the dirve has letters on all nodes. Ifthey do, remove them and do a refresh again on all nodes to be sure that thedrives are not lettered. This prevented us from succesfully configuring ASM.
2. issue a route 0.0.0.0 delete on all nodes. Caution be sure that you saveyour defualt gateway address before executing this command. You will need tore-enter it after issuing this command. You may also need to login from theconsole as you will not be able to access the server untill you enter thedefault gateway.
3. remove all network adapters leaving only the private and public interfacesand all references to ipv6 in all of the network adapters. When you issue anipconfig /all you should only see the private and public interfaces. We had toissue the following commands in order to achieve this.
netsh Interface 6to4 set state state=disabled
netsh interface isatap set state disabled
netsh interface teredo set state disabled
plus we had to remove all of the ipv6 references in each of the remainingnetwork adapters. You may need to enter further netsh commands depending onwhat interfaces are installed on your servers.

 

最後是能夠成功安裝電網基礎設施。【根據上內容進行檢查修改】

 

1、檢查本機主機名,要求沒有大寫。。。並與c:\windows\system32\drivers\etc\hosts檔案中設定的一模樣。。。。

   確保磁碟驅動器字母。使用Diskpart實用程式建立的分割槽後一定要做好重新整理伺服器管理的磁碟管理設施,以確保沒有dirve的所有節點上的字母。如果他們這樣做,刪除它們,做再次重新整理所有節點上,以確保驅動器字母。這阻止我們成功地配置ASM

【按照以上內容配置完,因為我是11.2.0.1升級到11.2.0.3  磁碟上已經有檔案,並且所有的磁碟名全是以英文命名的。。。所以。。第一步通過。。】

2。發出的路由0.0.0.0刪除所有節點上。注意確保您儲存你的defualt閘道器地址在執行此命令之前。發出該命令後,您將需要重新輸入。您可能還需要從控制檯登入,您將無法訪問該伺服器,直到你輸入的預設閘道器。

【如果是遠端桌面過去的,刪除預設路由之前請先手工新增靜態路由到你自己使用的網段。。route delete 0.0.0.0 mask 0.0.0.0 x.x.x.x

3。刪除所有網路介面卡只留下了私人和公共的介面和所有的網路介面卡中的所有引用到IPv6。當你發出一個IPCONFIG / ALL,您應該只看到私營部門和公共介面。為了實現這一目標,我們不得不發出以下命令。

netsh Interface 6to4 set state state=disabled
netsh interface isatap set state disabled
netsh interface teredo set state disabled

再加上我們不得不刪除所有餘下的每個網路介面卡的IPv6引用。【在網路卡屬性裡去除勾選IPV6協議的選項】您可能需要進一步輸入netsh命令取決於您的伺服器上安裝介面是什麼。

 

我要說的還是。。。失敗了。。。Ins-20802網格基礎結構配置失敗

 

國外網站解決INS-20802方法:(自己測試沒有成功,但國外測試成功了。。。。。。)

wpsC234.tmp

但又有人說了。。

well , i am hit by the same error , but metalink says the error is not related to the service.

the service is a dummy service and can be ignored.

The erorr may be related to something else.

WIN: During Installation The Event Log Shows Failure To Start Some Services

Solution

OracleOUIVC8Service is a dummy service and it is actually not supposed to start. It is used by the installer to install VC8 binaries on the remote node. It’s not a proper Windows service and it is not expected to start, and in fact the Installer expects and handles the exceptions about the service not starting during the install process.

The same is true for the OracleOUIOraCrs11g_home1Service service and any other OracleOUI[homename]Service . These are dummy services used by the installer to run an executable and do install work. They are not actually supposed to start. So you can ignore these errors in the Windows event log.

 

INS-20802 實用程式失敗,可忽略   【INS-20802網格基礎結構配置 失敗是不能忽略的。。。上面就是忽略的代價】

wpsC245.tmp

再查oracle 文件。。。。。已經沒有環境測試了【為了給資料庫搭建一個好的執行環境,我準備完全解除安裝並重新安裝oracle】。。。。

剩下的留給你們測試了!因為我的第一臺伺服器oracle 無法啟動了,第2oracle啟動正常。。。

第一臺伺服器:

C:\>crs_stat -t

PROC-26: 訪問物理儲存時出錯

ORA-15077: 找不到提供所需磁碟組的 ASM 例項

 

 

第二臺伺服器:

C:\>crs_stat -t

名稱           型別           目標      狀態      主機

------------------------------------------------------------

ora.CRS.dg     ora....up.type ONLINE    ONLINE    oradb2

ora.DATA.dg    ora....up.type ONLINE    ONLINE    oradb2

ora.FRA.dg     ora....up.type ONLINE    ONLINE    oradb2

ora....ER.lsnr ora....er.type ONLINE    ONLINE    oradb2

ora....N1.lsnr ora....er.type ONLINE    ONLINE    oradb2

ora.asm        ora.asm.type   ONLINE    ONLINE    oradb2

ora.eons       ora.eons.type  ONLINE    ONLINE    oradb2

ora.gsd        ora.gsd.type   OFFLINE   OFFLINE

ora....network ora....rk.type ONLINE    ONLINE    oradb2

ora.oc4j       ora.oc4j.type  OFFLINE   OFFLINE

ora.ons        ora.ons.type   ONLINE    ONLINE    oradb2

ora.oradb1.vip ora....t1.type ONLINE    ONLINE    oradb2

ora....SM2.asm application    ONLINE    ONLINE    oradb2

ora....B2.lsnr application    ONLINE    ONLINE    oradb2

ora.oradb2.gsd application    OFFLINE   OFFLINE

ora.oradb2.ons application    ONLINE    ONLINE    oradb2

ora.oradb2.vip ora....t1.type ONLINE    ONLINE    oradb2

ora.orcl.db    ora....se.type ONLINE    ONLINE    oradb2

ora.scan1.vip  ora....ip.type ONLINE    ONLINE    oradb2

 

C:\>crsctl query css votedisk

##  STATE    File Universal Id                File Name Disk group

--  -----    -----------------                --------- ---------

1. ONLINE   018e6066e18c4fdcbf5a77f7617e9e0a (\\.\ORCLDISKASM0) [CRS]

找到了 1 個表決磁碟。

 

C:\>ocrcheck

Errors in file :

ORA-06550: line 2, column 1:

PLS-00306: wrong number or types of arguments in call to 'READ'

ORA-06550: line 2, column 1:

PL/SQL: Statement ignored

Errors in file :

ORA-06550: line 2, column 1:

PLS-00306: wrong number or types of arguments in call to 'READ'

ORA-06550: line 2, column 1:

PL/SQL: Statement ignored

PROT-602: 無法從叢集登錄檔中檢索資料

PROC-26: 訪問物理儲存時出錯

 

 

附:其他故障的解決方法

1A Troubleshooting the Oracle Grid Infrastructure Installation Process

http://docs.oracle.com/cd/E11882_01/install.112/e24169/trouble.htm#sthref718

INS-20802: Grid Infrastructure configuration failed

Cause: If an error is encountered while running an Oracle Grid Infrastructure installation and the Deinstallation tool is used to remove the failed installation, the rootcrs.pl -deconfig command is not run.

Action: Run the rootcrs.pl -deconfig command manually after using the Deinstallation tool, then install Oracle Grid Infrastructure again.

 

 

2[INS-20802]?Oracle?NetConfiguration?Assistant?failed

http://blog.csdn.net/johnsonvily/article/details/6399932

 

3、連結--連結--連結圈

http://blog.ronnyegner-consulting.de/2010/04/17/11g-release-2-for-windows-buggy/

這篇文章裡提到一個有價值的連結

    https://forums.oracle.com/forums/thread.jspa?threadID=1060060&start=15&tstart=0

    同樣,這裡也有一個

         http://download.oracle.com/docs/cd/E11882_01/relnotes.112/e10842/toc.htm#CJAJJAFB

         這裡提到一個狀況。

        

4.2.30 Upgrade of Oracle Clusterware Release 10.2.0.5 to Oracle Clusterware 11.2.0.1 Fails

During an Oracle Grid Infrastructure for a cluster installation, upgrade of Oracle Clusterware 10.2.0.5 to Oracle Clusterware 11.2.0.1 fails. The installer displays the following message:

Grid Infrastructure Configuration failed.

Solution:

Upgrading directly from Oracle Clusterware 10.2.0.5 to Oracle Clusterware 11.2.0.1 is not supported. Either complete the upgrade by running an Oracle Grid Infrastructure for a cluster 11.2.0.2 installation, or contact support for a one-off patch for the Oracle Clusterware 11.2.0.1 software.

This issue is tracked with Oracle bug 9776578.

 

 

辦法一:

 

ODM FINDING:

 

RAC on Windows: Oracle Grid Infrastructure Install or Upgrade Fails With Error INS-20802 if Microsoft WMI Service is Disabled (文件 ID 1641356.1)

 

PPLIES TO:

 

Oracle Database - Standard Edition - Version 11.2.0.2 and later

Information in this document applies to any platform.

SYMPTOMS

 

On Windows, Oracle Grid Infrastructure install or upgrade will fail during 'Grid Infrastructure Configuration' and likely at 85% with the error:  INS-20802 presented.

 

CAUSE

 

The INS-20802 error is rather generic and may have many causes indicating many underlying issues, however, one such case is if the Microsoft Windows Management Instrumentation Service (WMI) is disabled on the remote node(s)

 

 

 

Here is an example / test case scenario where we would expect to see this behavior:

 

1.  install Grid Infrastructure 11.2.0.2

 

2.  disable and stop WMI on both nodes

 

3.  patch Grid Infrastructure with (the latest) patch bundle - 11.2.0.2.27, for example

 

4.  upgrade GI from 11.2.0.2.27 to 11.2.0.4

 

***  Grid Infrastructure configuration fails at 85% with error:  INS-20802 reported ***

 

 

 

$GI_HOME\cfgtoollogs\crsconfig\rootcrs.log from the remote node (example:  node 2) reports:

 

 

 

2014-03-29 18:38:43: J2EE (OC4J) Container Resource enable ... passed

2014-03-29 18:38:43: Running as user Administrator: E:\app\11.2.0\grid_1\bin\srvctl start oc4j

2014-03-29 18:38:43: s_run_as_user2: Running E:\app\11.2.0\grid_1\bin\srvctl start oc4j

2014-03-29 18:38:45: E:\app\11.2.0\grid_1\bin\srvctl exited with rc=1

 

2014-03-29 18:38:45: Error encountered in the command E:\app\11.2.0\grid_1\bin\srvctl start oc4j

>  OC4J could not be started

>  PRCR-1079 : Failed to start resource ora.oc4j

>  CRS-2674: Start of 'ora.oc4j' on 'jsrac64b' failed

>  CRS-2678: 'ora.oc4j' on 'jsrac64b' has experienced an unrecoverable failure

>  CRS-0267: Human intervention required to resume its availability.

>  End Command output

2014-03-29 18:38:45: J2EE (OC4J) Container Resource Start ... failed ...

2014-03-29 18:38:45: Failed to perform J2EE (OC4J) Container Resource upgrade

 

 

Specifically, the WMI is must be enabled in order for our ora.oc4j clusterware resource to startup.  If WMI is disabled during install or upgrade, the ora.oc4j resource will not startup and cause the Grid Infrastructure configuration to fail.

 

SOLUTION

 

-  Re-enable the (non-Oracle) Windows Management Instrumentation service on the remote node(s) by setting it back to 'Automatic'

 

-  return to the Oracle Universal Installer (OUI) window (on node 1) and click 'Retry'

 

辦法二:

解決:

重新安裝前,把兩個節點環境重新檢測了一遍。發現節點一命名為privatepublic。節點二的網路卡命名為PrivatePublic。網路卡首字母大小寫不一樣。把節點二的網路卡修改為privatepublic,點選安裝介面的'retry'通過。

總結:

      1.儘管runcluvfy驗證通過,但是隻是預估,忽略網路卡命名大小寫,但在安裝過程中對大小寫敏感。

            2.rac安裝過程不能夠通過的情況下,還是先驗證一下兩個節點環境是否一致,再考慮重灌。

 

一.3.1.1  我的解決辦法:

重新安裝作業系統,按照步驟,一次完成配置。

 

 

一.3.2  INS-08109 'nodeselectionpage'

wpsC246.tmp

解決思路如下:

1env|grep ORA_CRS_HOME 是否有設定這個引數,有的話取消 unset

2,確保oracle 能訪問/etc/oracle or /var/opt/oracle

3,可能是oracle誤報了,退出重來

 

我的問題是誤報,退出重來就可以了。

 

 

 

一.3.3  OraOLEDbpus.dll找不到指定的模組的解決辦法

OraOLEDbpus.dll 找不到指定的模組

在oracle的安裝目錄下卻能找到OraOLEDbpus.dll,應該是其未能找到該路徑,開啟系統的環境變數,修改至正確的路徑,如:

D:\oracle\ora92\bin

 

 

修改path的環境變數,加上:D:\app\Administrator\product\11.2.0\dbhome_1\bin;D:\app\11.2.0\grid\bin;  加在path的最前邊。

 

 

一.4  About Me

 

...........................................................................................................................................................................................

本文作者:小麥苗,只專注於資料庫的技術,更注重技術的運用

ITPUB BLOG:http://blog.itpub.net/26736162

本文地址:http://blog.itpub.net/26736162/viewspace-1721373/

本文pdf版:http://yunpan.cn/QCwUAI9bn7g7w  提取碼:af2d

QQ:642808185 若加QQ請註明你所正在讀的文章標題

創作時間地點:2015-06-27 09:00~ 2015-07-02 19:00 於外匯交易中心

...........................................................................................................................................................................................

 

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-1721373/,如需轉載,請註明出處,否則將追究法律責任。

相關文章