top of page

Faster Reports Without a New Licence: Database In-Memory Base Level on Exadata in Oracle Database@Azure

OmerNarman
4 days ago
7 min read

Analytical reports and an OLTP application often share the same database. The reports scan millions of rows to sum a few columns, and even with Exadata Smart Scan they compete with order entry for I/O and CPU. A column format in memory would serve them far better, but the Database In-Memory option is an extra licence that many teams cannot justify for a handful of reports.


Since Release Update 19.8, Oracle Database 19c includes Database In-Memory Base Level: an In-Memory column store of up to 16 GB that can be used without licensing the option. For a set of reporting tables that fits in that space, it gives most of the benefit at no extra licence cost. This post enables Base Level on a RAC database on Exadata Database Service in Oracle Database@Azure and moves the busiest reporting tables into it.



The Use Case

The sales database on Exadata Database Service in Oracle Database@Azure serves order entry during the day and a set of dashboards in Power BI that refresh every 15 minutes. The dashboards read the current year of orders and order items and the product and customer dimensions, about 40 GB on disk. Their queries scan large parts of these tables at every refresh. The goal is faster dashboards and less load from them, without buying the Database In-Memory option.


Environment used in this runbook


  • Service: Exadata Database Service on Dedicated Infrastructure in Oracle Database@Azure

  • Database: Oracle Database 19c (19.24), container database SALESCDB with PDB SALESPDB, two-node RAC

  • Memory: SGA_TARGET of 160 GB per instance

  • Candidate tables: current-year partitions of ORDERS and ORDER_ITEMS, PRODUCTS and CUSTOMERS

  • Licence: Base Level needs no option licence up to 16 GB of In-Memory column store per instance and CDB; larger sizes and the full feature set require the Database In-Memory option



What Base Level Allows

  • Up to 16 GB per instance. INMEMORY_SIZE may not exceed 16 GB in the CDB, shared by all PDBs, and the same limit applies to every instance of a RAC database.

  • Set once in the root. INMEMORY_FORCE = BASE_LEVEL is set in the CDB root and is not dynamic, so it needs an instance restart.

  • Fixed compression. Objects are compressed with MEMCOMPRESS FOR QUERY LOW, whatever the table definition says.

  • Some features are off. Automatic In-Memory and CELLMEMORY on Exadata are not available with Base Level.

  • Queries do not change. The optimizer uses the column store transparently; reports need no rewriting.



Step 1: Check the Current Settings

Look at the In-Memory parameters in the CDB root. On a database that has never used the feature, the column store is off.


SQL

-- Connected to CDB$ROOT as SYSDBA

COLUMN name FORMAT A20

COLUMN value FORMAT A12

SELECT inst_id, name, value

FROM gv$parameter

WHERE name IN ('inmemory_size', 'inmemory_force')

ORDER BY inst_id, name;

Expected output

   INST_ID NAME                 VALUE
---------- -------------------- ------------
         1 inmemory_force       DEFAULT
         1 inmemory_size        0
         2 inmemory_force       DEFAULT
         2 inmemory_size        0

What to expect: INMEMORY_SIZE 0 and INMEMORY_FORCE DEFAULT on both instances: no column store exists. Before going further, check the feature usage statistics for any earlier use of the full option, because an In-Memory store larger than 16 GB used in the past has licensing consequences that Base Level does not change.



Step 2: Enable Base Level and Size the Column Store

Set INMEMORY_FORCE to BASE_LEVEL and INMEMORY_SIZE to 16 GB in the server parameter file, for all instances. Both take effect at the next instance start.


SQL

ALTER SYSTEM SET inmemory_force = 'BASE_LEVEL' SCOPE = SPFILE SID = '*';

ALTER SYSTEM SET inmemory_size = 16G SCOPE = SPFILE SID = '*';

Expected output

System altered.

System altered.

What this does: It prepares both instances to start with a 16 GB In-Memory area. The area is taken from the SGA, so check that SGA_TARGET leaves enough room for the buffer cache and shared pool afterwards; here 16 GB out of 160 GB is acceptable. Setting INMEMORY_SIZE above 16 GB with Base Level enabled is refused.



Step 3: Restart the Instances One at a Time

Restart the RAC instances in rolling fashion, so the database stays available. Services move to the surviving instance while each one restarts.


Shell

# On a database server, as the oracle user

srvctl stop instance -db SALESCDB -instance SALES1 -failover

