Вы находитесь на странице: 1из 70

ATTENTION AUDIO Options

Option 1: Voice Streaming Audio Broadcast

No need to dial in on a telephone

Questions can be asked via WebEx Chat box

If you are listening via voice streaming and it stops, go to Communicate -> Audio Broadcast to restart the streaming audio

-> Audio Broadcast to restart the streaming audio Option 2: Teleconference (Dial In) • Requires telephone
-> Audio Broadcast to restart the streaming audio Option 2: Teleconference (Dial In) • Requires telephone

Option 2: Teleconference (Dial In)

Requires telephone to dial in

Questions can be asked over the phone or in the WebEx Chat

Details

Conference ID: “36898967

International dial in:

US Free call: +18558230291

List with national toll free numbers is available

in Doc ID: 1148600.1

View anytime during the conference using Communicate > Teleconference > Join

Teleconference from your WebEx menu

Upcoming Advisor Webcast Schedule  Check out Document ID 740966.1  Select your area of

Upcoming Advisor Webcast Schedule

Check out Document ID 740966.1

Select your area of interest

Scan through the list of Current Topics

Register for the session of your interest

For upcoming Database Advisor Webcasts & archived recordings, see Document ID 1456176.1

& archived recordings, see Document ID 1456176.1 Copyright © 2017, Oracle and/or its affiliates. All
Oracle Advisor Webcast 12c: Best Practices and Patching Oracle Database in GI Rajesh Kumar Bhardwaj

Oracle Advisor Webcast

12c: Best Practices and Patching Oracle

Database in GI

Rajesh Kumar Bhardwaj Senior Software Engineer

January 18, 2017

Kumar Bhardwaj Senior Software Engineer January 18, 2017 Copyright © 2017, Oracle and/or its affiliates. All
Kumar Bhardwaj Senior Software Engineer January 18, 2017 Copyright © 2017, Oracle and/or its affiliates. All

Safe Harbor Statement

The following is intended to outline our general product direction. It is intended for

information purposes only, and may not be incorporated into any contract. It is not a

commitment to deliver any material, code, or functionality, and should not be relied upon

in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.

products remains at the sole discretion of Oracle. Copyright © 2017, Oracle and/or its affiliates. All
Oracle Advisor Webcast 12c: Best Practices and Patching Oracle Database in GI Rajesh Kumar Bhardwaj

Oracle Advisor Webcast

12c: Best Practices and Patching Oracle

Database in GI

Rajesh Kumar Bhardwaj Senior Software Engineer

January 18, 2017

Kumar Bhardwaj Senior Software Engineer January 18, 2017 Copyright © 2017, Oracle and/or its affiliates. All
Kumar Bhardwaj Senior Software Engineer January 18, 2017 Copyright © 2017, Oracle and/or its affiliates. All

Objectives

Introduction of Types of Patching Methods

Patch GI using opatchauto

Manual Patching Steps

• Patch GI using opatchauto • Manual Patching Steps • Difference Between Manual Patching and opatchauto

Difference Between Manual Patching and opatchauto

Steps • Difference Between Manual Patching and opatchauto Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Program Agenda

1
1

Patch Delivery Methods

2
2

Opatch New Behavior

3
3

Methods To Patch

4
4

Patch Conflict Detection

5
5

Using opatchauto to Apply Patch

6
6

Manual Patching Steps

7
7

Top Issues in GI Patching

Manual Patching Steps 7 Top Issues in GI Patching Copyright © 2017, Oracle and/or its affiliates.

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Patch Delivery Methods

Patch Delivery Methods Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Patch Delivery Methods Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Patch Delivery Method

Reactive Patches:

Are usually delivered as “Interim Patches”

Are historically known as “one-off” patches

Are provided on demand for a given “defect, version, platform” combination

Go through basic sanity tests

Fixes will usually be included in the next relevant Patch Set Release

usually be included in the next relevant Patch Set Release Copyright © 2017, Oracle and/or its

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Patch Delivery Method

Proactive Patches

