Oracle 参数 STAR_TRANSFORMATION_ENABLED 官方解释,作用,如何配置最优化建议
本站中文解释
STAR_TRANSFORMATION_ENABLED:这是Oracle Database 11g中的一个参数,用来控制是否开启外部表的星型变换(Star Transformation)特性,它允许Oracle将多表查询与外接表合并,以极大地提高外部表查询的执行效率。
正确设置:设置STAR_TRANSFORMATION_ENABLED参数的正确方式是使用ALTER SYSTEM命令把参数设置为TRUE,例如:
ALTER SYSTEM SET STAR_TRANSFORMATION_ENABLED = TRUE;
这样,当特定的多表查询与外接表中的行超过50%时,Oracle会自动使用星型变换特性。
官方英文解释
STAR_TRANSFORMATION_ENABLED
determines whether a cost-based query transformation will be applied to star queries.
Property | Description |
---|---|
Parameter type |
String |
Syntax |
|
Default value |
|
Modifiable |
|
Modifiable in a PDB |
Yes |
Basic |
Yes |
Values
-
FALSE
The transformation will not be applied.
-
TRUE
The optimizer will consider performing a cost-based query transformation on the star query.
-
TEMP_DISABLE
The optimizer will consider performing a cost-based query transformation on the star query but will not use temporary tables in the star transformation.
See Also:
-
Oracle Database SQL Tuning
Guide for information on enabling star queries