Just in time for this magical season, Oracle is giving us an Autonomous AI Lakehouse that leverages Apache Iceberg so that you can access things like Snowflake, Google BigQuery, Amazon Redshift, or Databricks. The Autonomous AI Lakehouse can read/write to Apache Iceberg. As Juan Loaiza put it at Oracle AI World, "Oracle Autonomous Data Warehouses automatically become Autonomous Data Lakehouses." (see Figure 1 below)
Figure 1: Oracle Autonomous AI Lakehouse with all the great features in the Oracle AI Database
This wonderful time of the year provides you with an Oracle Feature Tip that will increase performance while keeping customers and companies happy (especially consumers & merchants). We'll look at simple examples to show how easy this new 23ai Oracle Database feature is to use with the new 26ai (23.26.0.0.0) Database. My 26ai free database took just 35 seconds to start today! To upgrade to 26ai, which includes many new AI features, simply apply the October Release Update (RU).
This is not a full database upgrade, but an architecture-preserving update that adds new AI functionality (see Figure 2 below
To prepare you for the New Year in 2026 (and your Christmas or other holiday shopping), I wanted to ensure that Lock Free Reservations in 26ai still allow more than one transaction to "lock" the same data; ok, without truly locking the data, but reserving part of it. Consider two people, both buying the exact same item, where you need to adjust the inventory amount (reserving some of it) so that you don't run out of the item. Well, if you have plenty in stock (let's say 40), and each person only wants one or even ten, you no longer need to lock the row, but you do need to RESERVE some of what's in stock just in case both people have the item in their cart.
Figure 2: Oracle AI Database 26ai accelerates AI & LLMs to do AI App Dev
Now let's look at an example to show how conventional locking differs from lock-free reservations. In the following example, we want to purchase an item while maintaining a certain balance.
Conventional Locking (Long-held Locks) example to purchase $25 item while maintaining a $50 balance:
Lock-Free Reservation (Short-held Locks) to purchase $25 item while maintaining a $50 balance. The balance update reserves $25 without locking the record.
CREATE Table Account ( ID NUMBER PRIMARY KEY, Name VARCHAR2(10), Balance NUMBER
RESERVABLE CONSTRAINT minimum_balance CHECK (Balance >= 50));
BEGIN
-- Reserve 25 from account balance
UPDATE Account SET Balance = Balance - 25
WHERE ID = 12345;
-- If reservation succeeds, perform item purchase
PurchaseItem();
-- commit finalizes the balance update
COMMIT;
-- This finally gets the account row lock
EXCEPTION WHEN Check_Constraint_Violated
-- This indicates that the reservation failed
THEN ROLLBACK;
END;
In the above script, we have an Exception. Below, I show the error in SQL*Plus. In SQL*PLUS, if you violate a check constraint, you receive the following:
ORA-02290: check constraint (ADMIN.MINIMUM_BALANCE) violated https://docs.oracle.com/error-help/db/ora-02290/ Error at Line: 7 Column: 0
If you go to the error link provided, it takes you to the Oracle Help Center for 26ai.
A saga encapsulates a long-running business transaction that is composed of several independent microservices. Consider trip booking services. You may have flights, hotels, and car bookings that all need to succeed to ensure you don't have to change them all. Well, if you hold the lock for each while completing the others, you may be out of business quickly. Using a saga will help you do this using lock-free reservations (without locking out all of the other consumers waiting for your transactions to complete).
Lock-free reservations provide in-database infrastructure for transactions operating on reservable columns to:
In this magical tip, we saw how to reduce locking issues (most customers will only wait 0.5 to 5 seconds before leaving a transaction behind). This feature will help developers develop quicker transactions, DBAs from having to kill transactions, management from upgrading hardware, and most of all, customers will be happy just in time for Christmas and other holiday shopping!
Lock-free reservations in Oracle 26ai make it easier than ever to handle high-demand workloads while keeping transactions fast, concurrent, and reliable, especially during peak shopping seasons. Combined with the power of the Autonomous AI Lakehouse, these features set you up for smoother operations and smarter applications heading into the new year.
Happy Holidays! 🎄
Join OraPub, Viscosity’s training hub for Oracle professionals, packed with expert-led courses and exclusive paid member benefits.
Check out Viscosity’s event page for upcoming virtual and on-site training opportunities.