Address high impact bugs that affect a given configuration

Contain proven low risk fixes

Go through extra levels of testing, determined by the feature(s) affected

Are available on "My Oracle Support" by clicking on the "Patches & Updates" tab

by clicking on the "Patches & Updates" tab Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Types of Proactive Patch in 12c

There are different types of pro-active patch available.

Database Proactive Bundle Patch (DBBP)

Patch Set Update (PSU)

Proactive Bundle Patch (DBBP)  Patch Set Update (PSU) Copyright © 2017, Oracle and/or its affiliates.

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Configuration and Database Bundle Patch Mapping

   

Databas

 

OPatch

 

Configuration

GI

Version

e

Patch

Comman

Comments

Versions

d

     

Databa

   

GI Home in conjunction with RAC, RACOne, or Single Instance home

se

GI Home and all the Database Homes will be patched

12.1.0.2

12.1.0.2

Proacti

opatchauto

ve

 

Patch

 
     

Databa

 

GI Home and Database

GI Home in conjunction with RAC, RACOne, or

12.1.0.2

se

Home at 12.1.0.2 version

12.1.0.2

and prior

Proacti

opatchauto

will be patched.

Single Instance home

versions

ve

Patch

Single Instance home versions ve Patch Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Configuration and Database Bundle Patch Mapping

 

GI

Database

 

OPatch

 

Configuration

Version

Versions

Patch

Command

Comments

         

GI Home alone is patched.

Database

For Database home, apply the appropriate Database PSU for that

GI Home in conjunction

Versions prior

Proactive

opatchauto

with RAC, RACOne, or Single Instance home

12.1.0.2

to 12.1.0.2

Patch

version. For example,

apply 12.1.0.2.x PSU to Database version

12.1.0.2.0.

     

Database

 

GI Home and all the

Oracle Restart Home

12.1.0.2

12.1.0.2

Proactive

opatchauto

Database Homes will

Patch

be patched.

opatchauto Database Homes will Patch be patched. Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Patches Installed as Part of Bundle Patch 23273686

Patch Number

Description

Applicable Homes

23144544

DB BP 12.1.0.2.160719

Only DB Home for non-Oracle RAC setup. Both DB Homes and Grid Home for Oracle RAC

setup.

 

OCW PSU

 

23520664

12.1.0.2.160719

Both DB Homes and Grid Home

 

ACFS PSU

Only Grid Home

23054341

12.1.0.2.160719

21436941

DBWLM PSU 12.1.0.2.5

Only Grid Home

21436941 DBWLM PSU 12.1.0.2.5 Only Grid Home Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Configuration and PSU Mapping

 

GI

Database

 

OPatch

 

Configuration

Version

Versions

Patch

Command

Comments

GI Home in conjunction

       

GI Home and all the

with RAC, RACOne, or

12.1.0.2

12.1.0.2

GI System Patch

opatchauto

Database Homes will

Single Instance home

be patched

   

12.1.0.2 and

   

GI Home and Database Home at 12.1.0.2 version will be patched.

GI Home in conjunction with RAC, RACOne, or Single Instance home

12.1.0.2

prior versions

GI System Patch

opatchauto

12.1.0.2 prior versions GI System Patch opatchauto Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Configuration and PSU Mapping

 

GI

Database

 

OPatch

 

Configuration

Version

Versions

Patch

Command

Comments

         

GI Home alone is patched.

GI Home in conjunction with RAC, RACOne, or Single Instance home

12.1.0.2

Versions

prior to

GI System

Patch

opatchauto

For Database home, apply the appropriate Database PSU for that version. For

12.1.0.2

example, apply

12.1.0.2.x PSU to Database version

 

12.1.0.2.0.

     

GI System

 

GI Home and all the Database Homes will be patched.

Oracle Restart Home

12.1.0.2

12.1.0.2

Patch

opatchauto

Restart Home 12.1.0.2 12.1.0.2 Patch opatchauto Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Patches Installed as Part of GI PSU Patch 23273629

Patch Number

Description

Applicable Homes

 

