1. Download interim patch to /home/patchnumber (ftp updates.oracle.com with metalink user id and password) a.
Go to the OracleMetaLink Web site at: b. http://metalink.oracle.com/ c. Log in to OracleMetaLink. d. Select the Patches & Updates tab. e. Select Simple Search. f. Enter 5337014 in the patch number field. g. Select your platform from the drop-down list. h. Click Go. i. Click View Readme. j. Click Download after reading the Readme file. K .Follow the installation instructions in the patch set documentation 2. Check invalids sql>select OBJECT_NAME from DBA_OBJECTS where status = 'INVALID' 3. Shutdown the databases and listener SQL> Shut immediate [oracle@prod]$ lsnrctl stop $ORACLE_SID a. Shutdown All the Oracle Processes running from that Oracle Home , including the Listener and Database instance, Management agent etc b. You MUST Backup your oracle Home and Inventory
3 .Set env variables a. export ORACLE_HOME=/u02/oracle/10.2.0 b. export LD_LIBRARY_PATH=$ORACLE_HOME/lib c. export PATH =$ORACLE_HOME/OPatch:$RACLE_HOME/bin:$PATH 4 .Check if opatch is in your path Set Oracle Home [oracle@prod ]$ oraenv ORACLE_SID = [PROD] ? Set the PATH variable: [oracle@prod ] $ export PATH=$PATH:$ORACLE_HOME/OPatch [oracle@prod] $ which opatch /opt/oracle/product/10g/db_2/OPatch/opatch
5. Query the Oracle Inventory:
23:23:06 hrs PST8PDT Bugs fixed: 4269423.0.txt ——————————————————————————– Installed Top-level Products (2): Oracle Database 10g 10.2.2.3. Oracle Home : /opt/oracle/product/10g/db_2 Central Inventory : /opt/oracle/oraInventory from : /etc/oraInst.0.0 Oracle interim Patch Installer version 10. Interim patches (2) : Patch 5556081 : applied on Sun Feb 11 12:40:40 EST 2007 Created on 9 Nov 2006.2.loc OPatch version : 10.0 Copyright (c) 2005.2.2.log Lsinventory Output file location : /opt/oracle/product/10g/db_2/cfgtoollogs/opatch/lsinv/lsinventory2007-10-18_09-2135AM.0 There are 2 products installed in this Oracle Home..3.0.2. Oracle Corporation. 5528974 ——————————————————————————– OPatch succeeded.loc inventory_loc=/opt/oracle/oraInventory inst_group=dba [oracle@prod etc]
. 5557962. 22:20:50 hrs PST8PDT Bugs fixed: 5556081 Patch 5557962 : applied on Sun Feb 11 12:40:31 EST 2007 Created on 9 Nov 2006.0 Oracle Database 10g Release 2 Patch Set 2 10.0.0 OUI version : 10.3.3.3.0 OUI location : /opt/oracle/product/10g/db_2/oui Log file location : /opt/oracle/product/10g/db_2/cfgtoollogs/opatch/opatch2007-10-18_0921-35AM.0.0.1. All rights reserved.[oracle@prod]$ opatch lsinventory Invoking OPatch 10.loc [[oracle@prod]$ cat oraInst. Where is your oracle Inventory
0/db_1/inventory/ContentsXML/comps.0.0. Oracle Corporation.0 There are 2 products installed in this Oracle Home.126.96.36.199.0 Oracle interim Patch Installer version 10.loc OPatch version : 10.0 Oracle Database 10g Release 2 Patch Set 2 10. Query the Oracle Inventory:
[oracle@prod]$ opatch lsinventory Invoking OPatch 10.2.1.0..zip cd 4567866 opatch apply
8.txt ——————————————————————————– Installed Top-level Products (2): Oracle Database 10g 10.0/db_1/inventory This is the expected location of the inventory with the full path to the actual file being /u01/app/oracle/product/10. Install patch (or) apply patch
Copy the patch in $ORACLE_HOME/patches
Unzip p4567866_LINUX.3.0.xml Comps. All rights reserved.0 OUI version : 10.0 OUI location : /opt/oracle/product/10g/db_2/oui Log file location : /opt/oracle/product/10g/db_2/cfgtoollogs/opatch/opatch2007-10-18_0921-35AM. Interim patches (2) : Patch 5556081 : applied on Sun Feb 11 12:40:40 EST 2007 Created on 9 Nov 2006.2.3.2.0.3.Location of Oracle Inventory =/u01/app/oracle/product/10.2.0. Oracle Home : /opt/oracle/product/10g/db_2 Central Inventory : /opt/oracle/oraInventory from : /etc/oraInst. 22:20:50 hrs PST8PDT Bugs fixed: 5556081
.2.1.0 Copyright (c) 2005.xml is file with both the Patch IDs and the related bug numbers
7.log Lsinventory Output file location : /opt/oracle/product/10g/db_2/cfgtoollogs/opatch/lsinv/lsinventory2007-10-18_09-2135AM.
5557962. 23:23:06 hrs PST8PDT Bugs fixed: 4269423.loc> ][-jre <LOC> ] [-oh <ORACLE_HOME> ] [-patch asc|desc] [-property_file <path to property file>] [-retry <value> ]
. 23:23:06 hrs PST8PDT Bugs fixed: 4269428. 2. and 3 that are under the <patch_location> directory: opatch napply <patch_location> -id 1.Patch 5557962 : applied on Sun Feb 11 12:40:31 EST 2007 Created on 9 Nov 2006. 5528974 Patch 4567866: applied on Mon Nov 31 12:40:31 EST 2011 Created on 9 Nov 2006. 5528971
9. 5557967. checking a new check
sql>select OBJECT_NAME from DBA_OBJECTS where status = 'INVALID' How to Rollback a patch opatch rollback -id <Patch Number> The following example applies all patches under the <patch_location> directory: opatch napply <patch_location> The following example applies patches 1.2.3 Syntax Use the following syntax for this command: opatch lsinventory [-all ][-all_nodes] [-bugs_fixed asc|desc] [-delay <value> ][-detail] [-group_by_date] [-invPtrLoc <Path to oraInst. Start listener and database
SQL>Startup $ lsnrctl start $ORACLE_SID
This file is located in the following location: $ORACLE_HOME/inventory It contains the following files and folders: Components File Home Properties File Other Folders
Components File This file contains the details about third party applications like Java Runtime Environment (JRE) required by different Java-based Oracle tools and components. Each Oracle software installation will have its own Central Inventory pointer file which is unknown to another Oracle software installation /etc/oraInst. it also contains details of all the components as well as patchsets or interim patches installed in the Oracle home. The Central Inventory is located in the directory specified by the inventory pointer file.xml
.loc inventory_loc=/u01/app/oraInventory inst_group=oinstall Oracle Home Inventory ( or) local inventory Oracle home inventory or local inventory is present inside each Oracle home.Central Inventory Pointer File Every Oracle software installation has an associated Central Inventory where the details of all the Oracle products installed on a host are registered. In addition. This file is located in the following location: ORACLE_HOME/inventory/ContentsXML/comps. It contains information relevant to the particular Oracle home only.
ARU ID: This is the unique platform ID. This file is located in the following location: $ORACLE_HOME/inventory/ContentsXML/oraclehomeproperties.1. d. and as such will include be applied using the Oracle Universal Installer. or applied using the opatch utility.xml overrides the information in inventory. and the CRS flag for the Oracle home. The patching and patchset application depends on this ID. Typically.xml Patch Types 1. It is a command line tool.2. The patchset will typically result in a significant version change. the local node name. The patch may be a manual process.0 etc
What is OPatch? OPatch is Oracle's utility for applying patches.
The information in oraclehomeproperties. Applying interim patch. This file also contains the following information: GUID: This is the unique global ID for the Oracle home.2. In a shared home. Detecting Conflict when applying an interim patch after pervious interim patches have been applied.2. 2.xml. Rolling back the interim patch. c. b. a patchset is a more major operation. PATCHSET A patchset is a collection or collection of patches.
. It has no GUI. the local node information is not present.
The main purposes of OPatch is a. It also suggests the best options to resolve a conflict. ARU ID DESCRIPTION: This is the platform description.Home Properties File This file contains the details about the node list.0 to 10. Reporting on installed products and iterim patch. One-off patch Patchsets( no roll backword. like 10. Installed Through OUI) Cpu patch(Critical Patch Update) Crs# patch
All above patches can be installed using Opatch Utility except patchset PATCH A patch is a one-off fix for a specific issue. These changes may not result in an oracle version change.0.0. 3. 4.