Database Patching In Oracle Cloud: Step By Step

Oracle

Share Post Now :

HOW TO GET HIGH PAYING JOBS IN AWS CLOUD

Even as a beginner with NO Experience Coding Language

Explore Free course Now

Table of Contents

Loading

Database Patching is done for fixing bugs and improving system performance. Patching co-managed (VMBD/BMDB/Exadata) databases are the responsibility of the user while applying patches to autonomous databases is done by the provider (Oracle).

Things You Must Know About Database Patching

There are 5 things we should know about patching

  1. Operating systems patches
  2. Database Patching
  3. Grid Infrastructure patching
  4. Cloud tooling patching
  5. Interim Patches

1) Operating System Patches: Oracle provides security patches for machines on the VMDB/BMDB system.

2) Database Patching: Patches are applied to databases in two ways. To the DB system in which the databases are present and to the databases directly.

3) Grid Infrastructure Patching: Grid Infrastructure is the infrastructure in which database components like OS and storage are present. We can apply patches to this infrastructure.

4) Cloud tooling patching: We can apply patches to cloud tools like (DBcli & DBaaSCLI) which we use to apply patches to databases.

5) Interim Patches: Interim patches are used to fix specific bugs for a particular customer. These patches require a particular base release or patchset to be installed before they can be applied. These patches are not versioned and are generally available in a future patchset as well as the next product release.

Read this post for an overview of Autonomous Database, Types of Autonomous database (Autonomous data warehouse & Autonomous Transaction Processing) and Autonomous offering as Serverless & Dedicated Infrastructure.

Important Points Regarding Database Patching

  1. We can apply patches using console or cli.
  2. Requires reboot and so need to plan for downtime.
  3. Implement High availability to minimize downtime.
  4. Backup the database before applying the patch.
  5. Patch the DB system node before and then the databases.

Read More: Oracle Enterprise Manager(OEM) 13c for beginners, what is OEM, high-level steps to deploy OEM on Oracle cloud infrastructure (OCI), OEM architecture components, OEM HA/DR overview.

Prerequisite To Apply Patches

  1. The DB system requires access to the Oracle Cloud Infrastructure Object Storage service, this is where the patches are stored.
  2. The /u01 directory on the database host file system has at least 15 GB of free space for the execution of patching processes.
  3. The Oracle Clusterware should be up and running on the DB system.
  4. All nodes of the DB system is up and running (RAC databases).

Note: This blog post covers the steps to apply a patch on VMDB/BMDB databases using the console and dbcli.

Steps To Apply Patch Using Console

1) Navigate to the DB system created using the console. Under resources click patches. Click on the three dots against the patch available.

DB system

Now we can pre-check it and if the pre-check is done successfully then we can go ahead and apply the patch.

2) To apply a Database patch click on databases under resources in DB System details, and click databases and then under database resources click patches.

database patch

Steps To Apply Patch Using Command Line Interface

Patch using CLI is done in two ways:

  • To apply a patch on User managed databases like (VMDB/BMDB) we use Dbcli.
  • To apply a patch to an Exadata DB system  we use DBaaSCLI

Note: You can use DBcli operation only as a root user.

Note: Before applying a patch to databases make sure you update the latest version of Cloud tool (Dbcli/ DBaaSCLI) you are using. You can do it by using below command

cliadm update-dbcli

update dbcli

1) Display the installed patch versions by using the dbcli describe-component command.

installed patch version

2) To display the latest patch available.

dbcli describe-latestpatch

latest patch version

3) To patch server components:

dbcli update-server

update server

4) Update database home components by using:

dbcli list-dbhomes
dbcli update-dbhome -i <id>

update dbhome

5) Check the job output by using:

dbcli describe-job -i <job id>

describe job

Note: We can also see patch history under the resources of DB System details.

Patching Exadata DB

There are two ways to patch an Exadata DB system.

  1. Using console
  2. Using DBaaSCLI (cloud tool)

1) Navigate to the Exadata DB system on the console, under resources you will find patches (same as that in VMDB/BMDB).

To know more about patching Exadata DB using console click here.

2) We can use DBaaSCLI tool to apply a patch on Exadata DB.

DBaaSCLI

To know more about patching Exadata DB using DBaaSCLI tool click here.

Related/Further Readings

Begin Your Cloud Journey

Begin your journey towards becoming an Oracle Cloud Expert and earn a lot more in 2024 by joining our FREE CLASSYou will also know more about the Roles and ResponsibilitiesJob opportunities for OCI Architects, Admins in the market, and what to study Including Hands-On labs you must perform to get the Higher Paying jobs.

Click on the below image to Register for Our FREE Class on MASTERING ORACLE CLOUD FOR DBAs, APPs DBAs, ARCHITECTS & SYS ADMINS

Master Oracle Cloud FREE Class

Picture of mike

mike

I started my IT career in 2000 as an Oracle DBA/Apps DBA. The first few years were tough (<$100/month), with very little growth. In 2004, I moved to the UK. After working really hard, I landed a job that paid me £2700 per month. In February 2005, I saw a job that was £450 per day, which was nearly 4 times of my then salary.