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.6 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 [--infra | --gi | --database][--local} [--noreboot] | [--clean] | [--verify][-h]

Parameters


Parameter Description

-patch version

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

--infra

Patches the server components, including the OS, ASR, HMP, OAK, and so on. This is the default option. Note that the --infra patch works only with the -- local option.

--gi

Patches the grid. Note that the --gi patch works only with the --local option.

--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.6.0 patch:

oakcli update -patch 12.1.2.6.0

Patch the server with the 12.1.2.6 patch:

oakcli update -patch 12.1.2.6.0 --infra --local

Patch the grid home only on the local node:

oakcli update -patch 12.1.2.6.0 --gi --local

Patch the Oracle Database homes on both nodes:

oakcli update -patch 12.1.2.6.0 --database