首页 > 数据库 > Oracle > 了解Oracle补丁知识
SQL> SELECT * FROM PRODUCT_COMPONENT_VERSION; PRODUCT VERSION STATUS
---------------------------------------- --------------- ---------------
NLSRTL 10.2.0.1.0 Production Oracle Database 10g Enterprise Edition 10.2.0.1.0 64bi PL/SQL 10.2.0.1.0 Production TNS for Linux: 10.2.0.1.0 Production
SQL> SELECT * FROM PRODUCT_COMPONENT_VERSION; PRODUCT VERSION STATUS
---------------------------------------- --------------- ---------------
NLSRTL 10.2.0.4.0 Production Oracle Database 10g Enterprise Edition 10.2.0.4.0 64bi PL/SQL 10.2.0.4.0 Production TNS for Linux: 10.2.0.4.0 Production
SQL> select action,comments from registry$history; ACTION COMMENTS
-------------------- ------------------------------
UPGRADE Upgraded from 10.2.0.1.0 APPLY PSU 10.2.0.4.4 APPLY PSU 10.2.0.4.12

|
Oracle 产品版本 |
下载 Opatch 版本 |
OPATCH 版本 (截至 2012年12月17日) |
|
9.2.0.x or 10.1.0.x |
"10.1.0.0.0" (description "OPatch 9i, 10.1") |
1.0.0.0.64 |
|
10.2.0.x |
"10.2.0.0.0" (description "OPatch 10.2") |
10.2.0.5.1 |
|
11.1.0.x |
"11.1.0.0.0" (description "OPatch 11.1") |
11.1.0.9.10 |
|
11.2.0.x |
"11.2.0.0.0" (description "OPatch 11.2") |
11.2.0.3.3 |
[oracle@khm7 install]$ mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch.bk [oracle@khm7 install]$ unzip p6880880_112000_Linux-x86-64.zip -d $ORACLE_HOME/ [oracle@khm7 ~]$ opatch version OPatch Version: 11.2.0.3.3 OPatch succeeded.
[oracle@khm7 ~]$ opatch napply -oh $ORACLE_HOME -local /install/patch/14727310/ Oracle Interim Patch Installer version 11.2.0.3.3 Copyright (c) 2012, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/product/11.2.0.3/dbhome_1 Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/product/11.2.0.3/dbhome_1/oraInst.loc OPatch version : 11.2.0.3.3 OUI version : 11.2.0.3.0 Log file location : /u01/app/oracle/product/11.2.0.3/dbhome_1/cfgtoollogs/opatch/opatch2013-03-15_13-29-02PM_1.log Verifying environment and performing prerequisite checks... OPatch continues with these patches: 13343438 13696216 13923374 14275605 14727310 Do you want to proceed? [y|n] y User Responded with: Y All checks passed. Provide your email address to be informed of security issues, install and initiate Oracle Configuration Manager. Easier for you if you use your My Oracle Support Email address/User Name. Visit http://www.oracle.com/support/policies.html for details. Email address/User Name: You have not provided an email address for notification of security issues. Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: y Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. (Oracle Home = '/u01/app/oracle/product/11.2.0.3/dbhome_1') Is the local system ready for patching? [y|n] y User Responded with: Y Backing up files... Applying sub-patch '13343438' to OH '/u01/app/oracle/product/11.2.0.3/dbhome_1' Patching component oracle.rdbms.rsf, 11.2.0.3.0... Patching component oracle.rdbms, 11.2.0.3.0... Patching component oracle.rdbms.dbscripts, 11.2.0.3.0... Verifying the update... Applying sub-patch '13696216' to OH '/u01/app/oracle/product/11.2.0.3/dbhome_1' Patching component oracle.rdbms.rsf, 11.2.0.3.0... Patching component oracle.rdbms, 11.2.0.3.0... Patching component oracle.sdo.locator, 11.2.0.3.0... Patching component oracle.sysman.console.db, 11.2.0.3.0... Patching component oracle.sysman.oms.core, 10.2.0.4.4... Verifying the update... Applying sub-patch '13923374' to OH '/u01/app/oracle/product/11.2.0.3/dbhome_1' ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found. Patching component oracle.rdbms.rsf, 11.2.0.3.0... Patching component oracle.rdbms, 11.2.0.3.0... Patching component oracle.rdbms.dbscripts, 11.2.0.3.0... Patching component oracle.network.rsf, 11.2.0.3.0... Patching component oracle.network.listener, 11.2.0.3.0... Patching component oracle.sysman.console.db, 11.2.0.3.0... Verifying the update... Applying sub-patch '14275605' to OH '/u01/app/oracle/product/11.2.0.3/dbhome_1' ApplySession: Optional component(s) [ oracle.precomp.lang, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found. Patching component oracle.network.client, 11.2.0.3.0... Patching component oracle.network.rsf, 11.2.0.3.0... Patching component oracle.precomp.common, 11.2.0.3.0... Patching component oracle.rdbms, 11.2.0.3.0... Patching component oracle.rdbms.dbscripts, 11.2.0.3.0... Patching component oracle.rdbms.rman, 11.2.0.3.0... Patching component oracle.rdbms.rsf, 11.2.0.3.0... Patching component oracle.rdbms.util, 11.2.0.3.0... Verifying the update... Applying sub-patch '14727310' to OH '/u01/app/oracle/product/11.2.0.3/dbhome_1' Patching component oracle.rdbms, 11.2.0.3.0... Patching component oracle.rdbms.dbscripts, 11.2.0.3.0... Patching component oracle.rdbms.deconfig, 11.2.0.3.0... Patching component oracle.rdbms.rsf, 11.2.0.3.0... Patching component oracle.sdo.locator, 11.2.0.3.0... Patching component oracle.sysman.console.db, 11.2.0.3.0... Patching component oracle.sysman.oms.core, 10.2.0.4.4... Verifying the update... OPatch found the word "warning" in the stderr of the make command. Please look at this stderr. You can re-run this make command. Stderr output: ins_precomp.mk:19: warning: overriding commands for target `pcscfg.cfg' /u01/app/oracle/product/11.2.0.3/dbhome_1/precomp/lib/env_precomp.mk:2160: warning: ignoring old commands for target `pcscfg.cfg' /u01/app/oracle/product/11.2.0.3/dbhome_1/precomp/lib/ins_precomp.mk:19: warning: overriding commands for target `pcscfg.cfg' /u01/app/oracle/product/11.2.0.3/dbhome_1/precomp/lib/env_precomp.mk:2160: warning: ignoring old commands for target `pcscfg.cfg' Composite patch 14727310 successfully applied. OPatch Session completed with warnings. Log file location: /u01/app/oracle/product/11.2.0.3/dbhome_1/cfgtoollogs/opatch/opatch2013-03-15_13-29-02PM_1.log OPatch completed with warnings.
查看更新结果,可见已然是11.2.0.3.5了: [oracle@khm7 ~]$ opatch lspatches 14727310;Database Patch Set Update : 11.2.0.3.5 (14727310) 查看更新补丁内容: [oracle@khm7 ~]$ opatch lsinventory Oracle Interim Patch Installer version 11.2.0.3.3 Copyright (c) 2012, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/product/11.2.0.3/dbhome_1 Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/product/11.2.0.3/dbhome_1/oraInst.loc OPatch version : 11.2.0.3.3 OUI version : 11.2.0.3.0 Log file location : /u01/app/oracle/product/11.2.0.3/dbhome_1/cfgtoollogs/opatch/opatch2013-03-15_13-40-00PM_1.log Lsinventory Output file location : /u01/app/oracle/product/11.2.0.3/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2013-03-15_13-40-00PM.txt -------------------------------------------------------------------------------- Installed Top-level Products (1): Oracle Database 11g 11.2.0.3.0 There are 1 products installed in this Oracle Home. Interim patches (1) : Patch 14727310 : applied on Fri Mar 15 13:35:43 CST 2013 Unique Patch ID: 15663328 Patch description: "Database Patch Set Update : 11.2.0.3.5 (14727310)" Created on 27 Dec 2012, 00:06:30 hrs PST8PDT Sub-patch 14275605; "Database Patch Set Update : 11.2.0.3.4 (14275605)" Sub-patch 13923374; "Database Patch Set Update : 11.2.0.3.3 (13923374)" Sub-patch 13696216; "Database Patch Set Update : 11.2.0.3.2 (13696216)" Sub-patch 13343438; "Database Patch Set Update : 11.2.0.3.1 (13343438)" Bugs fixed: 13566938, 13593999, 10350832, 14138130, 12919564, 13624984, 13588248 13080778, 13804294, 14258925, 12873183, 13645875, 12880299, 14664355 14409183, 12998795, 14469008, 13719081, 13492735, 12857027, 14263036 14263073, 13742433, 13732226, 12905058, 13742434, 12849688, 12950644 13742435, 13464002, 12879027, 13534412, 14613900, 12585543, 12535346 12588744, 11877623, 12847466, 13649031, 13981051, 12582664, 12797765 14262913, 12923168, 13612575, 13384182, 13466801, 13484963, 11063191 13772618, 13070939, 12797420, 13041324, 12976376, 11708510, 13742437 13026410, 13737746, 13742438, 13326736, 13001379, 13099577, 14275605 13742436, 9873405, 9858539, 14040433, 12662040, 9703627, 12617123 12845115, 12764337, 13354082, 13397104, 12964067, 13550185, 12780983 12583611, 14546575, 13476583, 15862016, 11840910, 13903046, 15862017 13572659, 13718279, 13657605, 13448206, 13419660, 14480676, 13632717 14063281, 13430938, 13467683, 13420224, 14548763, 12646784, 14035825 12861463, 12834027, 15862021, 13377816, 13036331, 14727310, 13685544 13499128, 15862018, 12829021, 15862019, 12794305, 14546673, 12791981 13503598, 13787482, 10133521, 12718090, 13399435, 14023636, 12401111 13257247, 13362079, 12917230, 13923374, 14480675, 13524899, 13559697 14480674, 13916709, 14076523, 13773133, 13340388, 13366202, 13528551 12894807, 13343438, 13454210, 12748240, 14205448, 13385346, 15853081 12971775, 13035804, 13544396, 13035360, 14062795, 12693626, 13332439 14038787, 14062796, 12913474, 14841409, 14390252, 13370330, 14062797 13059165, 14062794, 12959852, 13358781, 12345082, 12960925, 9659614 13699124, 14546638, 13936424, 13338048, 12938841, 12658411, 12620823 12656535, 14062793, 12678920, 13038684, 14062792, 13807411, 12594032 13250244, 15862022, 9761357, 12612118, 13742464, 14052474, 13457582 13527323, 15862020, 12780098, 13502183, 13705338, 13696216, 10263668 15862023, 13554409, 15862024, 13103913, 13645917, 14063280, 13011409 --------------------------------------------------------------------------------
OPatch succeeded.
[oracle@khm7 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.3.0 Production on Fri Mar 15 13:40:39 2013 Copyright (c) 1982, 2011, Oracle. All rights reserved. Connected to an idle instance. SQL> startup ORACLE instance started. Total System Global Area 417546240 bytes Fixed Size 2228944 bytes Variable Size 272633136 bytes Database Buffers 138412032 bytes Redo Buffers 4272128 bytes Database mounted. Database opened. SQL> show user USER is "SYS" SQL> @?/rdbms/admin/catbundle.sql psu apply
SQL> set line 150 SQL> col ACTION_TIME for a30 SQL> col ACTION for a8 SQL> col NAMESPACE for a8 SQL> col VERSION for a10 SQL> col BUNDLE_SERIES for a5 SQL> col COMMENTS for a20 SQL> select * from dba_registry_history; ACTION_TIME ACTION NAMESPAC VERSION ID BUNDL COMMENTS
------------------------------ -------- -------- ---------- ---------- ----- --------------------
17-SEP-11 10.21.11.595816 AM APPLY SERVER 11.2.0.3 0 PSU Patchset 11.2.0.2.0
15-MAR-13 10.40.00.705490 AM APPLY SERVER 11.2.0.3 0 PSU Patchset 11.2.0.2.0
15-MAR-13 01.43.05.319842 PM APPLY SERVER 11.2.0.3 5 PSU PSU 11.2.0.3.5
3 rows selected.
[root@khm8 ~]# chown oracle.oinstall /install/p* Opatch更新: [oracle@khm7 install]$ mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch.bk [oracle@khm7 install]$ unzip p6880880_112000_Linux-x86-64.zip -d $ORACLE_HOME/ [oracle@khm7 ~]$ opatch version OPatch Version: 11.2.0.3.3 OPatch succeeded. [oracle@khm8 install]$ unzip p14727315_112020_Linux-x86-64.zip -d patch [oracle@khm8 ~]$ opatch napply -oh $ORACLE_HOME -local /install/patch/14727315/ [oracle@khm8 ~]$ opatch lspatches 14727315;Database Patch Set Update : 11.2.0.2.9 (14727315) 执行catbundle.sql脚本之前,无法看到PSU更新信息: SQL> set line 150 SQL> col ACTION_TIME for a30 SQL> col ACTION for a8 SQL> col NAMESPACE for a8 SQL> col VERSION for a10 SQL> col BUNDLE_SERIES for a5 SQL> col COMMENTS for a20 SQL> select * from dba_registry_history; ACTION_TIME ACTION NAMESPAC VERSION ID BUNDL COMMENTS
------------------------------ -------- -------- ---------- ---------- ----- --------------------
05-SEP-10 06.22.14.370943 AM APPLY SERVER 11.2.0.2 0 PSU Patchset 11.2.0.2.0
15-MAR-13 11.22.14.833238 AM APPLY SERVER 11.2.0.2 0 PSU Patchset 11.2.0.2.0
执行脚本后,即可看到:
SQL> @?/rdbms/admin/catbundle.sql psu apply SQL> select * from dba_registry_history; ACTION_TIME ACTION NAMESPAC VERSION ID BUNDL COMMENTS
------------------------------ -------- -------- ---------- ---------- ----- --------------------
05-SEP-10 06.22.14.370943 AM APPLY SERVER 11.2.0.2 0 PSU Patchset 11.2.0.2.0
15-MAR-13 11.22.14.833238 AM APPLY SERVER 11.2.0.2 0 PSU Patchset 11.2.0.2.0
15-MAR-13 02.14.09.659104 PM APPLY SERVER 11.2.0.2 9 PSU PSU 11.2.0.2.9
确保参数shared_pool_size和java_pool_size至少为150M大小: SQL> alter system set shared_pool_size=150M scope=spfile; SQL> alter system set java_pool_size=150M scope=spfile; 如果SGA大小设置不够大,下次启动将会保证,所以也保证SGA足够: SQL> alter system set sga_target=400M scope=spfile; 关闭数据库 SQL> shutdown immediate
[oracle@khm11 install]$ unzip p6810189_10204_Linux-x86-64.zip [oracle@khm11 install]$ cd Disk1/ [oracle@khm11 Disk1]$ export DISPLAY=192.168.1.1:0.0 [oracle@khm11 Disk1]$ ./runInstaller
[oracle@khm11 ~]$ sqlplus / as sysdba SQL*Plus: Release 10.2.0.4.0 - Production on Fri Mar 15 16:30:42 2013 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to an idle instance. SQL> startup upgrade ORACLE instance started. Total System Global Area 390070272 bytes Fixed Size 2084168 bytes Variable Size 322962104 bytes Database Buffers 58720256 bytes Redo Buffers 6303744 bytes Database mounted. Database opened. 执行脚本,此过程非常缓慢,从下面的输出信息中可以看到,升级一共耗费了43分钟多,当然这根据不同的系统有快有慢。 另外,按照README的要求,我们也可以将输出信息SPOOL到一个文件里,好方便查阅! SQL> @?/rdbms/admin/catupgrd.sql … 部分内容省略 ... Total Upgrade Time: 00:43:33 DOC>####################################################################### DOC>####################################################################### DOC> DOC> The above PL/SQL lists the SERVER components in the upgraded DOC> database, along with their current version and status. DOC> DOC> Please review the status and version columns and look for DOC> any errors in the spool log file. If there are errors in the spool DOC> file, or any components are not VALID or not the current version, DOC> consult the Oracle Database Upgrade Guide for troubleshooting DOC> recommendations. DOC> DOC> Next shutdown immediate, restart for normal operation, and then DOC> run utlrp.sql to recompile any invalid application objects. DOC> DOC>####################################################################### DOC>####################################################################### DOC>#
SQL> shutdown immediate SQL> startup SQL> @?/rdbms/admin/utlrp.sql -- 输出内容略 --
SQL> col comp_name format a30 SQL> col version format a30 SQL> col status format a10 SQL> SELECT comp_name, version, status FROM dba_registry; COMP_NAME VERSION STATUS
------------------------------ ------------------------------ ----------
Oracle Database Catalog Views 10.2.0.4.0 VALID
Oracle Database Packages and Types 10.2.0.4.0 VALID Oracle Workspace Manager 10.2.0.4.3 VALID
JServer JAVA Virtual Machine 10.2.0.4.0 VALID
Oracle XDK 10.2.0.4.0 VALID
Oracle Database Java Packages 10.2.0.4.0
VALID Oracle Expression Filter 10.2.0.4.0 VALID
Oracle Data Mining 10.2.0.4.0 VALID
Oracle Text 10.2.0.4.0 VALID
Oracle XML Database 10.2.0.4.0 VALID
Oracle Rule Manager 10.2.0.4.0 VALID
Oracle interMedia 10.2.0.4.0 VALID OLAP Analytic Workspace 10.2.0.4.0 VALID
Oracle OLAP API 10.2.0.4.0 VALID OLAP Catalog 10.2.0.4.0 VALID
Spatial 10.2.0.4.0 VALID
Oracle Enterprise Manager 10.2.0.4.0 VALID 17 rows selected.
[oracle@khm11 install]$ opatch version Invoking OPatch 10.2.0.4.2 OPatch Version: 10.2.0.4.2 OPatch succeeded.
[oracle@khm11 install]$ unzip p9352164_10204_Linux-x86-64.zip -d patch [oracle@khm21 install]$ cd patch/9352164/ [oracle@khm21 9352164]$ opatch apply Invoking OPatch 10.2.0.5.1 Oracle Interim Patch Installer version 10.2.0.5.1 Copyright (c) 2010, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/product/10.2.0/dbhome_1 Central Inventory : /u01/app/oracle/oraInventory from : /etc/oraInst.loc OPatch version : 10.2.0.5.1 OUI version : 10.2.0.4.0 OUI location : /u01/app/oracle/product/10.2.0/dbhome_1/oui Log file location : /u01/app/oracle/product/10.2.0/dbhome_1/cfgtoollogs/opatch/opatch2013-03-17_00-24-14AM.log Patch history file: /u01/app/oracle/product/10.2.0/dbhome_1/cfgtoollogs/opatch/opatch_history.txt ApplySession applying interim patch '9352164' to OH '/u01/app/oracle/product/10.2.0/dbhome_1' Running prerequisite checks... Provide your email address to be informed of security issues, install and initiate Oracle Configuration Manager. Easier for you if you use your My Oracle Support Email address/User Name. Visit http://www.oracle.com/support/policies.html for details. Email address/User Name: You have not provided an email address for notification of security issues. Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: y OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only. Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. (Oracle Home = '/u01/app/oracle/product/10.2.0/dbhome_1') Is the local system ready for patching? [y|n] y User Responded with: Y Backing up files and inventory (not for auto-rollback) for the Oracle Home Backing up files affected by the patch '9352164' for restore. This might take a while... Backing up files affected by the patch '9352164' for rollback. This might take a while... Execution of 'sh /install/patch/9352164/custom/scripts/pre -apply 9352164 ': Return Code = 0 … 中间大量信息略 … Verifying the update... Inventory check OK: Patch ID 9352164 is registered in Oracle Home inventory with proper meta-data. Files check OK: Files from Patch ID 9352164 are present in Oracle Home. -------------------------------------------------------------------------------- ******************************************************************************** ******************************************************************************** ** ATTENTION ** ** ** ** Please note that the Patch Set Update Installation (PSU Deinstallation) ** ** is not complete until all the Post Installation (Post Deinstallation) ** ** instructions noted in the Readme accompanying this PSU, have been ** ** successfully completed. ** ** ** ******************************************************************************** ******************************************************************************** -------------------------------------------------------------------------------- Execution of 'sh /install/patch/9352164/custom/scripts/post -apply 9352164 ': Return Code = 0 The local system has been patched and can be restarted. OPatch succeeded.
SQL> startup SQL> @?/rdbms/admin/catbundle.sql psu apply … 输出信息略 … 因此,Apply PSU Patch完成,查看: SQL> col ACTION_TIME for a30 SQL> col ACTION for a8 SQL> col NAMESPACE for a8 SQL> col VERSION for a10 SQL> col BUNDLE_SERIES for a5 SQL> col COMMENTS for a40 SQL> select * from dba_registry_history; ACTION_TIME ACTION NAMESPAC VERSION ID BUNDL COMMENTS
------------------------------ -------- -------- ---------- ---------- ----- ----------------------------------------
16-MAR-13 11.24.53.986137 PM UPGRADE SERVER 10.2.0.4.0 Upgraded from 10.2.0.1.0
17-MAR-13 12.45.32.609861 AM APPLY SERVER 10.2.0.4 4 PSU PSU 10.2.0.4.4
[oracle@khm11 install]$ unzip p12879933_10204_Linux-x86-64.zip -d patch [oracle@khm21 install]$ cd patch/12879933/ [oracle@khm21 12879933]$ opatch apply 启动数据库: [oracle@khm21 install]$ sqlplus / as sysdba SQL> startup 将修改过的SQL文件应用到数据库: SQL> @?/rdbms/admin/catbundle.sql opsu apply 注意:如果PSU是overlay PSU,比如10.2.0.4.8,则需要执行@catbundle.sql opsu apply。 编译失效对象: SQL> @?/rdbms/admin/utlrp.sql 查看版本更新信息: SQL> set line 150 SQL> col ACTION_TIME for a30 SQL> col ACTION for a8 SQL> col NAMESPACE for a20 SQL> col VERSION for a10 SQL> col BUNDLE_SERIES for a5 SQL> col COMMENTS for a30 SQL> select * from dba_registry_history; ACTION_TIME ACTION NAMESPACE VERSION ID BUNDL COMMENTS ------------------------------ -------- -------------------- ---------- ---------- ----- ------------------------------ 16-MAR-13 11.24.53.986137 PM UPGRADE SERVER 10.2.0.4.0 Upgraded from 10.2.0.1.0 17-MAR-13 12.45.32.609861 AM APPLY SERVER 10.2.0.4 4 PSU PSU 10.2.0.4.4 17-MAR-13 01.37.02.320305 AM APPLY SERVER 10.2.0.4 8 OPSU PSU 10.2.0.4.12 3 rows selected. 打完PSU之后如下方式查看: $ opatch lsinventory -bugs_fixed | grep -i 'DATABASE PSU' 9654991 11724977 Wed May 25 16:37:17 CST 2011 DATABASE PSU 10.2.0.4.5 (REQUIRES PRE-REQUISITE 9952234 11724977 Wed May 25 16:37:17 CST 2011 DATABASE PSU 10.2.0.4.6 (REQUIRES PRE-REQUISITE 10248636 11724977 Wed May 25 16:37:17 CST 2011 DATABASE PSU 10.2.0.4.7 (REQUIRES PRE-REQUISITE 11724977 11724977 Wed May 25 16:37:17 CST 2011 DATABASE PSU 10.2.0.4.8 (REQUIRES PRE-REQUISITE 8576156 9352164 Wed May 25 15:10:48 CST 2011 DATABASE PSU 10.2.0.4.1 (INCLUDES CPUJUL2009) 8833280 9352164 Wed May 25 15:10:48 CST 2011 DATABASE PSU 10.2.0.4.2 (INCLUDES CPUOCT2009) 9119284 9352164 Wed May 25 15:10:48 CST 2011 DATABASE PSU 10.2.0.4.3 (INCLUDES CPUJAN2010) 9352164 9352164 Wed May 25 15:10:48 CST 2011 DATABASE PSU 10.2.0.4.4 (INCLUDES CPUAPR2010)
SQL> alter system set shared_pool_size=150M scope=spfile; SQL> alter system set java_pool_size=150M scope=spfile; SQL> alter system set sga_target=400M scope=spfile; SQL> shutdown immediate [oracle@khm11 install]$ unzip p8202632_10205_Linux-x86-64.zip [oracle@khm11 install]$ cd Disk1/ [oracle@khm11 Disk1]$ export DISPLAY=192.168.1.1:0.0 [oracle@khm11 Disk1]$ ./runInstaller [oracle@khm11 ~]$ sqlplus / as sysdba SQL> startup upgrade SQL> @?/rdbms/admin/catupgrd.sql SQL> shutdown immediate SQL> startup SQL> @?/rdbms/admin/utlrp.sql SQL> col comp_name format a30 SQL> col version format a30 SQL> col status format a10 SQL> SELECT comp_name, version, status FROM dba_registry; COMP_NAME VERSION STATUS
------------------------------ ------------------------------ ----------
Oracle Enterprise Manager 10.2.0.5.0 VALID
Spatial 10.2.0.5.0 VALID
Oracle interMedia 10.2.0.5.0 VALID OLAP Catalog 10.2.0.5.0 VALID
Oracle XML Database 10.2.0.5.0 VALID
Oracle Text 10.2.0.5.0 VALID
Oracle Expression Filter 10.2.0.5.0 VALID
Oracle Rule Manager 10.2.0.5.0 VALID
Oracle Workspace Manager 10.2.0.5.0 VALID
Oracle Data Mining 10.2.0.5.0 VALID
Oracle Database Catalog Views 10.2.0.5.0 VALID
Oracle Database Packages and T 10.2.0.5.0 VALID ypes JServer JAVA Virtual Machine 10.2.0.5.0 VALID
Oracle XDK 10.2.0.5.0 VALID
Oracle Database Java Packages 10.2.0.5.0 VALID OLAP Analytic Workspace 10.2.0.5.0 VALID
Oracle OLAP API 10.2.0.5.0 VALID 17 rows selected.
[oracle@primary install]$ unzip p6880880_102000_Linux-x86-64.zip [oracle@primary install]$ mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch.bk [oracle@primary install]$ mv OPatch/ $ORACLE_HOME/ [oracle@primary install]$ $ORACLE_HOME/OPatch/opatch 关闭所有活动程序 [oracle@khm22 install]$ unzip p14727319_10205_Linux-x86-64.zip -d patch [oracle@khm22 install]$ cd patch/14727319/ [oracle@khm22 12879933]$ opatch apply [oracle@khm22 install]$ sqlplus / as sysdba SQL> startup SQL> @?/rdbms/admin/catbundle.sql psu apply SQL> set line 150 SQL> col ACTION_TIME for a30 SQL> col ACTION for a8 SQL> col NAMESPACE for a8 SQL> col VERSION for a10 SQL> col BUNDLE_SERIES for a5 SQL> col COMMENTS for a40 SQL> select * from dba_registry_history; ACTION_TIME ACTION NAMESPAC VERSION ID BUNDL COMMENTS
------------------------------ -------- -------- ---------- ---------- ----- ----------------------------------------
17-MAR-13 12.09.03.762743 AMOMPILE VIEW REC 8289601 view recompilation 17-MAR-13 12.09.03.872147 AM UPGRADE SERVER 10.2.0.5.0 Upgraded from 10.2.0.1.0
17-MAR-13 01.11.02.521324 AM APPLY SERVER 10.2.0.5 10 PSU PSU 10.2.0.5.10
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30182853/viewspace-1479128/ ,如需转载,请注明出处,否则将追究法律责任。