Work with Simple Oracle Document
Access (SODA) in Autonomous Database
Simple
Oracle Document Access (SODA) is a set of NoSQL-style APIs that let you use collections of
JSON documents in Autonomous Database, retrieve
them, and query them, without needing to know Structured Query Language (SQL) or how the
documents are stored in the database.
Autonomous Database supports storing and querying JSON documents natively.
SODA document collections are backed by ordinary database tables and views; you can take
advantage of database features for use with the content of SODA documents.
SODA drivers are available for several languages and frameworks including:
Java, Node.js, Python, C (using Oracle Call Interface), and PL/SQL, and SODA for REST.
SODA for REST maps SODA operations to Uniform Resource Locator (URL) patterns, so it can
be used with most programming languages.
Depending on the SODA API you want to
work with, see the following:
Note
If
you are using Always Free Autonomous Database
with Oracle Database 23ai, then to avoid compatibility problems
of SODA drivers, Oracle recommends the following:
Use the driver versions that are needed for working with
JSON type as specified in SODA Drivers. See SODA Drivers for more
information.
For projects that were started using a database release prior to
Oracle Database 21c, explicitly specify the
metadata for the default collection as specified in the example in SODA
Drivers. For projects started using release Oracle Database 21c or later, just use the default metadata. See SODA Drivers for more
information.
Autonomous Database does not support Metadata
builder. To customize collection metadata pass collection
metadata strings directly to the createCollection method.
When you use SODA with Autonomous Database the following restrictions apply:
Automatic indexing is not supported for SQL and PL/SQL code that uses the
SQL/JSON function json_exists. See SQL/JSON Condition JSON_EXISTS for
more information.
Automatic indexing is not supported for SODA query-by-example (QBE).