Quantcast
Channel: Oracle DBA - RajaBaskar Blog
Viewing all articles
Browse latest Browse all 25

How to apply PSU patch and Prerequiste details?

$
0
0
PSU112 – PSU patch on 11.1.0.7


Download the respective patch from www.oracle.metalink.com . Unzip the patch software and its having Readme.htm file.  Please go through the Readme.htm file and follow the instructions.

Prerequisite


1)     In ORAINVENTORY, you can set the correct ORACLE_HOME

2)     Check the Opatch utility version.
           
            $cd $ORACLE_HOME

            Opatch directory having Opatch utility . Opatch version utility should be 11.1.0.8 (current version 11.1.0.6.2).

            If Opatch utility version compatibility not satisfied, You can download the Opatch utility from www.oracle.metalink.com

How can we change opatch version in ORACLE_HOME?

            Move the old Opatch to another name.
           
            $/u01/oracle/product/11.1 > mv OPatch OPatch.11.1.0.6.2
           
            Download the Opatch and unzip. Copy this optach directory and placed this Opatch on OH.

            $/fisc/oracle/PSU111 > cp -pr OPatch $ORACLE_HOME
           
            $/fisc/oracle/PSU111 > opatch version
           
            Invoking OPatch 11.1.0.8.3

            OPatch Version: 11.1.0.8.3

            OPatch succeeded.


3)     Check the environment variables.
     
      $export PATH=$PATH:/usr/ccs/bin


4)     To check can we apply the PSU112 patch for this OH.

    Unzip the Patch software unzip p13343461_11107_SOLARIS.zip

                 $opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./13343461

Invoking OPatch 11.1.0.8.3

Oracle Interim Patch Installer version 11.1.0.8.3
Copyright (c) 2010, Oracle Corporation.  All rights reserved.

PREREQ session

Oracle Home       : /u01/oracle/product/11.1
Central Inventory : /u01/oracle/oraInventory
   from           : /var/opt/oracle/oraInst.loc
OPatch version    : 11.1.0.8.3
OUI version       : 11.1.0.7.0
OUI location      : /u01/oracle/product/11.1/oui
Log file location : /u01/oracle/product/11.1/cfgtoollogs/opatch/opatch2012-03-29_08-15-23AM.log

Patch history file: /u01/oracle/product/11.1/cfgtoollogs/opatch/opatch_history.txt

Invoking prereq "checkconflictagainstohwithdetail"

ZOP-47: The patch(es) has supersets with other patches installed in the Oracle Home (or) among themselves.

Prereq "checkConflictAgainstOHWithDetail" failed.

Summary of Conflict Analysis:

Patches that can be applied now without any conflicts are :
13343461

Following patches are not required, as they are subset of the patches in Oracle Home or subset of the patches in the given list :
10248531

Following patches will be rolled back from Oracle Home on application of the patches in the given list :
10248531

Conflicts/Supersets for each patch are:

