- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2012-3-6 22:56:10
cell_offload_processing enable SQL processing offload to cells
The Smart Scan feature of the Exadata Storage Server Software will offload
processing of certain SQL operations to the Exadata Storage Servers, thereby
allowing the data to be processed closer to where it resides. SQL offload
processing is enabled by default at the database instance level by the
initialization parameter CELL_OFFLOAD_PROCESSING.
When CELL_OFFLOAD_PROCESSING is TRUE, the database will
attempt to offload the SQL to be processed by the Exadata Storage Servers.
The decision to offload the SQL is a runtime decision and depends on
several factors, which are detailed in the Exadata Storage Server Software
Users Guide. When CELL_OFFLOAD_PROCESSING is set to FALSE, the
database processes the SQL in the database servers and the Exadata Storage
Servers will merely serve regular blocks to the database nodes.
CELL_OFFLOAD_PROCESSING can be set at the system and the session
level by using the ALTER SYSTEM or the ALTER SESSION commands. This
command enables SQL offload processing for the session executing the
command:
SQL> ALTER SESSION SET CELL_OFFLOAD_PROCESSING = TRUE;
You can also enable (or disable) the CELL_OFFLOAD_PROCESSING
for a SQL by using the OPT_PARAM hint. The SQL-level setting overrides
the session-level settings, which in turn overrides the system-level settings.
This example will enable offload processing only for the SQL using the
OPT_PARAM hint:
SQL> SELECT /*+ OPT_PARAM('cell_offload_processing', 'true') */ COUNT(*)
FROM SALES;
Whether the SQL query is offloaded to the Exadata Storage Server for
processing or not, you can always look at the execution plan of the SQL
with the EXPLAIN PLAN command and determine the predicate or portion
of the SQL that will be a candidate for offload processing. The EXPLAIN
PLAN command has been enhanced to display the offloaded predicates in
the storage section of its output. This feature of EXPLAIN PLAN exists even
when you do not have the Exadata Storage Servers as the storage grid
serving the database. |
|