srvctl start instance -db SALESCDB -instance SALES1

srvctl stop instance -db SALESCDB -instance SALES2 -failover

srvctl start instance -db SALESCDB -instance SALES2

srvctl status database -db SALESCDB

Expected output

Instance SALES1 is running on node exa-node1
Instance SALES2 is running on node exa-node2

What to expect: Both instances running again with the new settings. With services configured for failover, as on most Exadata Database Service systems, applications reconnect to the other instance during each restart. Schedule the restarts in a quiet period anyway, because each instance starts with a cold buffer cache.



Step 4: Confirm the In-Memory Area

Check that the In-Memory area exists on both instances and that Base Level is in force.


SQL

COLUMN name FORMAT A20

SELECT inst_id, name, ROUND(value/1024/1024/1024) AS gb

FROM gv$sga

WHERE name = 'In-Memory Area'

ORDER BY inst_id;

SELECT inst_id, value FROM gv$parameter WHERE name = 'inmemory_force' ORDER BY inst_id;

Expected output

   INST_ID NAME                         GB
---------- -------------------- ----------
         1 In-Memory Area               16
         2 In-Memory Area               16

   INST_ID VALUE
---------- ------------
         1 BASE_LEVEL
         2 BASE_LEVEL

What to expect: A 16 GB In-Memory area on each instance and BASE_LEVEL in force. The column store is empty until objects are marked INMEMORY.



Step 5: Choose the Tables That Fit

With 16 GB per instance and QUERY LOW compression, which typically shrinks order data two to four times, about 30 to 40 GB of table data fits across the two instances. Measure the candidates on disk before marking them.


SQL

-- Connected to SALESPDB as a DBA

COLUMN segment_name FORMAT A14

COLUMN partition_name FORMAT A14

SELECT segment_name, NVL(partition_name, '-') AS partition_name,

ROUND(bytes/1024/1024/1024, 1) AS gb

FROM dba_segments

WHERE owner = 'SALES'

AND (segment_name IN ('PRODUCTS', 'CUSTOMERS')

OR partition_name IN ('P_2026'))

ORDER BY gb DESC;

Expected output

SEGMENT_NAME   PARTITION_NAME         GB
-------------- -------------- ----------
ORDER_ITEMS    P_2026               24.8
ORDERS         P_2026                9.6
CUSTOMERS      -                     3.1
PRODUCTS       -                      .4

What to expect: About 38 GB on disk for the current-year partitions and the two dimension tables, which should fit into the two 16 GB areas once compressed. Older partitions stay on disk and are still served by Smart Scan; the dashboards rarely read them.


Tip: Start with the tables that the slowest queries actually scan, not with the largest tables. The SQL Monitor report or AWR for the dashboard queries shows which segments they read most.


Step 6: Mark the Objects INMEMORY

Mark the chosen partitions and tables for the column store with a high priority, so they are populated right away instead of waiting for the first scan.


SQL

ALTER TABLE sales.order_items MODIFY PARTITION p_2026 INMEMORY PRIORITY HIGH;

ALTER TABLE sales.orders MODIFY PARTITION p_2026 INMEMORY PRIORITY HIGH;

ALTER TABLE sales.customers INMEMORY PRIORITY HIGH;

ALTER TABLE sales.products INMEMORY PRIORITY HIGH;

Expected output

Table altered.

Table altered.

Table altered.

Table altered.

What this does: It tells the database to load these segments into the column store in the background. On RAC, the default distribution spreads each object across the In-Memory areas of both instances, so the combined 32 GB is used. DUPLICATE, which keeps a copy on every instance for fault tolerance, is possible on Exadata but halves the usable space, which is rarely a good trade with a 16 GB limit.



Step 7: Watch the Population

Population runs in the background and takes a few minutes. Follow its progress per instance and check that nothing is left out for lack of space.


SQL

COLUMN segment_name FORMAT A14

COLUMN partition_name FORMAT A10

COLUMN populate_status FORMAT A10

SELECT inst_id, segment_name, NVL(partition_name, '-') AS partition_name,

populate_status,

ROUND(bytes/1024/1024/1024, 1) AS disk_gb,

ROUND(inmemory_size/1024/1024/1024, 1) AS im_gb,

bytes_not_populated

FROM gv$im_segments

ORDER BY segment_name, inst_id;

