Tuesday 14 July 2020

Apply Conflicts patch to 18c Grid home

Issue: Trying to apply 28553832 to 18c grid home but it had a conflicts with  existing patch 27912127

  

1.  Present Patches in Grid home

[grid@racnode01 18c_Software]$ opatch lspatches

28790643;Database Release Update Revision : 18.3.2.0.190115 (28790643)

27912127;OCW Interim patch for 27912127

27908644;UPDATE 18.3 DATABASE CLIENT JDK IN ORACLE HOME TO JDK8U171

27923415;OJVM RELEASE UPDATE: 18.3.0.0.180717 (27923415)

28256701;TOMCAT RELEASE UPDATE 18.3.0.0.0 (28256701)

28090564;DBWLM RELEASE UPDATE 18.3.0.0.0 (28090564)

28090557;ACFS RELEASE UPDATE 18.3.0.0.0 (28090557)

OPatch succeeded.

 

2.  Checking Conflicts with analyze

# opatchauto apply /tmp/28553832 -analyze

OPatchauto session is initiated at Mon Jul 13 06:45:06 2020

System initialization log file is /u01/app/18.3.0.0/grid/cfgtoollogs/opatchautodb/systemconfig2020-07-13_06-45-07AM.log.

 

Session log file is /u01/app/18.3.0.0/grid/cfgtoollogs/opatchauto/opatchauto2020-07-13_06-49-14AM.log

The id for this session is A7J2

 

Executing OPatch prereq operations to verify patch applicability on home /u01/app/18.3.0.0/grid

Patch applicability verified successfully on home /u01/app/18.3.0.0/grid

OPatchAuto successful.

 

------------------------Summary-----------------------------

Analysis for applying patches has failed:

 

Host:racnode01

CRS Home:/u01/app/18.3.0.0/grid

Version:18.0.0.0.0

Analysis for patches has failed.

 

==Following patches FAILED in analysis for apply:

Patch: /tmp/28553832/28553832

Log: /u01/app/18.3.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-07-13_06-49-19AM_1.log

