ORACLE PSU Upgrade Summary

Source: Internet
Author: User

First of all, to carry out the PSU, the first thing is to seriously look at readme.html, from the inside we can know very detailed upgrade steps have been back to the program. And avoided a lot of pits.
Before you proceed with the PSU, first confirm the version you are ready to upgrade and the version of your own system database, as we did this time, from 11.2.0.4.0 to the 11.2.0.4.2 version, to find the appropriate patch from the MOS.
P18031668_112040_linux-x86-64.zip

The patch package can be easily found on MOS by the number behind p, from the readme.html of that version of the patch pack. We can see the requirements

2.1 Opatch Utility
You must use the Opatch utility version 11.2.0.3.6 or later to apply this patch. Oracle recommends, the latest released Opatch version for 11.2, which are available for download from My Oracle Support Patches 6880880 by selecting the 11.2.0.0.0 release.

Since we are using the system disk directly installed, the default version is this:

[Email protected] opatch]$/opatch versionopatch version:11.2.0.3.4

The version is the lowest installed version of 11.2.0.3.4, so we need an additional patch to update the Opatch version.
Oracle provides such a patch package
P6880880_112000_linux-x86-64.zip
Used to take Opatch to the latest version.
Specific steps to upgrade an Oracle PSU separately:

1. Configure the OPATCH environment variable to export path= $ORACLE _home/bin: $ORACLE _home/opatch: $PATH 2. View the version of the database Opatch version[[email  Protected]<span style= "font-family:arial, Helvetica, Sans-serif;" >storedb</span> opatch]$ opatch versionopatch version:11.2.0.3.4opatch succeeded.opatch lsinventory[[email& Nbsp;protected] opatch]$ opatch lsinventoryoracle interim Patch Installer version 11.2.0.3.4Copyright (c), Oracle Cor  Poration. All rights reserved. Oracle Home:/opt/app/oracle/product/11.2.0/db_1central Inventory:/opt/orainventory from:/opt/app/o Racle/product/11.2.0/db_1/orainst.locopatch Version:11.2.0.3.4oui version:11.2.0.4.0log file location:/opt/ App/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2014-07-07_10-44-39am_1.loglsinventory Output File Location:/opt/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2014-07-07_ 10-44-39am.txt--------------------------------------------------------------------------------installed Top-lEvel Products (1): Oracle Database 11g 11.2.0.4.0There is 1 products Inst Alled in this Oracle Home.there is no interim patches installed in this Oracle Home.------------------------------------- -------------------------------------------3. Update the patch kit CD $ORACLE _HOME/MV opatch opath_bakunzip p6880880_112000_  LINUX.ZIPCD opatch[[email protected] db_1]$ cd opatch[[email protected] opatch]$ Lscrs docs emdpatch.pl jlib OCM opatch opatch.bat opatchdiag opatchdiag.bat opatch.ini opatch.pl opatchprereqs oplan README.txt version.txt [[email protected] opatch]$[[email protected] opatch]$ opatch versionopatch version:11.2.0.3.6opatch Succeeded.4. Check if the patch you need to hit is in conflict with the existing patch unzip P18031668_112040_LINUX-X86-64.ZIPCD 18031668[[email protected] 18031668]$ opatch prereq checkconflictagainstohwithdetail-ph./oracle Interim Patch Installer version  11.2.0.3.6Copyright (c), Oracle Corporation. All rights reserved. Prereq SessIonoracle Home:/u01/app/oracle/product/11.2.0/db_1central Inventory:/u01/app/orainventory from:/u0 1/app/oracle/product/11.2.0/db_1/orainst.locopatch Version:11.2.0.3.6oui version:11.2.0.4.0log File location :/u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2014-07-09_01-59-50am_1.loginvoking prereq " Checkconflictagainstohwithdetail "Prereq" Checkconflictagainstohwithdetail "passed. Opatch Succeeded.5. Close the database and update the latest patches Sqlplus/as sysdbashutdown IMMEDIATECD 18031668opatch applyopatch applyoracle Interim  Patch Installer version 11.2.0.3.6Copyright (c), Oracle Corporation. All rights reserved. Oracle Home:/u01/app/oracle/product/11.2/db_1central Inventory:/u01/app/orainventory from:/u01/app /oracle/product/11.2/db_1/orainst.locopatch Version:11.2.0.3.6oui version:11.2.0.4.0log file location:/u01/ App/oracle/product/11.2/db_1/cfgtoollogs/opatch/17478514_apr_02_2014_15_38_28/apply2014-04-02_15-38-28pm_1.lOG you has not provided a email address for notification of security issues. Do your wish to remain uninformed of security issues ([Y]es, [N]o] [N]: Y-shutdown Oracle instances running out of This oracle_home the local system. (Oracle Home = '/u01/app/oracle/product/11.2/db_1 ') is the local system ready for patching?  [Y|n]yuser responded with:ybacking up files ... Patching component ORACLE.NLSRTL.RSF, 11.2.0.4.0 ... Patching component ORACLE.XDK.RSF, 11.2.0.4.0 ... Patching component Oracle.rdbms.rman, 11.2.0.4.0 ... Opatch found the word "warning" in the stderr of the Make command. Please look at this stderr. You can re-run the this make command. Stderr output:ins_emagent.mk:113:warning:overriding commands for target ' Nmosudo ' ins_emagent.mk:52:warning:ignoring Old commands for target ' Nmosudo '/u01/app/oracle/product/11.2/db_1/sysman/lib/ins_emagent.mk:113:warning: overriding commands for target ' Nmosudo '/u01/app/oracle/product/11.2/db_1/sysman/lib/ins_emagent.mk:52:warning:ignoring old commands for target ' Nmosudo ' Verifying the update ... Patch 17478514 successfully appliedopatch Session completed with warnings. Log File Location:/u01/app/oracle/product/11.2/db_1/cfgtoollogs/opatch/17478514_apr_02_2014_15_38_28/ Apply2014-04-02_15-38-28pm_1.log Opatch completed with warnings.6. View patches: Opatch lsinventory[email protected]  opatch]$ opatch lsinventoryoracle Interim Patch Installer version 11.2.0.3.6Copyright (c), Oracle Corporation. All rights reserved. Oracle Home:/u01/app/oracle/product/11.2.0/db_1central Inventory:/u01/app/orainventory from:/u01/a Pp/oracle/product/11.2.0/db_1/orainst.locopatch Version:11.2.0.3.6oui version:11.2.0.4.0log File location:/ U01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2014-07-09_02-10-23am_1.loglsinventory Output File Location:/u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2014-07-09_ 02-10-23am.txt--------------------------------------------------------------------------------installed top-level products (1): Oracle Database 11g 11.2.0.4.0There is 1 product (s) installed in this Oracle Home.interim patches (1):P Atch 18031668:a Pplied on Wed Jul 00:16:43 EDT 2014Unique patch id:17255543patch Description: "Database Patch Set update:11.2.0.4. 2 (18031668) "Created on 05:15:58 hrs pst8pdtsub-patch 17478514; Database Patch Set update:11.2.0.4.1 (17478514) Bugs fixed:17288409, 16399083, 17205719, 17811429, 10136473, 16 472716, 17614227 17050888, 17040764, 17865671, 17325413, 14010183, 17726838, 13364795 17389192, 17612828, 17080436 , 16613964, 17284817, 17441661, 17761775 17721717, 16721594, 17390431, 18203837, 17551709, 17344412, 16043574 1744 6237, 16863422, 18139690, 17071721, 17501491, 17610798, 17239687 17752121, 17468141, 17602269, 18203835, 17375354, 173 13525, 17811456 16731148, 14133975, 18203838, 16956380, 17385178, 17235750, 13866822 17394950, 17478514, 17027426, 12905058, 14338435, 16450169, 13944971 18094246, 16929165, 1     6785708, 17265217, 17465741, 16220077, 16180763 16069901, 17546973, 16285691, 17323222, 18180390, 17088068, 16875449 17016369, 17443671, 16228604, 17811438, 17811447, 16837842, 18031668 16912439, 17332800, 17393683, 17622427, 175458 47, 17186905, 16943711 16850630, 17082359, 17346671, 14852021, 17783588, 17437634, 16618694 17341326, 17296856, 17 546761, 17716305--------------------------------------------------------------------------------7. Perform catbundle.sql to reflect the patch information to the database so that the database knows what patches you last patched or rolled back:sql> @?/rdbms/admin/catbundle.sql PSU applysql>  Remsql>sql> set Termout onsql> set ECHO offpl/sql procedure successfully completed.pl/sql procedure successfully Completed.pl/sql procedure successfully Completed.1 row Selected.1 row selected. Generating apply and rollback scripts ... Check the following file for Errors:/u01/app/oracle/cfgtoollogs/catbundle/catbundle_psu_ftdb_generate_2014apr02_17_20_18.logapply Script:/u01/app/oracle/product/11.2/db_1/ Rdbms/admin/catbundle_psu_ftdb_apply.sqlrollback Script:/u01/app/oracle/product/11.2/db_1/rdbms/admin/catbundle _psu_ftdb_rollback.sql PL/SQL procedure successfully completed. Executing script file ... 1 row selected. sql> COLUMN spool_file new_value spool_file noprintsql> SELECT '/u01/app/oracle/cfgtoollogs/catbundle/' | | ' Catbundle_psu_ ' | | name | | ' _apply_ ' | | To_char (sysdate, ' yyyymondd_hh24_mi_ss ', ' nls_date_language= ', ' AMERICAN ') | | '. Log ' as spool_file from V$database; 1 row selected. sql> SPOOL &spool_fileSQL> exec dbms_registry.set_session_namespace (' SERVER ') PL/SQL procedure successfully Completed. Sql> PROMPT skipping Spatial because it's not installed or versions mismatch ... Skipping Spatial because it is not installed or versions mismatch ... sql> ALTER SESSION SET current_schema = SYS; Session altered. Sql> PROMPT Updating Registry ... Updating Registry ... Sql> INSERT into Registry$history 2 (Action_time, Action, 3 namespace, version, ID, 4 bundle_series, comm Ents) 5 VALUES 6 (systimestamp, ' APPLY ', 7 sys_context (' Registry$ctx ', ' NAMESPACE '), 8 ' 11.2.0.4 ', 9 1 , "PSU", one ' psu 11.2.0.4.1 '); 1 row created. Sql> COMMIT; Commit complete. sql> SPOOL offsql> SET echo offcheck The following log file for errors:

This is a manual upgrade of the DB method, for a database with a grid structure, we can use the Opatch auto to the database automatic upgrade


ORACLE PSU Upgrade Summary

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.