DB PSU 12.1.0.2.160719

 

23054246

(JUL2016)

Both DB Homes and Grid Home

 

OCW PSU

 

23054327

12.1.0.2.160719

Both DB Homes and Grid Home

 

ACFS PSU

Only Grid Home

23054341

12.1.0.2.160719

21436941

DBWLM PSU 12.1.0.2.5

Only Grid Home

21436941 DBWLM PSU 12.1.0.2.5 Only Grid Home Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Which Patching Method to Use

Every customer should at least install PSUs

12.1.0.2 Customers wanting a more comprehensive set of fixes should install the Database Proactive Bundle patch

of fixes should install the Database Proactive Bundle patch Copyright © 2017, Oracle and/or its affiliates.

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Patching Method to Use

   

PLATFORM

RELEASE

 

Exadata

All non-Exadata

All non-

 

(when patching

Exadata

Exadata

just Database and Grid

Infrastructure)

(Grid

(Single

Instance)

Windows

 

Infrastructure)

   

Database Proactive

Database Proactive

Database Proactive

 

12.1.0.2

Bundle Patch

Bundle Patch

Bundle Patch

12.1.0.1

Quarterly Full Stack Download Patch for Exadata

Database Grid Infrastructure PSU

Database Grid Infrastructure PSU (GI PSU)

Database PSU

Windows Database Bundle Patch

   

Database Grid

 

11.2.0.4

and earlier

 

Database Patch for Exadata

Infrastructure PSU

(GI PSU)

Database PSU

for Exadata Infrastructure PSU (GI PSU) Database PSU Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Changing Patching Method in Use

Fully rollback the current patching method

Cannot mix BP and DB PSU patching methods in the same ORACLE_HOME

mix BP and DB PSU patching methods in the same ORACLE_HOME Copyright © 2017, Oracle and/or

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Opatch New Behavior

Opatch New Behavior Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Opatch New Behavior Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

What’s new with Opatch?

OCM is no longer packaged with OPatch

The command "emocmrsp" is used to create the response file for the option -

ocmrf. This no longer is needed since the -ocmrf is not required

opatchauto apply <UNZIPPED_PATCH_LOCATION>/23273686

This enhancement to OPatch exists in 12.2.0.1.5 and 11.2.0.3.14 releases and later

If -ocmrf is included in the command line, the following ignorable warning will be

returned You are calling OPatch with -ocmrf option while this OPatch is generic, not being

bundled with OCM. The -ocmrf option is being deprecated. Please remove it

while calling OPatch.”

being deprecated. Please remove it while calling OPatch .” Copyright © 2017, Oracle and/or its affiliates.

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

What’s new with Opatch?

Enhanced to handle superset/subset patch more efficiently

New option for "opatch lsinv" / "opatch lsinventory

opatch lsinv inactive

/ "opatch lsinventory “ opatch lsinv – inactive Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

How to Check Patch Level

How to Check Patch Level Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

How to Check Patch Level Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Patchlevel on GI Home

12c Grid Infrastructure introduces software patch level and active patch level

Ensure GI home has identical patches on all nodes

At the end of a patching to GI home, the software patch level will be updated on each node

The software patch level gets updated only after the postpatch is run

patch level gets updated only after the postpatch is run Copyright © 2017, Oracle and/or its

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

How to check Patchlevel

The software patch level gets updated only after the postpatch is run

The postpatch is last step that opatchauto executes

Oracle Clusterware Control (CRSCTL) Utility can be used

crsctl query crs softwarepatch

crsctl query crs activeversion -f

query crs softwarepatch crsctl query crs activeversion -f Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Methods To Patch

Methods To Patch Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Methods To Patch Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Methods to Patch

All Node Patching

Rolling Patch

Minimal Downtime Patch

Patch All Node Patching Rolling Patch Minimal Downtime Patch Copyright © 2017, Oracle and/or its affiliates.

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

All Node Patching - An Overview

All Node Patching - An Overview • All Oracle RAC nodes are initially brought down •

