8 Patching Oracle Database Appliance
To keep Oracle Database Appliance running with the latest software, check for and apply Oracle Database Appliance patch bundles when they are released.
- About Patching Oracle Database Appliance
Use the Oracle Database Appliance Patch Bundle to patch your appliance. - About Patching Prechecks
Patching prechecks are designed to detect and flag problems that might be encountered during patching. - About Enabling NUMA on Oracle Database Appliance
Understand how you can enable NUMA on bare metal, KVM, and DB Systems on Oracle Database Appliance. - Minimizing Downtime When Patching Oracle Database Appliance
Understand best practices to minimize downtime when you apply patches to your Oracle Database Appliance deployment. - About Updating Databases and Database Homes
Understand how to update a database and database home using either the Browser User Interface orodacli
commands. - Updating ESTES-EXT Firmware Before Patching Oracle Database Appliance Server
Update TMT (Task Management Reset Type) for Estes-Ext before you patch the Oracle Database Appliance server. - Patching Oracle Database Appliance Bare Metal Systems Using the Command-Line
Follow these steps to apply patches to your Oracle Database Appliance bare metal deployment and existing Oracle Database homes, using CLI commands. - Patching Oracle Database Appliance DB Systems Using the Command-Line
Follow these steps to apply patches to your Oracle Database Appliance DB system deployment and existing Oracle Database home in the DB system, using CLI commands. - Patching Oracle Database Appliance Bare Metal Systems Using the Browser User Interface
Upload the Oracle Database Appliance Server Patch to the patch repository, deploy the patch bundle using the Browser User Interface, and then update the DCS admin, DCS components, and DCS agent using CLI commands. - Patching Oracle Database Appliance DB Systems Using the Browser User Interface
Upload the Oracle Database Appliance Server Patch to the patch repository, deploy the patch bundle using the Browser User Interface, and then update the DCS agent and components using CLI commands. - Updating Oracle Database Appliance Repository with Database Clone Files For Bare Metal Systems
Follow these steps to update the Oracle Database Appliance repository with Oracle Database clone files for the latest release using CLI commands. - Patching Databases Using ODACLI Commands or the BUI
Use ODACLI commands or the Browser User Interface to patch databases to the latest release in your deployment. - Patching Existing Database Homes Using ODACLI or the BUI
Use ODACLI or BUI to patch database homes in your deployment to the latest release. - Patching Non-Provisioned Oracle Database Appliance Systems
Oracle Database Appliance supports patching of non-provisioned single-node or high availablity systems by runningodacli update-server
command. - Applying Additional Patches and Updates on Bare Metal Systems
Configure additional patch repositories and patch your operating system and databases to ensure that your deployment has the latest updates and security fixes. - Cleaning Up the Patch Repository
Use the Browser User Interface or Command Line Interface to delete obsolete or old patches from the repository. - About Upgrading to a Different Database Home
Understand how to upgrade to a different database home using either the Browser User Interface orodacli
commands. - Setting Dynamic Default Parameters
You can set dynamic default parameters using the BUI.
About Patching Oracle Database Appliance
Use the Oracle Database Appliance Patch Bundle to patch your appliance.
Patches offer new features and may improve the functionality of existing features.
About Out of Place Patching
Starting with Oracle Database Appliance release 19.11, Oracle Database Appliance uses the out-of-place patching model. This means that a new software Oracle home is created when patching an Oracle Grid Infrastructure or Oracle Database home. Starting with Oracle Database Appliance release 19.11, the patches for Oracle Grid Infrastructure and Oracle Database are available as images. All procedures remain the same.
About MySQL Server and DCS Agent
Starting with Oracle Database Appliance release 19.10, DCS Agent uses
MySQL server as its metadata store. MySQL server is automatically installed and
configured, during provisioning, when creating the appliance. Similarly, during
patching, the odacli update-dcscomponents
command automatically
installs and configures MySQL server. MySQL server processes do not run with
root
operating system user account. Instead, MySQL server
processes run with a new operating system user account called
odamysql
. Note that the odamysql
operating
system user is created only for ownership purposes and the odamysql
user account owns only the MySQL directories. The odamysql
operating system user cannot log into the appliance. The odamysql
operating system user account for MySQL ensures role separation between the user
owning Oracle databases on the appliance and the metadata used for DCS
operations.
About Oracle Database Appliance Patch Bundles
The Oracle Database Appliance Patch Bundle contains the latest patches for DCS Admin, DCS Components, OAK, Oracle ILOM, firmware, enhancements, and fixes.
The Oracle Database Appliance Release Notes include information about the latest Oracle Database Appliance patch bundle and a list of component versions in the patch bundle. Oracle recommends updating the appliance with the latest Oracle Database Appliance software version to take advantage of new features, fixes, and the latest supported component versions. See the Oracle Database Appliance Release Notes for the upgrade paths.
Caution:
Do not patch Oracle Database Appliance using generic patches for Oracle Grid Infrastructure or Oracle Linux. Also do not use individual infrastructure patches, such as firmware patches. You must only use Oracle Database Appliance patches. If you use patches that are not intended for Oracle Database Appliance, or if you use OPatch, or a similar patching tool, then the metadata maintained by Oracle Database Appliance is not updated, and you cannot complete future patch updates. If you apply out-of-cycle Oracle Database Release Update (RU), then ensure that you also follow the recommendations described in the Readme for the RU.The patch bundle provides all relevant patches for the entire system, including the following:
- Oracle Database Appliance server
-
BIOS
-
Hardware drivers
-
Hardware Management Pack (HMP) and firmware drivers for various components
-
Oracle Appliance Manager
-
Oracle Linux
-
Java Runtime Environment (JRE)
-
Oracle Integrated Lights Out Manager (Oracle ILOM)
-
Oracle Auto Service Request (Oracle ASR)
-
Oracle Intelligent Platform Management Interface (Oracle IPMI)
-
Network Card Patches for relevant hardware models
About Updating Oracle Linux RPMs
While not recommended, you can update some Oracle Linux RPMs for Oracle Database Appliance. Do not update or customize Oracle Linux kernel, Oracle Optimal Flexible Architecture, Oracle InfiniBand, or related software. Other software may be installed, updated, or customized. However, the Oracle Database Appliance update may not carry newer version dependencies of customized components. Therefore, you might be required to remove and subsequently reapply site-specific changes to successfully update Oracle Database Appliance in the future.
Caution:
For Oracle Database Appliance, do not update the following:
-
Oracle Linux Kernel (
kernel
) -
Oracle Optimal Flexible Architecture (
ofa
) -
Oracle RDMA packages (
oracle-rdma-release
)
For storage, do not apply any RPM updates.
Parent topic: Patching Oracle Database Appliance
About Patching Prechecks
Patching prechecks are designed to detect and flag problems that might be encountered during patching.
The prechecks view the state of the appliance, including the version and hardware specific upgrades, verify that the necessary conditions and checks are complete before attempting an upgrade, and identify conditions that might cause an upgrade to fail. You can avoid potential patching problems by correcting the conditions and resolving the issues before applying the patch.
The prechecks commands are available on Oracle Database Appliance release 12.2.1.2.0 or later. Update the DCS Agent to ensure that the latest updated prechecks are available when you run these commands.
Components Verified by Patching Prechecks
Check | Component Verified |
---|---|
System patching prechecks |
Checks that the DCS Agent is online on all nodes Checks that there is sufficient space for the update Validates the minimum agent version and validates the patching tag |
Validate Nexus Reset Estes-Ext Failed |
This server patching precheck is displayed for
ORCL-EXT-SAS3 controller with model number 0x0097. This precheck
verifies that controllers NVDATA is updated to 0e.01.00.0d
version. If Estes-Ext is not updated to I_T Nexus Reset, then an
error is
displayed.
|
Server patching prechecks |
For operating system:
For Oracle ILOM:
For Oracle Grid Infrastructure:
For Oracle ORAchk:
For server:
Confirms that the bare metal system is upgraded, in the case of DB systems. Verifies and confirms that the database start/stop dependencies are correct. Confirms that patching locks are not present. Verifies that the central inventory is accurate. |
Database home patching prechecks |
Confirms that Oracle Grid Infrastructure is installed Confirms that the DCS Agent is at the required version Confirms that Oracle Clusterware is running on all nodes Confirms that Oracle Grid Infrastructure is upgraded Validates that there is sufficient disk space available Checks if the disk group for database homes on Oracle ACFS is configured Checks whether the clone file is present in the repository Checks whether the |
Database home patching with out-of-place patching prechecks |
The check creates a database home and verifies that all databases can be moved from the source home to new home. This check validates that the
|
Storage prechecks |
Validates storage patch location and tag Validates patching location and tag Validates command execution Validates Oracle ASM disk groups status Validates rolling patch (for high-availability deployment) |
Parent topic: Patching Oracle Database Appliance
About Enabling NUMA on Oracle Database Appliance
Understand how you can enable NUMA on bare metal, KVM, and DB Systems on Oracle Database Appliance.
NUMA (Non-Uniform Memory Access) can help facilitate efficient use of the underlying NUMA hardware. On Oracle Database Appliance, you can enable NUMA for databases on bare metal and DB systems, CPU pools, and for KVM applications.
About Enabling NUMA During Provisioning of Oracle Database Appliance
When you provision Oracle Database Appliance with release 19.26, NUMA is automatically enabled on the database, DB system and CPU pools. Hence, when you create a database, DB system, or CPU pool on an Oracle Database Appliance release 19.26 deployment, NUMA is automatically enabled and no additional configuration is required. NUMA is not enabled by default for application VMs.About Enabling NUMA After Patching Oracle Database Appliance
NUMA is enabled by default starting with Oracle Database
Appliance release 19.12. When you patch to Oracle Database Appliance
release 19.26 from 19.11 or earlier,
the odacli update-server
command sets NUMA at the
system level. New databases created after patching are NUMA-enabled.
For existing databases, enable NUMA by running the command
alter system set "enable_numa_support"=true
on the database.
After patching the bare metal system to release 19.26 from 19.11 or earlier, as a
one-time activity, you must run the command odacli
remap-cpupools
to enable NUMA on all existing CPU
pools (BM, VM, dbsystem).
For existing DB systems, run the command odacli
modify-dbsystem --enable-numa
to enable NUMA for
the dbsystem and the database of the DB system.
NUMA is not enabled by default for application VMs. For new
and existing application VMs, run the command odacli
modify-vm --enable-numa
to enable NUMA for the VM
configuration. You must also enable NUMA for the components inside
the VM such as operating system and application running inside the
VM. The command odacli modify-dbsystem
--enable-numa
is only supported on application VMs
with even number of CPU cores so that CPU cores can be evenly
distributed to NUMA nodes. In Oracle Database Appliance, one CPUcore
is equal to 2 vCPU.
See the topic Patching Oracle Database Appliance Bare Metal Systems Using the Command-Line for more details about the steps to patch your deployment and enable NUMA.
Parent topic: Patching Oracle Database Appliance
Minimizing Downtime When Patching Oracle Database Appliance
Understand best practices to minimize downtime when you apply patches to your Oracle Database Appliance deployment.
Recommendations for Minimizing Downtime During Patching
- To minimize database patching downtime, it is recommended that you use Oracle RAC or Oracle RAC One Node on an Oracle Database Appliance high-availability system.
- If available, use Oracle Data Guard and patch the standby system first. After you patch the standby system, switch the workload to the standby system, patch the primary system, and then switch the workload back to the primary system. For more information, see Patching Oracle Data Guard Databases on Oracle Database Appliance in this guide.
- Always use Oracle Database Appliance Backup and Recovery (ODABR) to back up the system disks to ensure easy restore, if the patching operation fails. ODABR restores the system disk to pre-patching state.
- The
odacli update-storage
command has a--rolling
option for storage devices (SSD and HDD) to minimize patching downtime. There could be other shared storage component firmware that require a system restart and do not support rolling. Oracle Database Appliance storage patching can be deferred, but it is not recommended. Note that the--rolling
option cannot be used with theodacli update-storage
command on single-node Oracle Database Appliance systems.
Minimizing Downtime using the
--local
Option During Patching
--local
option with the
odacli update-server
and odacli update-dbhome
commands. Update the DCS components and then run the odacli
create-prepatchreport
command. There is no downtime during the prepatch
process. After analyzing the prepatch report, use the --local
option to continue patching Oracle Database Appliance.
Note:
Before patching databases, ensure that the server patching operation on both nodes has completed successfully. Do not run theodacli update-dbhome
and odacli
update-database
commands before the odacli
update-server
operation completes successfully on both
nodes.
See Also:
Oracle Database High Availability Overview and Best Practices Guide in the Oracle Database 19c Documentation LibraryParent topic: Patching Oracle Database Appliance
About Updating Databases and Database Homes
Understand how to update a database and database home using either the
Browser User Interface or odacli
commands.
About Updating Databases and Database Homes
- Patch or update each database home. The database home is
patched out-of-place. When patching database home, Oracle Database Appliance
automatically provisions a destination database home if needed, records the
source database home, target version, and destination database home mapping
in the metadata repository, and then moves all databases running in the
source database home to the destination database home. Use the
odacli update-dbhome
command or the BUI to patch all databases from a single source database home to a single destination database home. Use this option if there are no constraints on your system for space usage or for provisioning a new database home. - Patch or update selected databases in a database home to a
specific database home. You must specify the target database and
destination database home when patching. You can use the
odacli update-database
command or the BUI to patch a specific database to a specific database home or to control when and how many database homes are provisioned. Using the update-database workflow also provides an option to run the operation again, if the patching operation failed. The abort and revert options available with the update-database workflow are not supported when the target database is a single-instance database.
Before patching the database or database home, upload the Oracle Database clone files for the database version, to the repository, and then create the database home. See Patching Oracle Database Appliance Using the CLI for the procedure to update the repository with the latest Oracle Database clone files.
Important:
Theodacli
update-database
command that enabled association of a backup
configuration with database was deprecated in Oracle Database Appliance release
19.6. Starting with Oracle Database Appliance release 19.17, the odacli
update-database
command enables database patching and is similar to the
patching functionality that the odacli update-dbhome
command
provides, with a few differences as described in the Oracle
Database Appliance Deployment Guide for your hardware model.
Before you run the odacli update-dbhome
command, you
must create the prepatch report for the database home by running the command
odacli create-prepatchreport -d
. Similarly, before you run the
odacli update-database
command, you must create the prepatch
report either for the source database home or target database by running the command
odacli create-prepatchreport -d
or odacli
create-prepatchreport -db
respectively. The source and destination
database homes must be consistent in the prepatch report and when specifying them in
the odacli update-database
command. If you do not create the
prepatch report before the patch operation, then the odacli
update-database
and odacli update-dbhome
commands fail
with an error message prompting you to run the patching pre-checks.
For more information about the options for the
update-dbhome
and odacli update-database
commands, see the chapter Oracle Database Appliance Command-Line
Interface.
Parent topic: Patching Oracle Database Appliance
Updating ESTES-EXT Firmware Before Patching Oracle Database Appliance Server
Update TMT (Task Management Reset Type) for Estes-Ext before you patch the Oracle Database Appliance server.
I_T Target
Reset
of Estes-Ext to I_T Nexus Reset
. This update is not
included in the regular firmware update. Run the
/opt/oracle/oak/pkgrepos/firmwarecontroller/lsilogic/0x0097/16.00.08.00/it_nexus_reset.sh
script to complete this update before you perform server patching. The patching precheck
verifies that controllers NVDATA is updated to 0e.01.00.0d version. If
Estes-Ext
is not updated to I_T Nexus Reset
, then
an error is displayed.
Parent topic: Patching Oracle Database Appliance
Patching Oracle Database Appliance Bare Metal Systems Using the Command-Line
Follow these steps to apply patches to your Oracle Database Appliance bare metal deployment and existing Oracle Database homes, using CLI commands.
Remember:
When you patch your Oracle Database Appliance deployment to the current release, for ORCL-EXT-SAS3 controller with model number 0x0097, the patching precheck verifies that controllers NVDATA is updated to 0e.01.00.0d version. You must updateI_T Target Reset
of Estes-Ext
to I_T Nexus Reset
by running the
/opt/oracle/oak/pkgrepos/firmwarecontroller/lsilogic/0x0097/16.00.08.00/it_nexus_reset.sh
script. For more information, see the topic Updating ESTES-EXT Firmware Before
Patching Oracle Database Appliance Server.
Important:
Oracle recommends always patching from within the previous four Oracle Database Appliance releases because these patching paths are tested. If you patch from any earlier Oracle Database Appliance release, then you may encounter errors.Note:
Run the steps in this procedure in the same order as documented. Run theodacli update-dcsadmin
,
odacli update-dcscomponents
, and odacli
update-dcsagent
commands before running the odacli
update-server
command.
Note:
Note that for DCS Agent update to be complete, both theodacli update-dcscomponents
and odacli
update-dcsagent
commands must be run. Ensure that both commands are run
in the order specified.
Important:
Ensure that there is sufficient space on your appliance to download the patches.Important:
If you want to install third-party software on your Oracle Database Appliance, then ensure that the software does not impact the Oracle Database Appliance software. The version lock on Oracle Database Appliance RPMs displays a warning if the third-party software tries to override Oracle Database Appliance RPMs. You must restore the affected RPMs before patching Oracle Database Appliance so that patching completes successfully.Important:
If you have configured Oracle ASR and are patching your appliance to Oracle Database Appliance release 19.26, then after updating the DCS agent, delete the existing Oracle ASR configuration and reconfigure it, before you run theodacli update-server
command to patch your
appliance.
Note:
Public network gateway must be responsive to ping requests. Oracle Clusterware uses the public network gateway as ping target to facilitate the VIP failover in Oracle Database Appliance high-availability environment.See Also:
Enabling Custom SSH Key Management on Oracle Database Appliance in this guide for information on how to manage SSH keys on bare metal systems and DB systemsPatching Oracle Database Appliance DB Systems Using the Command-Line
Follow these steps to apply patches to your Oracle Database Appliance DB system deployment and existing Oracle Database home in the DB system, using CLI commands.
Note:
Run the commands in this topic in the same order as documented. Run theodacli update-dcsadmin
,
odacli update-dcscomponents
, and odacli
update-dcsagent
commands before running the odacli
update-server
command.
Note:
Note that for DCS agent update to be complete, both theodacli update-dcscomponents
and odacli
update-dcsagent
commands must be run. Ensure that both commands are run
in the order specified.
Note:
Public network gateway must be responsive to ping requests. Oracle Clusterware uses the public network gateway as ping target to facilitate the VIP failover in Oracle Database Appliance high-availability environment.Patching Oracle Database Appliance Bare Metal Systems Using the Browser User Interface
Upload the Oracle Database Appliance Server Patch to the patch repository, deploy the patch bundle using the Browser User Interface, and then update the DCS admin, DCS components, and DCS agent using CLI commands.
Updating the Patch Repository Using the Browser User Interface
-
Download the Oracle Database Appliance patches from My Oracle Support and save them in a directory on the appliance. See the Oracle Database Appliance Release Notes for a list of available patches and links to download the patches.
-
Log into the Browser User Interface.
https://Node0–host-ip-address:7093/mgmt/index.html
-
Click Repository Manager.
-
In the Update Patch Repository page, enter the absolute file path and patch name, then click Update Repository to start the update repository job. You can list more than one file to update to the repository with a comma separated list, without spaces, or you can update each file, one at a time.
-
Click Activity to monitor the progress. When the job completes successfully, the Patch Repository is updated.
Updating the DCS Admin, DCS Components, and DCS Agent After Updating the Repository and Before Patching
Before patching your appliance using the Browser User Interface, you must update the DCS admin, DCS agent, and DCS components manually through CLI commands.
Follow these steps:
- In the BUI, click Appliance and then click Infrastructure Patching on the lefthand pane.
- Using ODACLI commands, update the DCS admin, DCS components, and DCS
agent:
[root@oda1 opt]# /opt/oracle/dcs/bin/odacli update-dcsadmin -v 19.26.0.0.0 [root@oda1 opt]# /opt/oracle/dcs/bin/odacli update-dcscomponents -v 19.26.0.0.0 [root@oda1 opt]# /opt/oracle/dcs/bin/odacli update-dcsagent -v 19.26.0.0.0
If the DCS components are updated, then the message"status" : "Success"
is displayed on the command line. For failed updates, fix the error and then proceed with the update.Note:
You must log into the Browser User Interface again after running theodacli update-dcscomponents
command.
Running Patching Prechecks and Patching Server, and Storage Using the Browser User Interface
-
Do not have any jobs running or pending during the update window.
-
In the BUI, click the Appliance tab, and then click Infrastructure Patching on the lefthand pane.
-
In the SERVER section, view the Component Details. If you just updated the Patch Repository, click Refresh.
After the patch is uploaded to the Patch Repository, the Component Details on the page are updated with the Installed Version and Available Version for each component.
-
Click Precheck to run patching prechecks. You must run the patching prechecks before updating the server and other components. Click View Pre-check Reports to view the patching prechecks report. If there are no errors in the report, then click Apply Patch to begin the job to patch the server components. For high-availability systems, when updating the server on the bare metal system, you can select the Node to Update. You can choose the node that you want to update or you can choose to update both nodes.
When the job finishes, go to the next step. Click View Jobs for the job status.
-
In the STORAGE section, click Refresh to refresh the Component Details. Click Precheck to run patching prechecks. You must run the patching prechecks before updating the storage components. Click View Pre-check Reports to view the patching prechecks report. If there are no errors in the report, then click Apply Patch to begin the job to patch the storage components. Click View Jobs for the job status.
For high-availability environment, you can select the Rolling check box to perform rolling patching of storage components.
All patching-related information is logged in the dcs-agent
log file at /opt/oracle/dcs/log/dcs-agent.log
.
Parent topic: Patching Oracle Database Appliance
Patching Oracle Database Appliance DB Systems Using the Browser User Interface
Upload the Oracle Database Appliance Server Patch to the patch repository, deploy the patch bundle using the Browser User Interface, and then update the DCS agent and components using CLI commands.
Updating the Patch Repository Using the Browser User Interface
-
Download the Oracle Database Appliance patches from My Oracle Support and save them in a directory on the appliance. See the Oracle Database Appliance Release Notes for a list of available patches and links to download the patches.
-
Log into the Browser User Interface within the bare metal system, with the oda-admin user name and password.
https://Node0–host-ip-address:7093/mgmt/index.html
-
Click the Appliance tab, and then click Infrastructure Patching on the lefthand pane.
-
In the Update Repository tab, on the Update Patch Repository page, enter the absolute file path and patch name, then click Update Repository to start the update repository job. You can list more than one file to update to the repository with a comma separated list, without spaces, or you can update each file, one at a time.
-
Click Activity to monitor the progress. When the job completes successfully, the Patch Repository is updated.
Updating the DCS Admin, DCS Components, and DCS Agent After Updating the Repository and Before Patching
Before patching your DB system using the Browser User Interface, you must update the DCS admin, DCS agent, and DCS components manually, through CLI commands.
Follow these steps:
- In the BUI, click Appliance and then click Infrastructure Patching on the lefthand pane.
- Using ODACLI, update the DCS admin, DCS components, and DCS
agent:
[root@oda1 opt]# /opt/oracle/dcs/bin/odacli update-dcsadmin -v 19.26.0.0.0 [root@oda1 opt]# /opt/oracle/dcs/bin/odacli update-dcscomponents -v 19.26.0.0.0 [root@oda1 opt]# /opt/oracle/dcs/bin/odacli update-dcsagent -v 19.26.0.0.0
If the DCS components are updated, then the message"status" : "Success"
is displayed on the command line. For failed updates, fix the error and then proceed with the update.Note:
You must log into the Browser User Interface again after running theodacli update-dcscomponents
command.
Running Patching Prechecks and Patching Server and Storage Components Using the Browser User Interface
-
Do not have any jobs running or pending during the update window.
-
Log into the Browser User Interface within the DB system with the oda-admin user name and password.
https://Node0–host-ip-address:7093/mgmt/index.html
-
Click the Appliance tab, and then click Infrastructure Patching on the lefthand pane.
-
In the SERVER section, view the Component Details. If you just updated the Patch Repository, click Refresh.
After the patch is uploaded to the Patch Repository, the Component Details on the page are updated with the Installed Version and Available Version for each component.
-
Click Precheck to run patching prechecks. You must run the patching prechecks before updating the server and other components. Click View Pre-check Reports to view the patching prechecks report. If there are no errors in the report, then click Apply Patch to begin the job to patch the server components. For high-availability systems, when updating the server on the bare metal system, you can select the Node to Update. You can choose the node that you want to update or you can choose to update both nodes.
When the job finishes, go to the next step. Click View Jobs for the job status.
-
In the STORAGE section, click Refresh to refresh the Component Details. Click Precheck to run patching prechecks. You must run the patching prechecks before updating the storage components. Click View Pre-check Reports to view the patching prechecks report. If there are no errors in the report, then click Apply Patch to begin the job to patch the storage components. Click View Jobs for the job status.
For high-availability environment, you can select the Rolling check box to perform rolling patching of storage components.
-
Click Activity to monitor the progress, and verify that the job completes successfully.
Parent topic: Patching Oracle Database Appliance
Updating Oracle Database Appliance Repository with Database Clone Files For Bare Metal Systems
Follow these steps to update the Oracle Database Appliance repository with Oracle Database clone files for the latest release using CLI commands.
Parent topic: Patching Oracle Database Appliance
Patching Databases Using ODACLI Commands or the BUI
Use ODACLI commands or the Browser User Interface to patch databases to the latest release in your deployment.
Important:
You must run theodacli create-prepatchreport
command before you patch the Oracle databases; otherwise, the odacli
update-database
command fails with an error message prompting you to run the
patching pre-checks.
Patching Databases on Oracle Database Appliance using ODACLI Commands
Run the following command to patch a database using the CLI:
odacli update-database [-a] [-dp] [-f] [-i db_id] [-imp] [-l] [-n db_name] [-ni node] [-r] [-to db_home_id] [-j] [-h]
For more information about the options for the
update-database
command, see the chapter Oracle
Database Appliance Command-Line Interface.
Patching Databases on Oracle Database Appliance using BUI
Parent topic: Patching Oracle Database Appliance
Patching Existing Database Homes Using ODACLI or the BUI
Use ODACLI or BUI to patch database homes in your deployment to the latest release.
Patching Database Homes on Oracle Database Appliance using ODACLI Commands
Run the following command to patch a database home using the CLI:
odacli update-dbhome -i dbhome_id -v version [-f] [-imp] [-p] [-l] [-u node_number] [-j] [-h]
For more information about the options for the update-dbhome
command, see the chapter Oracle Database Appliance Command-Line
Interface.
Patching Database Homes on Oracle Database Appliance using BUI
Patching Non-Provisioned Oracle Database Appliance Systems
Oracle Database Appliance supports patching of non-provisioned single-node or
high availablity systems by running odacli update-server
command.
odacli create-appliance
command by reimaging the system using the
bare metal ISO image of Oracle Database release 19.22 or later. Then patch the system with the server patches of the same
release as the bare metal ISO image by running the odacli update-server
command. When you reimage your system, the DCS infrastructure is updated automatically.
- Reimage the Oracle Database Appliance using the bare metal ISO image for Oracle Database Appliance release 19.22 or later.
- Update the repository with the server patch for the Oracle Database Appliance release you want to patch to, for example 19.22 or later.
- For running
odacli update-server
on Oracle Database Appliance imaged with ISO of release 19.22:odacli update-server -v 19.22.0.0.0 -sko -f
For Oracle Database Appliance release 19.22, you can use the
-sko
option to skip ORAchk failures and proceed with the server patching, and the-f
option to override precheck failures and complete the server patching. - For running
odacli update-server
on Oracle Database Appliance imaged with ISO of release 19.11 or later, follow these steps:- Create the pre-patch report for the
odacli update-server
command by specifying the-s
option.odacli create-prepatchreport -v 19.11.0.0.0 -s
Fix the warnings and errors mentioned in the report and proceed with the server patching.
- Update the
server:
odacli update-server -v 19.11.0.0.0 -f
For Oracle Database Appliance release 19.11 or later, you can use the
-f
option to override precheck failures and complete the server patching.
- Create the pre-patch report for the
Parent topic: Patching Oracle Database Appliance
Applying Additional Patches and Updates on Bare Metal Systems
Configure additional patch repositories and patch your operating system and databases to ensure that your deployment has the latest updates and security fixes.
- Enabling Kernel Updates
Oracle Ksplice enables you to update your systems with the latest kernel security and bug fix updates. - Applying Out-of-Cycle Database Patches
The out-of-cycle patching feature enables administrators to patch databases in the Oracle Database Appliance deployment with the latest Oracle Database Release Update, outside of the Oracle Database Appliance releases.
Parent topic: Patching Oracle Database Appliance
Enabling Kernel Updates
Oracle Ksplice enables you to update your systems with the latest kernel security and bug fix updates.
See Also:
Oracle Linux Ksplice User's Guide for information about configuring Oracle Ksplice at:Applying Out-of-Cycle Database Patches
The out-of-cycle patching feature enables administrators to patch databases in the Oracle Database Appliance deployment with the latest Oracle Database Release Update, outside of the Oracle Database Appliance releases.
Note:
The OPatch commands and procedures described in this topic are examples, and may need modifications based on a specific Oracle Database Release Update (RU). Always refer to the Readme of the Oracle Database Release Update (RU) for additional commands and steps.Note:
It is strongly recommended that you patch your deployment through the Oracle Database Appliance releases, whenever possible.Note:
You can apply out-of-cycle patches to baremetal and DB system deployments using this procedure.Using OPatchauto to Manually Patch Oracle Database Release 12c and Later
- Confirm that the
dcs-agent
and other components are updated to the latest release.# odacli describe-component # odacli list-dbhomes
- Update OPatch to the latest version, if available:
- Download the latest OPatch version from My Oracle Support.
- Copy the files to the local host and extract them to the
ORACLE_HOME/OPatch
directory. - Update the OPatch tool as
oracle
user./bin/rm -rf $ORACLE_HOME/OPatch/ su - oracle -c /usr/bin/unzip -q -o OPatch_zip_location/p6880880_122010_Linux-x86-64.zip -d $ORACLE_HOME
- Download the latest database patches from My Oracle Support and
copy the files to the local
host.
scp patchfilename root@hostname:directory
- Unzip patches to an empty directory, for example,
/tmp/patchesDir
asoracle
user.This creates sub directories under
/tmp/patchesDir
with bug numbers. If the patch you are applying is a Release Update (RU), then the patch directory has multiple sub-directories./usr/bin/unzip -o location_of_patches/p29301631_180000_Linux-x86-64.zip -d /tmp/patchesDir
- For Oracle Database Appliance High-Availability deployments, set up SSH Keys for secure connection.
- Analyze the
patches.
$ORACLE_HOME/OPatch/opatchauto apply directory_with_patches_extracted -analyze -oh $ORALCE_HOME -log /tmp/opatchAutoAnalyzePatch.log
- As
root
user, apply the patches.$ORACLE_HOME/OPatch/opatchauto apply directory_to_extract_patches -oh $ORACLE_HOME -inplace
- When patching is completed on both nodes, run
utlrp.sql
andcatcon.pl
scripts to recompile invalid objects in the database. - Update the registry to ensure that system component values are
registered.
# odacli update-registry -n dbhome -f
Cleaning Up the Patch Repository
Use the Browser User Interface or Command Line Interface to delete obsolete or old patches from the repository.
About Cleaning Up the Patch Repository
After patching Oracle Database Appliance with the latest patches, old unused clone files may remain and consume space in the repository. Cleanup repository deletes the unused clone/patch files to reclaim space. You can clean up the repository using the Browser User Interface or ODACLI commands.
Cleaning Up the Patch Repository Using ODACLI command
# odacli cleanup-patchrepo [-cl clones] | [-v version [-comp component]]| [-l local|-n NodeID]
Specify the clone file names and the node from which you want to delete the old patches.
For details about the command options, see the chapter Oracle Database Appliance Command-Line Interface.
Cleaning Up the Patch Repository Using the Browser User Interface
- In the Browser User Interface, click Patch Manager.
- Click the Cleanup Repository tab, and then click Refresh to list the available patches in the repository.
- Select the Components, such as old Oracle Grid Infrastructure or Oracle Database clone files that you want to clean up from the repository, and the Patch Version, for example, an older release of Oracle Database Appliance.
- Click Cleanup Clone Files to clean up clone files for selected
components from the repository at
/opt/oracle/oak/pkgrepos/orapkgs/clones/
. - Click Cleanup Repository to submit the cleanup repository job.
- Click Activity to monitor the progress. When the job completes successfully, the Patch Repository is updated.
Related Topics
Parent topic: Patching Oracle Database Appliance
About Upgrading to a Different Database Home
Understand how to upgrade to a different database home using either the
Browser User Interface or odacli
commands.
Prerequisites for Upgrading Database Homes
- Oracle Database 12.2 to 19c
- Oracle Database 12.1 to 19c
Before upgrading to a different database home, upload the Oracle Database clone files for the database version, to the repository, and then create the database home. See Patching Oracle Database Appliance Using the CLI for the procedure to update the repository with the latest Oracle Database clone files.
About Upgrading Database Homes Using the Browser User Interface
Follow these steps to upgrade to a different database home using the Browser User Interface.
- Log into the Browser User Interface with the
oda-admin user name and
password.
https://Node0–host-ip-address:7093/mgmt/index.html
- Click the Database tab, and then select a database, click Actions, and then click Upgrade.
- Verify that the database upgrade job completes successfully.
About Upgrading Database Homes Using the Command-Line Interface
Run the following command to upgrade to a different database home using the CLI:
odacli upgrade-database -i Comma separated list of database ids -from source dbhome id -to destination dbhome id [-j] [-h]
For more information about the options for the upgrade-database
command, see the chapter Oracle Database Appliance Command-Line
Interface.
Parent topic: Patching Oracle Database Appliance
Setting Dynamic Default Parameters
You can set dynamic default parameters using the BUI.
Setting Dynamic Default Parameters Using the Browser User Interface
- From the Appliance page, click Parameter Repository.
- The Parameter Repository page lists all the parameters in the repository. Currently, parameters of type RDBMS are supported.
- Select Update Parameter to create a new configuration property.
- In the Update Parameter page, specify the Parameter Name and Value, and provide an optional Description. Specify whether you want to create the parameter for the Bare Metal or DB System. You can also specify the whether the parameter applies to All DB Systems or you can select the DB system for which you want to create the parameter.
- Click OK.
- Confirm the action to submit the job. Monitor the job progress and check that it completes successfully.
- To update a parameter, select the Update option from the Actions menu.
- You can edit the Value, Description, and select whether the parameter applies to Bare Metal or DB System. You can also select the DB system for which you want to update the parameter or choose to apply the parameter to All DB Systems.
- Click Update.
- To delete a parameter, select the Delete option from the Actions menu. You can delete the parameter from the Bare Metal or DB System. You can also select the DB system for which you want to delete the parameter or choose to delete the parameter from All DB Systems.
- Click Delete.
Parent topic: Patching Oracle Database Appliance