Step 4: Patch the Server

Use Oracle Appliance Manager (oakcli) to patch the server. You can use automatic patching, or manual patching.

To patch the servers, select the automatic patching procedure, or select the manual patching procedure.

You must download the Oracle Database Appliance Patch Bundle from My Oracle Support. Either download it directly, or download it to a thumb drive, and copy the file to server nodes using the thumb drive.

Automatic Server Patch Procedure

The automatic server patching process is a rolling upgrade that automatically patches Node 0 after patching Node 1. This automatic procedure enables Oracle Grid Infrastructure to continue to be up and running on one of the nodes during patching.

  1. Download the Oracle Database Appliance server patch bundle from My Oracle Support to Node 0.

  2. Log in to Node 0 as the root user.

  3. Run the command oakcli update -patch version --server, where version is the patch set bundle version.

    For example:

    #/opt/oracle/oak/bin/oakcli update -patch 12.1.2.7.0 --server
    

    This command patches the server on Node 1. After that patch update is complete, it then automatically patches Node 0

  4. Observe the patch status reports.

    As the patch runs, it displays output that advises you of the installation progress. Part of the server patch update requires node 1 to be restarted, then node 0 to be restarted. Wait until Node 0 shuts down and completes restarting before proceeding to the next step.

Manual Server Patch Procedure

The manual server patching process requires you to log in to a node, and run Oracle Appliance Manager (oakcli) using a local node server patch update. After you complete the patch procedure on the first node, log into the second node, and patch the second node.

  1. Download the Oracle Database Appliance server patch bundle from My Oracle Support to node 0.

  2. Log in to Node 0 as the root user.

  3. Run the Oracle Appliance Manager command oakcli update -patch version --server --local, where version is the patch set bundle version.

    For example:

    #/opt/oracle/oak/bin/oakcli update -patch 12.1.2.7.0 --server --local
    

    The Oracle Appliance Manager command carries out the patch on Node 0. As the patch runs, it displays output that advises you of the installation progress.

  4. Oracle Appliance Manager prompts you to restart the node. Restart the node, and wait until Node 0 shuts down and completes restarting before proceeding to the next step.

  5. Log out of Node 0, and log in to Node 1 as the root user.

  6. Run Oracle Appliance Manager on Node 1 using the --local flag to patch the server.

    For example:

    #/opt/oracle/oak/bin/oakcli update -patch 12.1.2.7.0 --server --local
    
  7. Oracle Appliance Manager prompts you to restart the node. Restart the node, and wait until Node 0 shuts down and completes restarting.

When both servers are patched and restarted, proceed to the next step.