Reason: Failed during Analysis: CheckConflictAgainstOracleHome Failed, [ Prerequisite Status: FAILED, Prerequisite output: 

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 : 

27912127, 28553832


Conflicts/Supersets for each patch are:

Patch : 28553832

        Bug Conflict with 27912127

        Conflicting bugs are:

        27265816, 28045209, 27314512, 26587652, 27581484, 27346984, 27433163 ...

OPATCHAUTO-72053: Analysis for the patches failed.

OPATCHAUTO-72053: Command execution failed.

OPATCHAUTO-72053: Please check the summary for more details.

 

Following homes are skipped during patching as patches are not applicable:

/u01/app/oracle/product/11.2.0_64

OPatchauto session completed at Mon Jul 13 06:49:21 2020

Time taken to complete the session 4 minutes, 15 seconds

root@racnode01:#

 

Note : patch analysis failed due to conflicts patch


3.  Lets see various options in opatchauto apply   

root@ racnode01 # opatchauto apply -help

OPatchauto session is initiated at Mon Jul 13 07:18:06 2020

Oracle OPatchAuto Version 13.9.3.0.0

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

 

DESCRIPTION

    This operation applies patch.

    Purpose:

        Apply a System Patch to Oracle Home. If patch location is not

        specified,  current directory will be taken as the patch location.

 

SYNTAX

    opatchauto apply [ <patch-location> ]

                     [ -phBaseDir <patch.base.directory> ]

                     [ -oh <home> ] [ -log <log> ]

                     [ -logLevel <log_priority> ] [ -binary ]

                     [ -analyze ]

                     [ -invPtrLoc <inventory.pointer.location> ]

                     [ -host <host> ] [ -wallet <wallet> ]

                     [ -force_conflict ] [ -skip_conflict ]

                     [ -no_relink ] [ -jre <jre> ]

                     [ -remote-image-location <remote.image.location> ]

                     [ -port <port> ] [ -inplace ] [ -sidb ] [ -sdb ]

                     [ -outofplace ] [ -rolling ]

                     [ -database <database> ] [ -silent <silent.key> ]

                     [ -generatesteps ] [ -prepare-clone ]

                     [ -norestart ] [ -ocmrf <ocmrf> ] [ -remote ]

                     [ -switch-clone ] [ -nonrolling ] [ -sid <sid> ]

-force_conflict

        If a conflict exist which prevents the patch from being applied, this flag can be used to force application of the patch.

        All the conflicting patches will be removed before applying the current patch.

 

4.  Apply Conflicts patch to grid home with  -force_conflicts option

patch apply Node 1:

root@racnode01#opatchauto apply /tmp/28553832  -force_conflict -oh /u01/app/18.3.0.0/grid

 

OPatchauto session is initiated at Mon Jul 13 10:37:47 2020

System initialization log file is /u01/app/18.3.0.0/grid/cfgtoollogs/opatchautodb/systemconfig2020-07-13_10-37-48AM.log.

 

Session log file is /u01/app/18.3.0.0/grid/cfgtoollogs/opatchauto/opatchauto2020-07-13_10-39-53AM.log

The id for this session is NNUI

 

Executing OPatch prereq operations to verify patch applicability on home /u01/app/18.3.0.0/grid

Patch applicability verified successfully on home /u01/app/18.3.0.0/grid

 

Bringing down CRS service on home /u01/app/18.3.0.0/grid

CRS service brought down successfully on home /u01/app/18.3.0.0/grid

 

Start applying binary patch on home /u01/app/18.3.0.0/grid

Binary patch applied successfully on home /u01/app/18.3.0.0/grid

 

Starting CRS service on home /u01/app/18.3.0.0/grid

 CRS service started successfully on home /u01/app/18.3.0.0/grid

 

OPatchAuto successful.

---------------Summary---------------------

Patching is completed successfully. Please find the summary as follows:

Host:racnode01

CRS Home:/u01/app/18.3.0.0/grid

Version:18.0.0.0.0

Summary:

==Following patches were SUCCESSFULLY applied:

Patch: /tmp/28553832/28553832

Log: /u01/app/18.3.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-07-13_10-41-19AM_1.log

 

OPatchauto session completed at Mon Jul 13 10:49:21 2020

Time taken to complete the session 11 minutes, 34 seconds

 

Verify patch details :

[grid@racnode01 19c_Software]$ opatch lspatches

28553832;OCW Interim patch for 28553832

28790643;Database Release Update Revision : 18.3.2.0.190115 (28790643)

27908644;UPDATE 18.3 DATABASE CLIENT JDK IN ORACLE HOME TO JDK8U171

27923415;OJVM RELEASE UPDATE: 18.3.0.0.180717 (27923415)

28256701;TOMCAT RELEASE UPDATE 18.3.0.0.0 (28256701)

28090564;DBWLM RELEASE UPDATE 18.3.0.0.0 (28090564)

28090557;ACFS RELEASE UPDATE 18.3.0.0.0 (28090557)

OPatch succeeded.

 

Patch Node 2:

root@racnode02# opatchauto apply /u01/app/18c_Software/28553832  -force_conflict -oh /u01/app/18.3.0.0/grid

 

OPatchauto session is initiated at Mon Jul 13 10:57:27 2020

System initialization log file is /u01/app/18.3.0.0/grid/cfgtoollogs/opatchautodb/systemconfig2020-07-13_10-57-28AM.log.

 

Session log file is /u01/app/18.3.0.0/grid/cfgtoollogs/opatchauto/opatchauto2020-07-13_10-59-35AM.log

The id for this session is KEK1

 

Executing OPatch prereq operations to verify patch applicability on home /u01/app/18.3.0.0/grid

Patch applicability verified successfully on home /u01/app/18.3.0.0/grid

 

Bringing down CRS service on home /u01/app/18.3.0.0/grid

CRS service brought down successfully on home /u01/app/18.3.0.0/grid

 

Start applying binary patch on home /u01/app/18.3.0.0/grid

Binary patch applied successfully on home /u01/app/18.3.0.0/grid

 

Starting CRS service on home /u01/app/18.3.0.0/grid


CRS service started successfully on home /u01/app/18.3.0.0/grid

OPatchAuto successful.

-------------------------Summary----------------------------

Patching is completed successfully. Please find the summary as follows:

Host:racnode02

CRS Home:/u01/app/18.3.0.0/grid

Version:18.0.0.0.0

Summary:

==Following patches were SUCCESSFULLY applied

Patch: /u01/app/18c_Software/28553832/28553832

Log: /u01/app/18.3.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-07-13_11-01-39AM_1.log

OPatchauto session completed at Mon Jul 13 11:12:06 2020

Time taken to complete the session 14 minutes, 40 seconds

root@racnode02:# 

 

Verify patch details :

[grid@racnode02 18c_Software]$ opatch lspatches

28553832;OCW Interim patch for 28553832

28790643;Database Release Update Revision : 18.3.2.0.190115 (28790643)

27908644;UPDATE 18.3 DATABASE CLIENT JDK IN ORACLE HOME TO JDK8U171

27923415;OJVM RELEASE UPDATE: 18.3.0.0.180717 (27923415)

28256701;TOMCAT RELEASE UPDATE 18.3.0.0.0 (28256701)

28090564;DBWLM RELEASE UPDATE 18.3.0.0.0 (28090564)

28090557;ACFS RELEASE UPDATE 18.3.0.0.0 (28090557)

OPatch succeeded.

No comments:

Post a Comment