Expected output

   INST_ID SEGMENT_NAME   PARTITION_ POPULATE_S    DISK_GB      IM_GB BYTES_NOT_POPULATED
---------- -------------- ---------- ---------- ---------- ---------- -------------------
         1 CUSTOMERS      -          COMPLETED         3.1         .7                   0
         2 CUSTOMERS      -          COMPLETED         3.1         .7                   0
         1 ORDERS         P_2026     COMPLETED         9.6        2.1                   0
         2 ORDERS         P_2026     COMPLETED         9.6        2.2                   0
         1 ORDER_ITEMS    P_2026     COMPLETED        24.8        5.4                   0
         2 ORDER_ITEMS    P_2026     COMPLETED        24.8        5.6                   0
         1 PRODUCTS       -          COMPLETED          .4         .1                   0
         2 PRODUCTS       -          COMPLETED          .4         .1                   0

What to expect: All segments COMPLETED on both instances and no bytes left unpopulated. Each row shows the part of the segment held on that instance; together, about 17 GB of column store hold 38 GB of table data. BYTES_NOT_POPULATED above zero would mean the area is full and the rest of the segment is still read from disk.



Step 8: Confirm That Reports Scan in Memory

Run a typical dashboard query and check its plan and the In-Memory scan statistics of the session.


SQL

SET AUTOTRACE TRACEONLY EXPLAIN

SELECT p.category, SUM(oi.quantity * oi.unit_price) AS revenue

FROM sales.order_items oi

JOIN sales.products p ON p.product_id = oi.product_id

WHERE oi.order_date >= DATE '2026-11-01'

GROUP BY p.category;

SET AUTOTRACE OFF

Expected output

------------------------------------------------------------------
| Id  | Operation                       | Name        | Pstart |
------------------------------------------------------------------
|   0 | SELECT STATEMENT                |             |        |
|   1 |  HASH GROUP BY                  |             |        |
|   2 |   HASH JOIN                     |             |        |
|   3 |    TABLE ACCESS INMEMORY FULL   | PRODUCTS    |        |
|   4 |    PARTITION RANGE SINGLE       |             |      6 |
|   5 |     TABLE ACCESS INMEMORY FULL  | ORDER_ITEMS |      6 |
------------------------------------------------------------------

What to expect: TABLE ACCESS INMEMORY FULL on both tables: the query reads the column store instead of the buffer cache or the storage cells. In this case the dashboard refresh dropped from about 14 seconds to under 2, and the I/O it caused on the Exadata cells disappeared from the AWR report.



Step 9: Keep an Eye on the Space

The current-year partitions grow every day. Check the usage of the In-Memory area regularly, so the store does not fill up silently and leave new data on disk.


SQL

COLUMN pool FORMAT A12

COLUMN populate_status FORMAT A10

SELECT inst_id, pool,

ROUND(alloc_bytes/1024/1024/1024, 1) AS alloc_gb,

ROUND(used_bytes/1024/1024/1024, 1) AS used_gb,

populate_status

FROM gv$inmemory_area

ORDER BY inst_id, pool;

Expected output

   INST_ID POOL           ALLOC_GB    USED_GB POPULATE_S
---------- ------------ ---------- ---------- ----------
         1 1MB POOL           12.8        8.6 DONE
         1 64KB POOL           3.0         .4 DONE
         2 1MB POOL           12.8        8.9 DONE
         2 64KB POOL           3.0         .4 DONE

What to expect: About 9 GB of the 12.8 GB data pool used on each instance, with room for the rest of the year. The 1 MB pool holds the column data and the 64 KB pool the metadata. When usage approaches the limit, take the oldest months out with ALTER TABLE ... NO INMEMORY on a partition basis, or move to monthly partitions so that only the recent months are kept in memory.



Summary

Database In-Memory Base Level gives a 16 GB column store per instance without the In-Memory option. Check the current settings, set INMEMORY_FORCE to BASE_LEVEL and INMEMORY_SIZE to 16 GB in the root, and restart the RAC instances one at a time. Confirm the In-Memory area, choose the tables and partitions the reports really scan, mark them INMEMORY with a high priority, and follow their population in GV$IM_SEGMENTS. Check the plans for TABLE ACCESS INMEMORY FULL, and watch the space in GV$INMEMORY_AREA as the data grows. On Exadata Database Service in Oracle Database@Azure, this moved the dashboard scans off the storage cells and made the refresh several times faster.

Recent Posts

See All

Comments


bottom of page