Upgrading JDK on your Oracle NoSQL Database deployment

Consider that you have a JDK version, say JDK 8 SE, installed on all the Storage Nodes in your store deployment. But after some time, Oracle releases a new version of the JDK, say JDK 9 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 need to ensure that store remains online and available to clients.

Consider that your existing Oracle NoSQL Database deployment is a store with 3x3 topology and is deployed on 3 Storage Nodes (SN1, SN2, and SN3) each with capacity 3.

To update 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 the system 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.