All Oracle RAC nodes are initially brought down

Patch is applied on all the nodes

all the nodes are brought back up

This mode is normally used for very critical patches

It leads to maximum downtime.

OPatch uses this mode as the default for patch

applications

OPatch uses this mode as the default for patch applications Copyright © 2017, Oracle and/or its

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Rolling Patching

Rolling Patching • Each node is shutdown • Patch is applied • Each node is brought

Each node is shutdown

Patch is applied

Each node is brought back up

This is done node by node separately until all nodes in Oracle RAC are patched

. The type is generally specified in the patch metadata

opatch query -is_rolling_patch

in the patch metadata • opatch query -is_rolling_patch Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Rolling Real Application Cluster Patching

Zero Downtime Rolling Patch Orchestration across RACs

Patch support for GI (or Clusterware) to both GI and RAC OH in a Node in a rolling fashion

to both GI and RAC OH in a Node in a rolling fashion Copyright © 2017,
to both GI and RAC OH in a Node in a rolling fashion Copyright © 2017,

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Minimum Downtime Patching

The nodes are divided into sets Patch is applied

The first set is shut down

The patch is applied to first set

The second set is shut down

The first set is brought up

Patch is applied to the second set

The second set is brought up now

This mode is executed by using -

minimize_downtime command line option.

executed by using - minimize_downtime command line option. Copyright © 2017, Oracle and/or its affiliates. All
executed by using - minimize_downtime command line option. Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Patch Conflict Detection

Patch Conflict Detection Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Patch Conflict Detection Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Patch Conflict Detection

The following commands check for conflicts in both the 12.1 GI home

and the 12.1 DB homes.

In case you are applying the patch, run this command:

#GRID_HOME/OPatch/opatchauto apply <UNZIPPED_PATCH_LOCATION>/23273629 analyze

<UNZIPPED_PATCH_LOCATION>/23273629 – analyze Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Patch Conflict Detection

For information about resolving patch conflicts see the following

documents:

Document:1941934.1 My Oracle Support Patch Conflict Checker Overview [Video] Document:1091294.1 How to Use the My Oracle Support Conflict

Checker Tool for Patches Installed with OPatch [Video]

Document:1321267.1 Database Patch Conflict Resolution

] Document:1321267.1 Database Patch Conflict Resolution Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Using opatchauto to Apply Patch

Using opatchauto to Apply Patch Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Using opatchauto to Apply Patch Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Opatchauto Introduction

opatchauto utility introduced in 12c

Java based in 12c

Automates all tasks for GI patching

Can patch GI home even when CRS service is down

Recommended for GI patching

Performs patching only on local node

for GI patching • Performs patching only on local node Copyright © 2017, Oracle and/or its

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

OPatchauto Commands OPatchauto consists of three primary commands:

apply

Resume (/u01/app/oracle/opatchauto)

Rollback

If opatchauto apply is run and encounters an individual patch within a

patch set that cannot be installed, that patch will be skipped and OPatchauto will continue with the installation of the next patch in the

sequence.

with the installation of the next patch in the sequence. Copyright © 2017, Oracle and/or its

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

OPatchauto Commands

This analyze option simulates an OPatchauto apply session by running all prerequisite checks, when possible, without making changes to the

system (either bits or configurations).

Because the analyze command does not modify the system, it will perform the following checks:

Run SQL sync in analyze mode.

Validate all pre and post processing steps making sure the command is present and

executable.

steps making sure the command is present and executable. Copyright © 2017, Oracle and/or its affiliates.

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Supported Configurations

Normal RAC cluster

RAC One node

Oracle Restart

RAC cluster with shared GI home

RAC cluster with shared RDBMS home

with shared GI home • RAC cluster with shared RDBMS home Copyright © 2017, Oracle and/or

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Patching Targets

Both GI and RDBMS home

Only GI home

Only RDBMS home

GI and RDBMS home • Only GI home • Only RDBMS home Copyright © 2017, Oracle

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Flow of opatchauto

Flow of opatchauto Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |
Flow of opatchauto Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Difference with Manual Method

