Upgrading JDK on your Oracle NoSQL Database deployment

Consider that you have a JDK version, say JDK 11 SE, installed on all the Storage Nodes in your data store deployment. But after some time, Oracle releases a new version of the JDK, say JDK 17 SE, that includes security enhancements and bug fixes. Now, you want to upgrade the existing JDK to a newer version of the JDK.

Additionally, during the upgrade, you want to ensure that the data store remains online and available to clients.

Consider that your existing Oracle NoSQL Database is deployed on 3 Storage Nodes (SN1, SN2, and SN3).

To update the JDK on your Oracle NoSQL Database deployment:

  1. Based on the OS architecture, download and install the required version of JDK from Java SE Downloads.
  2. Update the $JAVA_HOME and $PATH environment variables to point to the updated JDK directory.
  3. Verify that in the Storage Node, the JDK is now pointing to the new JDK by running the java -version command and verifying the output.
  4. Stop the SNA (Storage Node Agent) process in SN1 by running the following command:
    java -Xmx64m -Xms64m -jar $KVHOME/lib/kvstore.jar stop -root $kvroot
  5. Restart the SNA process in SN1 by running the following command:
    nohup java -Xmx64m -Xms64m -jar $KVHOME/lib/kvstore.jar start -root $kvroot &
  6. Repeat steps 1 through 5 for each Storage Node. Make sure these steps are run sequentially on all the Storage Nodes. For example, run steps 1 to 5 on SN1, followed by SN2, and so on.