Showing posts with label Oracle Database. Show all posts
Showing posts with label Oracle Database. Show all posts

Wednesday, 20 January 2016

Oracle Database 12.1.0.2.5 - Applying Patch 19509982: DISABLE FIX FOR RAISING ORA-1792 BY DEFAULT.

Oracle Database 12.1.0.2.5 - Applying Patch 19509982: DISABLE FIX FOR RAISING ORA-1792 BY DEFAULT.

- Download Patch 19509982 (p19509982_121025_Linux-x86-64.zip)

- Patch 19509982 is RAC Rolling Installable, Data Guard Standby-First Installable

Pre-requisites

- Ensure 12c Release 12.1.0.2.5 Patch Set Update (PSU) 21359755 is already applied

- Verify OPatch 12c Release 12.1.0.1.7 or higher

Applying Patch 19509982

- Set environment variables like ORACLE_HOME, PATH, etc

- Unzip the patch

$ unzip -d PATCH_TOP p19509982_121025_Linux-x86-64.zip

- Shutdown services

- $ cd PATCH_TOP/19509982

$ opatch apply

- Verify the patch

$ opatch lsinventory |grep 19509982

- Start services


Patch De-installation

If any issues after applying the patch and rollback is required, follow below steps:

- Shutdown services

- $ cd PATCH_TOP/19509982

$ opatch rollback -id 19509982
  
- Start services

- Verify patch was removed 

$ opatch lsinventory


Related Posts:

Oracle 12.1.0.2.0 - Applying Patch 21260431: GETTING ORA-4031 AFTER 12C UPGRADE


Oracle Database 12.1.0.2.0 - Applying Patch 21359755: DATABASE PATCH SET UPDATE 12.1.0.2.5

Tuesday, 12 January 2016

libserver11.a:/qksbg.o Patch 12942119 conflicts when applying Oracle 11.2.0.3.0 Patch 20760997: DATABASE PATCH SET UPDATE 11.2.0.3.15 (INCLUDES CPUJUL2015)

libserver11.a:/qksbg.o Patch 12942119 conflicts when applying Oracle 11.2.0.3.0 Patch 20760997: DATABASE PATCH SET UPDATE 11.2.0.3.15 (INCLUDES CPUJUL2015)

When applying Patch 20760997, there is conflict with existing patch 12942119. However, patch 12942119 can be rollbacked and once the cpu patch 20760997 is applied then apply the overlay patch 12942119 version 11.2.0.3.8 

(Reference: Database Patch Set Update Overlay Patches Required for Use with PSUs and Oracle E-Business Suite Doc ID 1147107.1)


- Download Patch 20760997 (p20760997_112030_Linux-x86-64.zip)


Patch 20760997 Conflict Checks


$ cd $DB_HOME/patches/20760997

$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./

Oracle Interim Patch Installer version 11.2.0.3.0

Copyright (c) 2012, Oracle Corporation.  All rights reserved.

PREREQ session


Oracle Home       : $DB_HOME/product/112
Central Inventory : $DB_HOME/oraInventory

   from           : $DB_HOME/product/112/oraInst.loc
OPatch version    : 11.2.0.3.0

OUI version       : 11.2.0.3.0


Invoking prereq "checkconflictagainstohwithdetail"


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

Prereq "checkConflictAgainstOHWithDetail" failed.



Summary of Conflict Analysis:


There are no patches that can be applied now.



Following patches have conflicts. Please contact Oracle Support and get the merged patch of the 

patches :
20760997, 12942119


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

list :
12942119

Conflicts/Supersets for each patch are:


Patch : 20760997



        Conflict with 12942119

        Conflict details:

        $DB_HOME/product/112/lib/libserver11.a:/qksbg.o


OPatch succeeded.

Patch 12942119 Version 11.2.0.3.8 Conflict Checks

$ pwd

$DB_HOME/patches/12942119
$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./

Oracle Interim Patch Installer version 11.2.0.3.0

Copyright (c) 2012, Oracle Corporation.  All rights reserved.

PREREQ session


Oracle Home       : $DB_HOME/product/112
Central Inventory : $DB_HOME/oraInventory

   from           : $DB_HOME/product/112/oraInst.loc
OPatch version    : 11.2.0.3.0

OUI version       : 11.2.0.3.0

Log file location : 
$DB_HOME/product/112/cfgtoollogs/opatch/opatch2015-12-19_02-51-27AM_1.log


Invoking prereq "checkconflictagainstohwithdetail"


Prereq "checkConflictAgainstOHWithDetail" passed.

OPatch succeeded.
$


Apply Patch 20760997

- Shutdown DB & MT services (Cold backup recommended)

- Login to DB Node

