[DLP] 安裝與建置 02 安裝 Oracle Critical Patch Update

版本:12.5

1.   set PATH=%PATH%;%ORACLE_HOME%\OPatch

image

 

2.   opatch version

image

 

3.   解壓縮檔案「Oracle_11.2.0.4.0_CPU2014OCT_Win64」。

image

 

4.   於「\Oracle_11gR2_Win\OPath_64bit_11.2.0.3.6」解壓縮檔案「p6880880_112000_MSWIN-x86-64」。

image

image

 

5.   將「C:\oracle\product\11.2.0\dbhome_1」內的資料夾「OPatch」修改名稱為「OPatch.old」。

image

image

 

6.   複製解壓縮後的「OPatch」至「C:\oracle\product\11.2.0\dbhome_1」內。

image

image

 

7.   opatch version,可看到版本從:11.2.0.3.4 變更為 11.2.0.3.6。

image

 

8.   新增資料夾「oracle11gsoftware」於「C:\」。

image

 

9.   於「\Oracle_11gR2_Win\CriticalPathUpdate_11.2.0.4.0_2014OCT_64bit_Win」解壓縮檔案「p19651773_112040_MSWIN-x86-64」。

image

image

 

10.   停用所有 oracle 服務。

image

 

11.   複製步驟9【19651773】 至c:\oracle11gsoftware 資料夾。

image

 

12.   開啟命令提示字元,執行「cd C:\oracle11gsoftware\19651773」。

image

 

13.   執行「opatch apply」。

image

 

※除錯方式

  • OPatch failed with error code = 74 oci.dll <<oci.dll 被MSDTC locker>>
  • 將 oracle home 目錄更名
  • 重新開機
  • 回復原目錄名
  • 停服務 → ok

 

14.   輸入信箱。

image

 

15.   是否可以開始修正本機系統?[ y: n],輸入「y」。

image

 

16.   更新 ORACLE Patch 成功。

image

 

17.   重開機後確認Oracle服務是否啟動(64 bit only 5)。

image

image