Oracle Exadata Smart Scan is one of the most important performance features of the Exadata Database Machine. It pushes parts of SQL processing—mainly predicate filtering and column projection—down to the Exadata storage cells. Instead of sending every block from storage to the database tier, the storage cells scan the data, apply eligible WHERE conditions, return only the required columns and qualifying rows, and dramatically reduce database-server CPU and interconnect traffic.
However, Smart Scan is not always possible. Some Oracle features require special row reconstruction, ordering guarantees, undo processing, decryption policy, or storage formats that the storage cells cannot process independently. This article explains the main Smart Scan preventors, why each feature is useful, and how it affects Exadata performance.
1. Clustered Tables
What is a clustered table?
A cluster is an Oracle schema object that physically stores rows from one or more tables together based on a shared cluster key. A clustered table is a table created inside that cluster.
CREATE CLUSTER order_cluster (
order_id NUMBER
) SIZE 1024;
CREATE TABLE orders (
order_id NUMBER PRIMARY KEY,
customer_id NUMBER,
order_date DATE
)
CLUSTER order_cluster (order_id);
CREATE TABLE order_items (
order_id NUMBER,
line_no NUMBER,
product_id NUMBER,
quantity NUMBER
)
CLUSTER order_cluster (order_id);
For example, the ORDERS row for order_id = 500 and all related ORDER_ITEMS rows can be stored physically close together.
Why use it?
Clusters are useful for stable master-detail relationships, such as orders and order lines, where the tables are frequently joined by the same key:
SELECT o.order_id, o.order_date, i.line_no, i.product_id
FROM orders o
JOIN order_items i
USING (order_id)
WHERE o.order_id = 500;
Benefits
- Reduces disk I/O for parent-child joins.
- Improves join response time because related rows are physically co-located.
- Useful for predictable key-driven access patterns.
Why Smart Scan is prevented
A single Oracle block can contain rows from both ORDERS and ORDER_ITEMS. The Exadata storage cell cannot independently scan only one logical table because its rows are physically mixed with rows from another table. The database must reconstruct the required rows, so Smart Scan is disabled.
2. Index-Organized Tables (IOT)
What is an IOT?
An index-organized table stores the entire table row inside a B-tree index organized by the primary key. Unlike a conventional heap table, an IOT does not maintain separate table and index structures.
CREATE TABLE countries (
country_id VARCHAR2(2) PRIMARY KEY,
country_name VARCHAR2(60),
currency_code VARCHAR2(3),
region VARCHAR2(30)
)
ORGANIZATION INDEX;
Why use it?
IOTs are ideal for narrow lookup tables accessed mainly by primary key:
SELECT country_name, currency_code
FROM countries
WHERE country_id = 'EG';
Benefits
- Faster primary-key access because the row is stored in the index.
- Less storage for small, narrow tables.
- Suitable for code tables, configuration tables, queues, and reference data.
- Can use an
OVERFLOWsegment for larger rows.
CREATE TABLE product_catalog (
product_id NUMBER PRIMARY KEY,
product_name VARCHAR2(100),
description VARCHAR2(4000)
)
ORGANIZATION INDEX
INCLUDING product_name
PCTTHRESHOLD 20
OVERFLOW TABLESPACE users;
Why Smart Scan is prevented
Traditional Smart Scan is designed around heap-table segment scans. Because an IOT stores rows in a B-tree structure, older Exadata releases cannot offload IOT scans. Exadata System Software 24.1.0, together with Oracle Database 23ai, introduces Smart Scan support for IOTs.
3. Fast Full Scan on a Compressed Index
What is a compressed index?
Oracle index key compression, also called prefix compression, removes repeated values from the leading columns of a composite index.
CREATE INDEX ix_sales_cust_prod
ON sales (customer_id, product_id)
COMPRESS 1;
If many rows share the same customer_id, Oracle stores that value once as a prefix and shares it across the suffix entries.
Why use it?
Use compressed indexes when the leading index columns contain many repeated values, such as customer_id, product_id, status, or country_code.
Benefits
- Smaller index size.
- More index entries per leaf block.
- Better buffer-cache efficiency.
- Potentially fewer logical I/O operations.
Why Smart Scan is prevented
The restriction applies when the optimizer performs a fast full scan on a compressed index. The storage cell would need to reconstruct complete index entries from compressed prefix and suffix data, which cannot be offloaded.
4. Fast Full Scan on a Reverse-Key Index
What is a reverse-key index?
A reverse-key index reverses the bytes of the index key before storing them.
CREATE INDEX ix_orders_id_rev
ON orders (order_id)
REVERSE;
Why use it?
Reverse-key indexes are commonly used for tables populated from sequences, such as order IDs, invoice IDs, or transaction IDs. In high-concurrency systems, especially Oracle RAC, sequential inserts can cause contention on the rightmost index leaf block.
Benefits
- Distributes inserts across index leaf blocks.
- Reduces hot-block contention.
- Improves insert scalability for sequence-generated keys.
Trade-off
Reverse-key indexes are poor for range scans:
SELECT *
FROM orders
WHERE order_id BETWEEN 1000 AND 2000;
Because logically adjacent values are physically scattered, this type of query may become inefficient.
Why Smart Scan is prevented
If the optimizer chooses a fast full scan of a reverse-key index, Exadata cannot offload that scan.
5. Row-Level Dependency Tracking
What is row-level dependency tracking?
ROWDEPENDENCIES enables Oracle to maintain an SCN, or System Change Number, at the row level instead of only at the block level.
CREATE TABLE payment_events (
event_id NUMBER PRIMARY KEY,
account_id NUMBER,
amount NUMBER,
event_time TIMESTAMP
)
ROWDEPENDENCIES;
You can view the row SCN using ORA_ROWSCN:
SELECT event_id, amount, ORA_ROWSCN
FROM payment_events
WHERE account_id = 9001;
Why use it?
ROWDEPENDENCIES is mainly used in replication, advanced queueing, and change-propagation environments where finer-grained change detection improves scalability.
Benefits
- More precise
ORA_ROWSCNinformation. - Better scalability for certain replication and propagation designs.
- Allows Oracle to distinguish changes to individual rows within the same block.
Cost
It adds approximately six bytes per row and prevents Smart Scan on the table.
Why Smart Scan is prevented
Smart Scan filters and projects rows inside the storage cells. Row-level SCN metadata and its consistency semantics require database-tier processing, so tables created with ROWDEPENDENCIES are not Smart Scan eligible.
6. Optimizer Requires ROWID Order
What is ROWID?
A ROWID is Oracle’s physical locator for a row. It identifies the data object, data file, block, and row slot.
SELECT ROWID, employee_id, salary
FROM employees
WHERE department_id = 50;
Why use it?
ROWID provides the fastest direct physical path to a row:
SELECT *
FROM employees
WHERE ROWID = 'AAAR3dAAEAAAACXAAA';
Benefits
- Direct and precise row access.
- Used internally by Oracle for row access, recovery, flashback, and maintenance operations.
- Useful for troubleshooting and specialized application designs.
Why Smart Scan is prevented
Smart Scan runs in parallel across storage cells. Each cell can return qualifying rows in its own stream and order. If the optimizer requires rows to be returned in global ROWID order, the database must control the row-production sequence, so Smart Scan cannot be used.
7. CREATE INDEX ... NOSORT
What is NOSORT?
NOSORT tells Oracle to create an index without sorting the source rows because the data is already sorted in the required index-key order.
CREATE INDEX ix_emp_name
ON employees (last_name)
NOSORT;
Why use it?
This is useful after loading a large table where the data was already sorted on the index key.
CREATE TABLE emp_loaded (
employee_id NUMBER,
last_name VARCHAR2(100)
);
-- Assume EMP_LOADED was loaded already sorted by LAST_NAME.
CREATE INDEX ix_emp_loaded_name
ON emp_loaded (last_name)
NOSORT;
Benefits
- Avoids the sort phase during index creation.
- Can reduce temporary-tablespace usage and CPU consumption.
- Useful for large one-time data loads.
Why Smart Scan is prevented
NOSORT depends on rows arriving in a specific order. Smart Scan returns filtered rows from multiple storage-cell streams and cannot guarantee the ordering required to build the index without sorting.
8. LOB or LONG Columns
What are LOBs and LONGs?
Oracle LOB data types store large objects:
CLOB: large character data.NCLOB: large Unicode character data.BLOB: large binary data, such as images, PDFs, or audio.LONGandLONG RAW: legacy types for large text and binary data.
CREATE TABLE documents (
document_id NUMBER PRIMARY KEY,
title VARCHAR2(200),
document_body CLOB,
document_file BLOB
);
Why use them?
LOBs are designed for data too large or structurally unsuitable for ordinary VARCHAR2 or RAW columns.
INSERT INTO documents (document_id, title, document_body)
VALUES (
1,
'Contract',
TO_CLOB('This agreement covers database migration services...')
);
SELECT DBMS_LOB.SUBSTR(document_body, 200, 1)
FROM documents
WHERE document_id = 1;
Benefits
- Store very large text and binary objects.
SECUREFILELOBs support compression, deduplication, encryption, and improved space management.- LOBs support random access through
DBMS_LOB.
Why Smart Scan is prevented
The restriction applies when a LOB or LONG column is selected or queried. LOB data may be stored out-of-line and accessed through LOB locators, so the storage cells cannot return or filter it as part of a normal Smart Scan projection.
-- LOB column selected: Smart Scan prevented
SELECT document_id, document_body
FROM documents;
-- Scalar columns only: Smart Scan may still be possible
SELECT document_id, title
FROM documents
WHERE title LIKE 'Contract%';
9. SELECT ... VERSIONS Flashback Query
What is a Flashback Version Query?
A Flashback Version Query returns all versions of rows that existed during a specified SCN or timestamp interval.
SELECT employee_id,
salary,
versions_startscn,
versions_endscn,
versions_operation,
versions_xid
FROM employees
VERSIONS BETWEEN TIMESTAMP
SYSTIMESTAMP - INTERVAL '1' DAY
AND SYSTIMESTAMP
WHERE employee_id = 101;
Why use it?
Use it to investigate historical changes, identify the transaction that modified a row, or recover the value of a row before an incorrect update.
Benefits
- Powerful forensic and troubleshooting tool.
- Can expose row-version history without restoring a backup.
- Provides metadata such as
VERSIONS_STARTSCN,VERSIONS_ENDSCN,VERSIONS_OPERATION, andVERSIONS_XID.
Why Smart Scan is prevented
A normal Smart Scan reads current blocks and returns current rows. A VERSIONS query must reconstruct historical row versions from undo data, order them by transaction and SCN, and return multiple versions of the same logical row. That reconstruction cannot be pushed to the storage cells.
10. More Than 255 Columns Referenced
What does this restriction mean?
For uncompressed heap tables and tables using Basic or OLTP compression, Smart Scan cannot project more than 255 columns in a single query.
SELECT col_1, col_2, ..., col_300
FROM wide_event_table
WHERE event_type = 'LOGIN_FAILURE';
Why use wide tables?
Wide tables are common in IoT, telemetry, event logging, machine-learning feature stores, and staging tables loaded from JSON, XML, or third-party systems.
Benefits
- One logical record can contain many attributes.
- Simplifies ETL for wide source records.
- Avoids excessive vertical partitioning for some workloads.
Why Smart Scan is prevented
The storage-cell Smart Scan protocol has a 255-column projection limit for non-EHCC heap tables. If the query references more than 255 columns, the storage cell cannot return the full projection.
How to mitigate it
Project only the columns actually required:
SELECT event_id,
event_time,
source_ip,
user_name,
failure_reason
FROM security_events
WHERE event_type = 'LOGIN_FAILURE';
Using Exadata Hybrid Columnar Compression, or EHCC, can also allow Smart Scan for queries referencing more than 255 columns.
11. Encrypted Tablespace With Cell-Based Decryption Disabled
What is tablespace encryption?
Transparent Data Encryption, or TDE, protects data at rest by encrypting tablespaces or individual columns.
CREATE TABLESPACE secure_data
DATAFILE '+DATA' SIZE 1G
ENCRYPTION USING 'AES256'
DEFAULT STORAGE (ENCRYPT);
Why use it?
Encryption protects sensitive data and helps meet security and compliance requirements.
Benefits
- Protects data at rest.
- Supports regulatory and security requirements.
- On Exadata, decryption and Smart Scan can be offloaded to storage cells, reducing database-server CPU usage.
What is cell-based decryption?
Exadata can receive the necessary key material and decrypt data inside the storage cells. This is controlled by:
SHOW PARAMETER cell_offload_decryption
ALTER SYSTEM SET cell_offload_decryption = TRUE;
Why Smart Scan is prevented
If CELL_OFFLOAD_DECRYPTION is set to FALSE, the storage cells cannot decrypt the data. Therefore, they cannot evaluate predicates or return selected plaintext columns, and Smart Scan is disabled.
Some security policies intentionally disable cell-based decryption to prevent key material from being sent to storage servers. That improves key isolation but sacrifices Smart Scan on encrypted data.
12. Predicate on a Virtual Column
What is a virtual column?
A virtual column is not physically stored. Oracle derives its value on demand from an expression based on other columns.
CREATE TABLE sales (
sale_id NUMBER PRIMARY KEY,
quantity NUMBER NOT NULL,
unit_price NUMBER(10,2) NOT NULL,
discount_pct NUMBER(5,2) DEFAULT 0,
net_amount AS (
quantity * unit_price * (1 - discount_pct / 100)
)
);
Why use it?
Virtual columns are useful for derived business values such as totals, commissions, tax amounts, or calculated statuses.
CREATE TABLE employees (
employee_id NUMBER PRIMARY KEY,
salary NUMBER(10,2),
commission_pct NUMBER(4,2),
total_comp AS (salary * (1 + NVL(commission_pct, 0)))
);
Benefits
- No storage is required for the derived value.
- Values always remain consistent with the source columns.
- Virtual columns can be indexed and analyzed.
- Reduces denormalization and application-side calculation errors.
Why Smart Scan is prevented
The issue occurs when the WHERE predicate uses the virtual column:
SELECT *
FROM sales
WHERE net_amount > 10000;
The storage cell sees only the physical columns—quantity, unit_price, and discount_pct—not the derived net_amount value. Unless the expression and its functions are offload-supported, the storage cell cannot evaluate the predicate.
A more Smart Scan-friendly rewrite is:
SELECT sale_id, quantity, unit_price, discount_pct
FROM sales
WHERE quantity * unit_price * (1 - discount_pct / 100) > 10000;
Even then, actual offload depends on whether every function and expression used in the predicate is supported by the Exadata storage cells.
Key Takeaway
Smart Scan delivers its biggest benefits when the storage cells can independently:
- Understand the segment format.
- Decrypt the data, if applicable.
- Evaluate the predicate.
- Project only the required columns.
- Return qualifying current rows.
Features such as clustered tables, IOTs on older releases, compressed or reverse-key index fast full scans, LOBs, Flashback Version Queries, row dependencies, ROWID ordering, wide non-EHCC projections, disabled cell decryption, and virtual-column predicates break one or more of those assumptions.
For Exadata analytical workloads, prefer heap tables, project only required columns, avoid unnecessary ROWDEPENDENCIES, use EHCC where appropriate, and ensure cell offload decryption is permitted for encrypted data.