oakcli update

Use the oakcli update command to apply Oracle Database Appliance patches.

You can apply patches using the patch bundle. In the 12.1.2.7 release, you can use the --local patching option to patch components one node at a time without impacting the other node. This reduces the downtime when applying the patch.

Note:

For this release, you must use the --local patch option to patch the server and grid components. If you want to update only the Oracle Database software, use the oakcli upgrade command.

Syntax

oakcli update -patch version [--server | --storage | --database][--local} [--noreboot] | [--clean] | [--verify][-h]

Parameters


Parameter Description

-patch version

Patch version that you want to install. For example: 12.1.2.7.0.

--server

Contains the patches previously obtained in earlier releases from the Infrastructure (infra) and Grid Infrastructure (gi) patch updates.

--storage

Contains only patches for shared storage components.

--database

(Optional) Patches Oracle database homes.

--local

Patches the component only on the local node. By default, this is set to false. For Oracle Database Appliance release 12.1.2.6, you must use the --local option to patch the server and grid.

--noreboot

(Optional) Node is not rebooted after patching.

--clean

(Optional) Cleans up all temporary files on the local node.

--verify

(Optional) Lists the patchable components on the node.

-h

(Optional) Display help for using the command.


Examples

Update the current node with the 12.1.2.7.0 patch:

oakcli update -patch 12.1.2.7.0

Patch the server with the 12.1.2.7 patch:

oakcli update -patch 12.1.2.7.0 --server --local

Patch the grid home only on the local node:

oakcli update -patch 12.1.2.7.0 --storage --local

Patch the Oracle Database homes on both nodes:

oakcli update -patch 12.1.2.7.0 --database