Oracle DG/ADG上CPU/PSU補丁安裝
2. 斷開主庫和備庫的傳輸
3.停止主庫listener和db
4.停止備庫listener和db
5. 確認OPatch的版本是否正確
OPatch Utility Information
You must use the OPatch utility version 11.1.0.6.2 or later. Oracle recommends that you use the latest released OPatch 11.1, which is available for download from My Oracle Support patch 6880880 by selecting the 11.1.0.0.0 release.
For information about OPatch documentation, including any known issues, see My Oracle Support Note 293369.1 OPatch documentation list.
6.確保PATH變數設定正確
有可能遇到crti.o不存在的錯誤,其實是存在的,設定下變數
find / -name crti.o
/usr/lib64/crti.o
/usr/lib/x86_64-redhat-linux5E/lib64/crti.o
LIBRARY_PATH=/usr/lib/x86_64-redhat-linux5E:$LIBRARY_PATH
export LIBRARY_PATH
7.在主庫解壓補丁
unzip p8290402_111060_<platform>.zip
cd 8290402 opatch napply -skip_subset -skip_duplicate
8. 在非RAC環境下操作
For each database instance running on the Oracle home being patched:
Connect to the database using SQL*Plus. Connect as SYSDBA and run the
catbundle.sql
script as follows:cd $ORACLE_HOME/rdbms/admin sqlplus /nolog SQL> CONNECT / AS SYSDBA SQL> STARTUP SQL> @catbundle.sql cpu apply SQL> QUITFor information about the
catbundle.sql
script, see My Oracle Support Note 605795.1 Introduction to Oracle Database catbundle.sql.If you are not applying CPUApr2009 on top of a previous CPU, enter the following statements after running the
catbundle.sql
script. (If you are applying CPUApr2009 on top of a previous CPU, you do not need to enter the following statements.)cd $ORACLE_HOME/rdbms/admin sqlplus /nolog SQL> CONNECT / AS SYSDBA SQL> @utlrp.sqlCheck the following log files in
$ORACLE_HOME/cfgtoollogs/catbundle
any errors:catbundle_CPU_<database SID>_APPLY_<TIMESTAMP>.log catbundle_CPU_<database sid>_GENERATE_<TIMESTAMP>.logwhere TIMESTAMP is of the form YYYYMMMDD_HH_MM_SS. If there are errors, refer to Section 4, "Known Issues".
Recompiling Views in the Database
You may skip this section if you have recompiled views for this database during the installation of a previous CPU or if the database was created with release 11.1.0.6 or later.
The time required to recompile the views and related objects depends on the total number of objects and on your system configuration. In one internal Oracle test with approximately 2000 views and 4000 objects, the total execution time for
view_recompile_jan2008cpu.sql
andutlrp.sql
was about 30 minutes.
Note:
Depending on these considerations and your downtime schedule, you can choose to schedule the recompilation of views independent of the rest of the CPU installation. If you do this, your system will continue to work; however, the CPU installation will not be complete until the view recompilation is completed.
If you want to check whether view recompilation has already been performed for the database, execute the following statement.
SELECT * FROM registry$history where ID = '6452863';If the view recompilation has been performed, this statement returns one or more rows. If the view recompilation has not been performed, this statement returns no rows.
If any invalid objects were reported, run the
utlrp.sql
script as follows:cd $ORACLE_HOME/rdbms/admin sqlplus /nolog SQL> CONNECT / AS SYSDBA SQL> @utlrp.sqlThen, manually recompile any invalid objects. For example:
SQL> alter package schemaname.packagename compile;
RAC的參照patch中readme就可以了
9. 啟動主庫的listener
10. 在備庫進行軟體的opatch
在備庫解壓補丁 unzip p8290402_111060_<platform>.zipcd 8290402 opatch napply -skip_subset -skip_duplicate11.啟動備庫listener
12.啟動備庫的db
13.將主備庫的同步關係建立
alter system set LOG_ARCHIVE_DEST_STATE_2=enable scope=both;
14.檢查主備庫的同步以及補丁是否應用
select name,SEQUENCE#,APPLIED from v$archived_log order by sequence#;
在primary, standby分別執行opatch lsinventory
在資料庫裡檢查補丁是否安裝成功
SELECT * FROM registry$history where ID = '6452863';
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22039464/viewspace-1754292/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 補丁psu、spu、cpu的意思
- Oracle 補丁那些事兒(PS、PSU、CPU、SPU、BP、DBBP…)Oracle
- 【UP_ORACLE】如何給Oracle DG打補丁(二)備庫安裝補丁步驟Oracle
- 【UP_ORACLE】如何給Oracle DG打補丁(三)主庫安裝補丁步驟Oracle
- Oracle 檢查當前資料庫CPU和PSU補丁資訊Oracle資料庫
- 【PSU】怎麼給RAC打PSU補丁
- Oracle 11g RAC自動打GI PSU補丁Oracle
- 【PSU】Oracle打PSU及解除安裝PSU(單例項)Oracle單例
- oracle ADG與DG的區別Oracle
- 【UP_ORACLE】如何給Oracle DG打補丁(一)整體思路Oracle
- OJVM+GI PSU補丁升級JVM
- ORACLE 12.1.0.2 for linux7.6 應用PSU補丁31550110中的巨坑OracleLinux
- DG環境下打補丁
- weblogic 12 補丁安裝Web
- oracle 跨小版本dg切換應用補丁報錯處理Oracle
- win10怎麼解除安裝補丁_解除安裝win10已安裝更新補丁的方法Win10
- 【補丁】Oracle補丁的知識及術語Oracle
- Oracle RAC更新補丁Oracle
- 12. Oracle版本、補丁及升級——12.2. 補丁及補丁集Oracle
- 【ASK_ORACLE】Oracle 19c RAC使用opatchauto安裝補丁報錯OPATCHAUTO-72083Oracle
- oracle最新補丁查詢Oracle
- Oracle補丁介紹一Oracle
- oracle打補丁回顧Oracle
- Oracle的OPatch補丁更新Oracle
- windows10補丁安裝失敗如何處理_win10無法安裝補丁修復方法WindowsWin10
- GI PSU打補丁之opatch auto 自動方式分別打GI_HOME和ORACLE_HOMEOracle
- oracle rac 打PSU補丁30805461兩個問題(Java版本及空間不足導致失敗)OracleJava
- win10更新補丁解除安裝怎麼操作_解除安裝win10更新補丁詳細步驟Win10
- 【DBA Part03】國產Linux上Oracle RAC安裝-升級-ADG-遷移LinuxOracle
- 【DG】MAA-RAC to RAC ADG配置
- HoudahSpot 破解補丁最新 HoudahSpot 中文 for Mac安裝教程Mac
- 【Rhino 8.12下載與安裝教程 含補丁】
- 【Mastercam 2025下載與安裝教程 含補丁】AST
- Eclipse 2020-06 漢化補丁包(附安裝教程+安裝包)Eclipse
- Win10系統怎樣解除安裝幽靈熔斷補丁_win10解除安裝幽靈補丁的方法Win10
- win10怎麼解除安裝KB4549951補丁 win10系統解除安裝KB4549951補丁的教程Win10
- 怎麼解除安裝win10更新補丁_如何刪除win10系統補丁Win10
- 如何刪除win10更新補丁?win10系統更新補丁解除安裝方法Win10
- ORACLE打補丁的方法和案例Oracle