PATH=$ORACLE_HOME/OPatch:$PATH export PATH

cd $DB_HOME/patches/20760997

 opatch apply


Note while applying the patch there will be conflict with patch 12942119. Rollback patch 12942119 and proceed with applying CPU patch 20760997. 

Once completed apply overlay patch 12942119 verison 11.2.0.3.8. 

- Apply overlay patch  12942119 verison 11.2.0.3.8

cd $DB_HOME/patches/12942119


opatch apply

Post Patch Steps
- Start DB and Listener services

- Load modified SQL files into the database following below steps.

For a RAC environment, perform these steps on only one node.


For each database instance running on the Oracle home being patched, connect to the database 

using SQL*Plus. Connect as SYSDBA and run the catbundle.sql script as follows:


    cd $ORACLE_HOME/rdbms/admin
    sqlplus /nolog
    SQL> CONNECT / AS SYSDBA


    SQL> STARTUP
    SQL> @catbundle.sql psu apply
    SQL> QUIT

The catbundle.sql execution is reflected in the dba_registry_history view by a row associated with bundle series PSU.

If OJVM PSU was applied for a previous PSU patch, you may see invalid Java classes after execution of the catbundle.sql script in the previous step. If this is the case, run utlrp.sql to  re-validate these Java classes.

    cd $ORACLE_HOME/rdbms/admin
    sqlplus /nolog


    SQL> CONNECT / AS SYSDBA
    SQL> @utlrp.sql

Check the following log files in $ORACLE_HOME/cfgtoollogs/catbundle or $ORACLE_BASE/cfgtoollogs/catbundle for any errors:

catbundle_PSU_<database SID>_APPLY_<TIMESTAMP>.log
catbundle_PSU_<database SID>_GENERATE_<TIMESTAMP>.log


- Start MT services


Related Posts:

Checking for Patch conflicts - 21352635: DATABASE PATCH SET UPDATE 11.2.0.4.8 (INCLUDES CPUOCT2015)

Applying 21352635: DATABASE PATCH SET UPDATE 11.2.0.4.8 (INCLUDES CPUOCT2015)

Rollback Patch 21352635: DATABASE PATCH SET UPDATE 11.2.0.4.8 (INCLUDES CPUOCT2015)

Monday, 22 June 2015

Applying Patch 6880880: OPatch patch of version 11.2.0.3.11 for Oracle software releases 11.2.0.x (JUN 2015)

Applying Patch 6880880: OPatch patch of version 11.2.0.3.11 for Oracle software releases 11.2.0.x (JUN 2015)

Download OPatch patch of version 11.2.0.3.11 for Oracle software releases 11.2.0.x (JUN 2015) Patch p6880880_112000_LINUX.zip

Copy the latest OPatch version to staging area; for example let's say /stage

cd /stage/

unzip p6880880_112000_LINUX.zip

cd /ORACLE_HOME/

Rename existing older version of OPatch

mv OPatch OPatch_old

Copy latest version of OPatch from staging area.

cp -r /stage/OPatch .

Verify the latest OPatch version.

./opatch version

Opatch version is also displayed after running ./opatch lsinventory command

Saturday, 3 May 2014

Applying APRIL 2014 DATABASE PATCH SET UPDATE 11.2.0.3.10 - Patch 18031683

Applying APRIL 2014 DATABASE PATCH SET UPDATE 11.2.0.3.10 - Patch 18031683

1) Download Patch 18031683 relevant for your environment

2) Verify if the patch already applied or not

$opatch lsinventory | grep 18031683

3) Check opatch version to ensure it is 11.2.0.3.0 or higher

$opatch version

Note: If Opatch version is not up to date then download patch 6880880 from Metalink

4) Check for patch conflicts

Copy patch onto target host $ORACLE_HOME/patches, unzip the patch.

opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./18031683

Note: If there's no conflict please proceed with applying the patch. In case of conflicts, contact product support.

5) Check for invalid objects in Database 

select owner,object_name,object_type from dba_objects where status='INVALID';

6) Shutdown the services and apply the patch (make sure backup is taken before applying patch).


$ opatch apply
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.
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
OPatch succeeded.

7) Check if patch is successfully applied or not.

$ opatch lsinventory | grep 18031683


8) Post patch, load modified SQL files into the Database:

Start the database

cd $ORACLE_HOME/rdbms/admin

SQL> @catbundle.sql psu apply

PL/SQL procedure successfully completed.
-------------------
SQL> COMMIT;

Commit complete.

9) Check log files in $ORACLE_HOME/cfgtoollogs/catbundle for any errors
10)Query registry$history to ensure PSU was applied.

SQL> select * from registry$history;


11) Run utlrp.sql for any invalid objects reported.