opatchauto

Easy and user friendly

Eliminates requirement for manually identifying exact Less steps

Eliminates possibility of missed steps or human errors

Manual method

Long Need to have all detailed steps More steps

commands/steps for patching

detailed steps – More steps commands/steps for patching Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Demonstration Opatchauto Copyright © 2017, Oracle and/or its affiliates. All rights reserved. | 45
Demonstration Opatchauto Copyright © 2017, Oracle and/or its affiliates. All rights reserved. | 45

Demonstration

Opatchauto

Manual Patching

Manual Patching Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Manual Patching Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Manual Patching - An Overview

A long process

Stop the CRS managed resources running from DB homes

Run the pre root script

Patch GI home

Patch DB home

Run the post script

Start the CRS managed resources that were earlier running from DB homes

For each database instance running on the Oracle home being patched, run the datapatch

Has chance of some step being missed.

run the datapatch • Has chance of some step being missed. Copyright © 2017, Oracle and/or

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Manual Patching Steps for GI Home

As the database home owner execute

<ORACLE_HOME>/bin/srvctl stop home -o <ORACLE_HOME> -s <status file location> -n

<node name>

Run the pre root script as root user execute:

<GI_HOME>/crs/install/rootcrs.pl -prepatch

execute: <GI_HOME>/crs/install/rootcrs.pl -prepatch Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Manual Patching Steps for GI Home

Patch GI home as GI home owner

$ <GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/%BUGNO%/%OCW TRACKING BUG% $<GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/%BUGNO%/%ACFS TRACKING BUG%

$ <GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local

<UNZIPPED_PATCH_LOCATION>/%BUGNO%/%DBWLM TRACKING BUG% $<GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/%BUGNO%/%RDBMS PSU TRACKING BUG%

PSU TRACKING BUG% Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Manual Patching Steps for GI Home

Patch DB home as DB home owner

$ <UNZIPPED_PATCH_LOCATION>/%BUGNO%/%OCW TRACKING

BUG%/custom/scripts/prepatch.sh -dbhome <ORACLE_HOME>

$<ORACLE_HOME>/OPatch/opatch apply -oh <ORACLE_HOME> -local <UNZIPPED_PATCH_LOCATION>/%BUGNO%/%OCW TRACKING BUG%

$ <ORACLE_HOME>/OPatch/opatch apply -oh <ORACLE_HOME> -local UNZIPPED_PATCH_LOCATION>/%BUGNO%/%RDBMS PSU TRACKING BUG%

$ <UNZIPPED_PATCH_LOCATION>/%BUGNO%/%OCW TRACKING BUG%/custom/scripts/postpatch.sh -dbhome <ORACLE_HOME>

-dbhome <ORACLE_HOME> Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Manual Patching Steps for GI Home

Run the post script as the root user

<GI_HOME>/rdbms/install/rootadd_rdbms.sh <GI_HOME>/crs/install/rootcrs.pl -postpatch

Start the CRS managed resources that were earlier running from DB homes

<ORACLE_HOME>/bin/srvctl start home -o <ORACLE_HOME> -s <status file location> -n

<node name>

For each database instance running on the Oracle home being patched, run the datapatch

running on the Oracle home being patched, run the datapatch Copyright © 2017, Oracle and/or its

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Manual Patching Steps for Restart Home

As the database home owner execute

<ORACLE_HOME>/bin/srvctl stop home -o <ORACLE_HOME> -s <status file location>

Run the pre root script as root user execute:

<GI_HOME>/crs/install/roothas.pl -prepatch

execute: <GI_HOME>/crs/install/roothas.pl -prepatch Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Manual Patching Steps for Restart Home

Patch GI home as GI home owner

$ <GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local

<UNZIPPED_PATCH_LOCATION>/%BUGNO%/%OCW TRACKING BUG%

$<GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/%BUGNO%/%ACFS TRACKING BUG% $ <GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/%BUGNO%/%DBWLM TRACKING BUG% $<GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/%BUGNO%/%RDBMS PSU TRACKING BUG%

