安装 Oracle Database PSU 10.2.0.4.2 步骤
生活随笔
收集整理的這篇文章主要介紹了
安装 Oracle Database PSU 10.2.0.4.2 步骤
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
5??? 安裝PSU 10.2.0.4.2
本例是基于10.2.0.4版本2009-10-22(Metalink 756671.1)發布的Oracle Recommended Patches的安裝. 本PSU(Patch Set Update)是基于10.2.0.4版本的第二個累計補丁集10.2.0.4.2(Bug 8833280), 且已經包含了截至到200910月份的CPU(Critical Patches Update), 共修正了293個bug. PSU 10.2.0.4.2 包括如下以前發布的補丁:
Generic Recommended Bundle #4 (Patch 8362683)
RAC Recommended Bundle #3 (Patch 8344348)
Data Guard Broker Recommended Bundle #1 (Patch 7936793)
Data Guard Physical/Recovery Recommended Bundle #1 (Patch 7936993)
Data Guard Logical Recommended Bundle #1 (Patch 7937113)
5.1??? 停止Oracle相關進程
$ lsnrctl stop
$ emctl stop dbconsole
$ sqlplus /? as sysdba
SQL> shutdown immediate;
5.2??? 安裝PSU
安裝過程大概3-5分鐘.
$ cd /home/wangnc/10g/patches
$ unzip p8833280_10204_Linux-*
$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./8833280
$ cd 8833280
$ $ORACLE_HOME/OPatch/opatch apply
...
Is the local system ready for patching? [y|n]
y
...
5.3??? 執行psu_root.sh
如果數據庫要用Job Scheduling, 則還需用root用戶執行腳本psu_root.sh:
# cd /home/wangnc/10g/patches/8833280
# export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
# sh psu_root.sh
5.4??? 安裝后數據庫操作
如果原先已建數據庫則一定要做本步驟, 大概4-5分鐘.
1) 加載modified.sql到數據庫
$ sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @?/rdbms/admin/catbundle.sql psu apply
2) 重編譯數據庫視圖
確認未曾重新編譯過:
SQL> SELECT * FROM registry$history where ID = '6452863';
no rows selected
確認有多少對象需要重新編譯:
SQL> @?/cpu/view_recompile/recompile_precheck_jan2008cpu.sql
開始重新編譯:
SQL> SHUTDOWN IMMEDIATE
SQL> STARTUP UPGRADE
SQL> @?/cpu/view_recompile/view_recompile_jan2008cpu.sql
SQL> SHUTDOWN;
SQL> STARTUP;
最后編譯數據庫失效對象:
SQL> @?/rdbms/admin/utlrp.sql
SQL> QUIT
5.5??? 驗證安裝結果
$ $ORACLE_HOME/OPatch/opatch lsinventory
5.6??? 啟動Oracle其它進程
$ lsnrctl start
$ emctl start dbconsole
--End--
本例是基于10.2.0.4版本2009-10-22(Metalink 756671.1)發布的Oracle Recommended Patches的安裝. 本PSU(Patch Set Update)是基于10.2.0.4版本的第二個累計補丁集10.2.0.4.2(Bug 8833280), 且已經包含了截至到200910月份的CPU(Critical Patches Update), 共修正了293個bug. PSU 10.2.0.4.2 包括如下以前發布的補丁:
Generic Recommended Bundle #4 (Patch 8362683)
RAC Recommended Bundle #3 (Patch 8344348)
Data Guard Broker Recommended Bundle #1 (Patch 7936793)
Data Guard Physical/Recovery Recommended Bundle #1 (Patch 7936993)
Data Guard Logical Recommended Bundle #1 (Patch 7937113)
5.1??? 停止Oracle相關進程
$ lsnrctl stop
$ emctl stop dbconsole
$ sqlplus /? as sysdba
SQL> shutdown immediate;
5.2??? 安裝PSU
安裝過程大概3-5分鐘.
$ cd /home/wangnc/10g/patches
$ unzip p8833280_10204_Linux-*
$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./8833280
$ cd 8833280
$ $ORACLE_HOME/OPatch/opatch apply
...
Is the local system ready for patching? [y|n]
y
...
5.3??? 執行psu_root.sh
如果數據庫要用Job Scheduling, 則還需用root用戶執行腳本psu_root.sh:
# cd /home/wangnc/10g/patches/8833280
# export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
# sh psu_root.sh
5.4??? 安裝后數據庫操作
如果原先已建數據庫則一定要做本步驟, 大概4-5分鐘.
1) 加載modified.sql到數據庫
$ sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @?/rdbms/admin/catbundle.sql psu apply
2) 重編譯數據庫視圖
確認未曾重新編譯過:
SQL> SELECT * FROM registry$history where ID = '6452863';
no rows selected
確認有多少對象需要重新編譯:
SQL> @?/cpu/view_recompile/recompile_precheck_jan2008cpu.sql
開始重新編譯:
SQL> SHUTDOWN IMMEDIATE
SQL> STARTUP UPGRADE
SQL> @?/cpu/view_recompile/view_recompile_jan2008cpu.sql
SQL> SHUTDOWN;
SQL> STARTUP;
最后編譯數據庫失效對象:
SQL> @?/rdbms/admin/utlrp.sql
SQL> QUIT
5.5??? 驗證安裝結果
$ $ORACLE_HOME/OPatch/opatch lsinventory
5.6??? 啟動Oracle其它進程
$ lsnrctl start
$ emctl start dbconsole
--End--
總結
以上是生活随笔為你收集整理的安装 Oracle Database PSU 10.2.0.4.2 步骤的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如何使用 TRACERT 解决 Wind
- 下一篇: Oracle中Cluster Table