# SQL_OUTLINE
SQL_OUTLINE系统表记录语句的计划信息，planmgmt_options设置了相应取值后，会为满足条件的语句生成sql_hash、plan_hash、outline_name并保存计划到此系统表。
![](https://support.huaweicloud.com/devg-911-dws/public_sys-resources/notice_3.0-zh-cn.png)
- 此系统表的schema是dbms_om。
- 禁止从外部修改或删除此表，否则可能引起plan management相关功能异常。
- 此系统表当前不支持自动清理，开启plan management自动提取并保存outline功能后，需关注此系统表空间使用情况，避免占用空间过大导致集群异常。
 
表1SQL_OUTLINE字段 
| 名称               | 类型                        | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|:---|:---|:---|
| outline_name      | text                     | outline的名字，值以outline_开头。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| sql_hash          | text                     | 生成该计划的实际sql的sql_hash，值以sql_开头。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| plan_hash        | text                   | 该计划的plan_hash，值以plan_开头。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| create_time        | timestamp with time zone | 该outline生成的时间。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| outline_version | numeric                 | outline的版本号。 说明： 不同版本号的outline支持的hint类型不同，具体如下： - 821.001：支持join顺序的hint、join方式的hint和scan方式的hint。  - 821.002：在821.001的基础上，增加了对stream方式的hint（不含AGG重分布分布键hint）。  - 910.001: 在821.002的基础上，增加了对skew方式的hint，支持join和agg两种场景下的skew hint提取。   |
| outline          | text                      | 通过计划自动生成的outline字符串。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| cost                                                                          | float8                                                                                | 生成outline的计划成本（cost）。该字段仅9.1.1.200及以上集群版本支持。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
   