PSU TRACKING BUG% Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Manual Patching Steps for Restart Home

Patch DB home as DB home owner

$ <UNZIPPED_PATCH_LOCATION>/%BUGNO%/%OCW TRACKING

BUG%/custom/scripts/prepatch.sh -dbhome <ORACLE_HOME>

$<ORACLE_HOME>/OPatch/opatch apply -oh <ORACLE_HOME> -local <UNZIPPED_PATCH_LOCATION>/%BUGNO%/%OCW TRACKING BUG%

$ <ORACLE_HOME>/OPatch/opatch apply -oh <ORACLE_HOME> -local UNZIPPED_PATCH_LOCATION>/%BUGNO%/%RDBMS PSU TRACKING BUG%

$ <UNZIPPED_PATCH_LOCATION>/%BUGNO%/%OCW TRACKING BUG%/custom/scripts/postpatch.sh -dbhome <ORACLE_HOME>

-dbhome <ORACLE_HOME> Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Manual Patching Steps for Restart Home

Run the post script as the root user

<GI_HOME>/rdbms/install/rootadd_rdbms.sh

<GI_HOME>/crs/install/roothas.pl -postpatch

Start the CRS managed resources that were earlier running from DB homes

<ORACLE_HOME>/bin/srvctl start home -o <ORACLE_HOME> -s <status file location>

For each database instance running on the Oracle home being patched, run the datapatch

running on the Oracle home being patched, run the datapatch Copyright © 2017, Oracle and/or its

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Troubleshooting

Use debug option to get extensive logging

export OPATCH_DEBUG=true <Oracle_home>/Opatch/opatchauto <options> <Bundle Patch>

Log files are created in directories

<GI_HOME>/cfgtoollogs

<GI_HOME>/cfgtoollogs/opatchauto

<GI_HOME>/cfgtoollogs/opatchauto Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

TOP issues in GI Patching

Issue #1: Opatchauto fails with "The opatch Component check failed“

Solution : Check Document 1169036.1 and Document 1580746.1

Issue #2: OPATCH CheckSystemSpace Failed with Error Code 73 while Applying GI PSU

Solution: Check Document 1088455.1 and Document 550522.1

Issue #3: Error: 'CRS is not installed on any of the nodes‘ Solution: Check Document 1053393.1

on any of the nodes‘ Solution: Check Document 1053393.1 Copyright © 2017, Oracle and/or its affiliates.

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

TOP issues in GI Patching

Issue #4: Opatch Error "UtilSession failed: Patch nnn requires component(s) that are not installed“

Check Document 763680.1 Issue #5: Opatch: version check failed

Solution: Check Document 274526.1

version check failed Solution: Check Document 274526.1 Copyright © 2017, Oracle and/or its affiliates. All

Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |

Summary

What we covered today

Patching With opatchauto

Manual Patching

Patching Methods

With opatchauto  Manual Patching  Patching Methods Copyright © 2017, Oracle and/or its affiliates. All
With opatchauto  Manual Patching  Patching Methods Copyright © 2017, Oracle and/or its affiliates. All

Top Articles and Community Links

Top Articles and Community Links  Rolling Patch - OPatch Support for RAC [ID 244241.1] 
Top Articles and Community Links  Rolling Patch - OPatch Support for RAC [ID 244241.1] 

Rolling Patch - OPatch Support for RAC [ID

244241.1]

Composite Patches for Oracle Products [Video] [ID 1376691.1]

Supplemental Readme - Patch Installation and Deinstallation for 12.1.0.x.x GI PSU and Database Proactive Bundle Patch [ID

1591616.1]

Oracle Database - Overview of Database

Patch Delivery Methods 1962125.1)]

Stay Connected

Database Support Social Media Channels

Stay Connected Database Support Social Media Channels My Oracle Support Database Community:

My Oracle Support Database Community:

My Oracle Support Blogs:

Twitter:

Facebook

Facebook https://www.facebook.com/OracleDatabaseSupport Copyright © 2017, Oracle and/or its affiliates. All

