The Oracle NoSQL Database is a scalable, distributed low latency NoSQL database built on Oracle Berkeley DB Java Edition. Its Docker image can be pulled and run with no changes needed to the Dockerfile. With that being said, we can have an Oracle NoSql Docker container up and running with the following command:
docker run --restart=always -dit --name=nosqlce \
-p 5000-5020:5000-5020 oracle/nosql
To verify the container, you can use a 'docker logs' command. if you're still not convinced, you can use a 'docker exec' command, utilizing kvstore.jar, similar to the following:
docker exec -it nosqlce java -Xmx256m -Xmx256m \
-jar /kv-4.3.11/lib/kvstore.jar status -root /kvroot
Here, the root parameter is required.
Hopefully, this command returns a status of 'RUNNING.' The reason for the '-Xmx256m -Xms256m' settings it's generally a best practice to keep heap usage low for administrative tasks. if you get curious about the other utility commands available, use the 'help' command. Because of its length, you may want to create an appropriately named file in your '/usr/local/bin' directory for convenience. You may have to use 'chmod +x' to make the file executable.
Now, what if you had Java and kvstore,jar installed locally and wanted to interact with your Oracle NoSQL Database using these? After verifying your Java installation, or installing Java, you can download Oracle NoSQL to the directory of your choosing (i.e. /opt) with the following 'curl' command (as root if necessary):
curl -OL \
After unzipping and removing the zip file, we can use the following command to verify connectivity to our Oracle NoSQL Docker instance:
java -Xmx256m -Xms256m -jar /opt/kv-4.3.11/lib/kvstore.jar version
Be sure to adjust this for the location of your NoSQL database install.