Oracle Database 23c – 20 Key
Features
Comprehensive guide with
Overviews, Use Cases, and SQL
Examples
JSON Relational Duality
• • Overview:
• - Allows seamless integration of JSON and
relational data.
• - Eliminates the need for complex ETL
processes.
• - Ensures consistency when querying
structured and semi-structured data.
• • Use Case:
JSON Relational Duality – SQL
Examples
• • SQL Examples & Explanation:
• **SQL:** `CREATE DUALITY VIEW emp_view
AS SELECT * FROM employees;`
• **Explanation:** Creates a duality view that
allows querying JSON and relational data
together.
• **SQL:** `SELECT * FROM emp_view WHERE
json_column->>'$.name' = 'John';`
• **Explanation:** Retrieves employees where
Operational Property Graphs
• • Overview:
• - Enables native support for property graphs.
• - Allows complex relationship-based queries.
• - Useful for fraud detection and social
network analysis.
• • Use Case:
• - A financial institution can use property
graphs to analyze transaction relationships
Operational Property Graphs – SQL
Examples
• • SQL Examples & Explanation:
• **SQL:** `SELECT * FROM
TABLE(graph_query('socialGraph', 'MATCH (p)-
[r]->(f) RETURN p, r, f'));`
• **Explanation:** Executes a graph query to
retrieve relationships in a property graph.
• **SQL:** `INSERT INTO GRAPH socialGraph
NODES (id, name) VALUES (1, 'Alice');`
• **Explanation:** Adds a new node (person)
AI Vector Search
• • Overview:
• - Supports AI-driven similarity searches using
vector embeddings.
• - Useful for image, text, and recommendation
systems.
• - Speeds up search queries using pre-trained
models.
• • Use Case:
AI Vector Search – SQL Examples
• • SQL Examples & Explanation:
• **SQL:** `SELECT * FROM
ai_vector_search('embedding_column',
input_vector);`
• **Explanation:** Performs a similarity search
using AI-driven vector embeddings.
• **SQL:** `UPDATE images SET
vector_embedding =
ai_generate_vector(image_data) WHERE id =
True Immutable Tables
• • Overview:
• - Ensures data integrity by making tables
append-only.
• - Prevents modifications and deletions of
records.
• - Ideal for audit logs and regulatory
compliance.
• • Use Case:
True Immutable Tables – SQL
Examples
• • SQL Examples & Explanation:
• **SQL:** `CREATE IMMUTABLE TABLE
transactions (id NUMBER, amount NUMBER,
PRIMARY KEY (id));`
• **Explanation:** Creates an immutable table
where records cannot be modified or deleted.
• **SQL:** `INSERT INTO transactions VALUES
(101, 500.00);`
• **Explanation:** Adds a transaction record,
JSON Schema Validation
• • Overview:
• - Validates JSON documents against
predefined schemas.
• - Prevents incorrect data from being stored.
• - Ensures consistency in JSON-based
applications.
• • Use Case:
• - A banking application can enforce schema
JSON Schema Validation – SQL
Examples
• • SQL Examples & Explanation:
• **SQL:** `ALTER TABLE orders ADD CHECK
(json_data IS JSON SCHEMA 'schema.json');`
• **Explanation:** Adds a validation check to
ensure JSON data conforms to the specified
schema.
• **SQL:** `INSERT INTO orders VALUES (1,
'{"customer": "John", "amount": 100}');`
• **Explanation:** Attempts to insert JSON