Learn More - Resources and References on Support Portals

Learn More - Resources and References on Support Portals Help Documentation at your fingertips My Oracle

Help Documentation at your fingertips

My Oracle Support and Cloud Support Portal documentation. Find it

from the Help link in the

top right corner of most pages in both portals.

link in the top right corner of most pages in both portals. Oracle Support Essentials Webcasts

Oracle Support

Essentials Webcasts

Live instruction, Q&A on how to best use the

Support Portals. The How

To Series covers content similar to Help in a step-

by-step approach. Doc

similar to Help in a step- by-step approach. Doc 553747.1 My Oracle Support ‘How To’ Series

My Oracle Support

‘How To’ Series

Doc 553747.1 My Oracle Support ‘How To’ Series Oracle Support Accreditation Detailed training videos,

Oracle Support

Accreditation

Detailed training videos, documentation. Latest

how-to content,

webcasts, self-paced replay. Select a feature or

role to get started. Doc

learning

Leverage the Oracle

Support Accreditation

portfolio of portal and product accreditations.

Get accredited today.

product accreditations. Get accredited today. Doc 1583898.1 Copyright © 2017, Oracle and/or its affiliates. All

Learn More - Resources and References to Get Proactive

Learn More - Resources and References to Get Proactive Get Proactive Portfolio for your products Check

Get Proactive Portfolio for your products

Check out the Get Proactive Portfolio for your products. Get familiar with the top proactive tools. Doc 432.1

Ask the Get Proactive Team get-proactive_ww@oracle.com

Get Proactive Events Calendar Automatically updated to include latest Advisor Webcasts, MOS Essentials trainings, user
Get Proactive Events Calendar
Automatically updated to include latest Advisor Webcasts, MOS Essentials
trainings, user group sessions, and more
Stay Informed about Upcoming Events. Doc 125716.1
and more Stay Informed about Upcoming Events. Doc 125716.1 Copyright © 2017, Oracle and/or its affiliates.

Q & A

Q & A • To ask a question on the phone line, select *1 on your
Q & A • To ask a question on the phone line, select *1 on your

To ask a question on the phone

line, select *1 on your phone.

To ask a question online, use the

Q&A area at the top.

Your question will be read aloud in the order received.

Question can also be asked on the

My Oracle Support Communities

Oracle Advisor Webcast Series

Locating Current Schedule & Archived Recordings

Series Locating Current Schedule & Archived Recordings  Review the current schedule and archived recordin g
Series Locating Current Schedule & Archived Recordings  Review the current schedule and archived recordin g

Review the current schedule

and archived recording for your product from Doc 740966.1

Select your Product Area

our product from Doc 740966.1  Select your Product Area Copyright © 2017, Oracle and/or its

Oracle Advisor Webcast Program

Locating Current Schedule & Archived Recordings

Access the Database directly via Document ID 1456176.1

Drill down to your area of interest

Recordings available within 48 hours

Use ‘Questions?’ Link to ask

webcast related questions

Use ‘Questions?’ Link to ask webcast related questions Copyright © 2017, Oracle and/or its affiliates. All
Use ‘Questions?’ Link to ask webcast related questions Copyright © 2017, Oracle and/or its affiliates. All

Session Related Community Links

Questions? For follow up questions on topics covered in this webcast connect via this Database Community thread:

This thread will link to a copy of the

presentation, the webcast recording and will include the Q&A from the

webcast.

recording and will include the Q&A from the webcast. Copyright © 2017, Oracle and/or its affiliates.
recording and will include the Q&A from the webcast. Copyright © 2017, Oracle and/or its affiliates.

Safe Harbor Statement

The preceding is intended to outline our general product direction. It is intended for

information purposes only, and may not be incorporated into any contract. It is not a

commitment to deliver any material, code, or functionality, and should not be relied upon

in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.

products remains at the sole discretion of Oracle. Copyright © 2017, Oracle and/or its affiliates. All
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. | 69
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. | 69