Patch : 13343461

        Bug Superset of 10248531
        Super set bugs are:
        7378322,  9068088,  7207654,  8865718,  7835247,  7648406,  8348481,  9054253,  6851110,  7206858,  9744252,  7497788,  8974548,  9956713,  7331867,  8251486,  6434104,  8851675,  8211920,  9352179,  7013124,  7643188,  7135702,  7254221,  7529174,  7036284,  7196532,  8847439,  7515779,  7705669,  9434549,  8402548,  9637033,  8608377,  7119382,  7510766,  9001453,  8364676,  9066130,  7424804,  7628387,  7408621,  7426336,  7553884,  8856696,  6843972,  7694979,  8565708,  6972189,  6598432,  6768362,  6501490,  8836375,  8216875,  9841005,  7527650,  7719143,  8402551,  7454752,  8290478,  7412296,  7484261,  8402555,  7719148,  8284633,  8318050,  10009222,  7185113,  7307821,  7639602,  8539335,  8613137,  9711859,  7650993,  8940197,  9714832,  6970731,  9011088,  10009229,  7589862,  9170608,  7131291,  8263441,  9109536,  7586451,  6709070,  7446163,  8199266,  7460818,  9114072,  6618461,  7451927,  7373196,  8230457,  7336031,  7420394,  8413059,  9399090,  8402562,  8914979,  9713537,  8402637,  7393804,  8876094,  6196748,  7627743,  8834425,  7348847,  9311909,  8408887,  7183523,  8531282,  7441663,  7329252,  9145541,  8622613,  10249534,  7720494,  7719668,  8645846,  8539923,  8577450,  9458811,  8534338,  9272086,  8339404,  8517426,  8236851,  9458814,  7602341,  9458816,  7036453,  7610362,  8855553,  7384419,  7690421,  9458819,  8419383,  8855559,  8543737,  7447559,  10336518,  8247855,  10009241,  6772911,  7626014,  9654987,  10009173,  10009246,  7175513,  7417614,  9143376,  8649055,  7341598,  7706138,  7292503,  8603465,  8243648,  8367827,  8365141,  8342923,  7350127,  8462173,  8549480,  9027691,  7356443,  7593835,  8483871,  9485429,  8242410,  7044551,  7572069,  7639121,  9275072,  8855565,  9458829,  8825048,  7253531,  8328853,  10336525,  7585314,  8341623,  8409848,  6851669,  6988517,  7318276,  8257122,  7013817,  8860821,  9830111,  7309458,  8450529,  8306933,  8306934,  9166322,  6840740,  9458831,  6981690,  8304329,  8281906,  7480809,  8339352,  8855570,  7340448,  8499600,  7393258,  8588540,  8790767,  8855575,  6599920,  7630416,  7426959,  8855577,  6980601,  8342506,  8717461,  6452375,  8607693,  6407486,  7653579,  7416901,  7281382,  9341448,  8599477,  7535429,  8582594,  7475055,  8217795,  7409110,  7432514,  9655014,  8362693,  8764031,  7332001,  7707103,  9084111,  9702142,  7436152,  7680907,  9702143,  10336548,  8481935,  7013835,  7345543,  10046072,  7708340,  8499043,  8361398,  6784747,  7524944,  7496908,  7662620,  8224083,  7385253,  10127716,  9189647,  7225720,  7417140,  6941717,  7122161,  8898852,  8399549,  8354686,  7377810,  7477246,  8363210,  6798650,  7299153,  8213302,  9118620,  6856345,  8909984,  8755082,  9118622,  9311954,  9209238,  8702276,  7484102,  7661251,  7497640,  8771916,  6991626,  7630874,  7133740,  9368549,  7311909,  7614692,  5552232,  9229631,  7022234,  7432601,  8650719,  7213937,  7352414,  7462112,  8248911,  7516867,  8199107,  7296258,  7662491,  8856478,  9369783,  10336560,  7041254,  6812439,  10336565,  6870937,  7828187,  7219752,  9952228,  7263842,  8287680,  6900214,  8981059,  8870559,  6882739,  9488887,  8546332,  8813366,  8990527,  9242411,  8296070,  7500792,  8352304,  7508788,  8352309,  7538000,  9165206,  8565359,  8834636,  8324760,  7652888,  10336577,  7330434,  7113299,  7307972,  8775066,  8487273,  7462709,  7486595,  7643632,  9032717,  8650661,  8658581,  8244217,  7499911,  7515145,  6734871,  7411865,  10094989,  7202451,  7276960,  7432556,  8360192,  8890026,  10019218,  7522002,  7613481,  7022905,  7452373,  8674263,  8221425,  7694273,  9074535,  8763922,  6770443,  9188010,  7438445,  7334226,  9197917,  8284438,  8803762,  7494333,  7318049,  7834195,  8250643,  8214576,  6679303,  8815639,  8277580,  7172752,  7326645,  7171015,  7715244,  7516536,  7675269,  7461921,  9241202,  8490879,  6980597,  7499353,  7646055,  8301559,  9255542,  8268330,  7357609,  8496830,  7462589,  6647480,  10248531,  8416414,  7830065,  6858062,  7189645,  7203349,  8476517,  8702535,  7436280,  8669679,  9768907,  8268775,  9363145,  6955744,  7366290,  7506785,  9952269,  8433693,  6977167,  10426994,  7702085,  8570572,  6522654,  8348464,  7185872,  8625762,  8737065,  6059178,  7257038,  9774756,  8833297,  8595043,  8542307,  7606362,  8578132,  8332021,  7330611,  8226397,  8502963,  7628866,  7278231,  6903819,  8285404,  9399991,  8391256,  7676737,  9231605,  9620202,  9776431,  6798427,  7138523,  6971433,  7258928,  7829321,  10169304,  7311601,  8433270,  7511040,  7434194,  8315482,  8369094,  8563941,  8563942,  8563943,  8563944,  8563945,  7716219,  8563946,  7345904,  9246245,  8563947,  7556778,  8563948,  8220734,  6870994,  7597354,  7523787,  9135679,  7710260,  7697360,  9210925

OPatch succeeded.


We can apply this patch without issue.


5)     Take the OH backup before applying this patch.

          $cd $ORACLE_HOME

          $tar –cvf /u01/oracle/ora_bin_bkup/11.1_b4psu112.tar 11.1.0

          Note: If oracle home size is very huge, you can cleanup some old patch details from OH.

How to clean up?



6)     Take the invalid objects list on respective databases.

            Select owner,object_name,object_type from dba_objects where status=’INVALID’ 

## Now  we are going to apply the patch… All prerequisite completed and looks good .. ####################################################################################

           
7)     Ask application team to bring down all the applications belongs to the database.

                        ##########  Once they done, we will start the patching ##########

8)     Stop the LISTENER

$lsnrctl stop LISTENER

9)     Shutdown the database

                ###  Please make sure databases and respective listener are down  ###


10)  Apply the PSU Patch

##  Please make sure you are going to apply right ORACLE HOME,  ###

Patch Location: /u01/oracle/PSU111/11g/13343461

$opatch apply

Note: verify the log file.

11)  Start the database and run the below statements.

SQL> CONNECT / AS SYSDBA
SQL> STARTUP
      SQL@?/rdbms/admin/catbundle.sql psu apply

  Compile the invalid objects

      SQL>@?/rdbms/admin/utlrp.sql

            Please execute the below query whether view recompilation has already been performed for the database, execute the following statement:
                               SELECT * FROM registry$history where ID = '6452863';  IF returns no rows, we can recompile the views, otherwise no need

SQL> SHUTDOWN IMMEDIATE
SQL> STARTUP UPGRADE
SQL> @?/cpu/view_recompile/view_recompile_jan2008cpu.sql
SQL> SHUTDOWN;
SQL> STARTUP;

12)  Check the invalid objects list and compare the existing taken report.

13)  Start the listener

14)  Check and monitor the alert logs for next few hours.

      15)  Ask Application team to bring up their application.


I Hope this article helped you. Suggestions are welcome.

Viewing all articles
Browse latest Browse all 25

Trending Articles