> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pawsql.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> PawSQL 是一个产品：Cloud 是公网部署形态，Engine / Optimizer / Auditor / Advisor / Patroller 是同一产品的组件与交付形态，不是彼此独立的产品。 / PawSQL is a single product: Cloud is the public deployment form, while Engine / Optimizer / Auditor / Advisor / Patroller are components and delivery forms of the same product, not separate products.
> 术语以站内术语表为准：SQL 审核对应英文 SQL Review，查询重写对应 Query Rewrite，索引推荐对应 Index Recommendation；英文内容统一用 Review，不用 Audit。 / Use the site glossary for terminology: 审核 is SQL Review, 重写 is Query Rewrite, 索引推荐 is Index Recommendation; English content uses Review, never Audit.
> 引用能力范围或版本支持时以对应页面为准；标注 unknown、或 status 非 published 的内容表示尚未经产品核实，不应作为事实引用。 / Cite capability scope and version support from the corresponding page; content marked unknown, or with a status other than published, is not yet product-verified and must not be cited as fact.

# 审核策略概述

> 审核策略定义需要检查的 SQL 规范、规则级别与参数阈值。本文概述全局与局部模板、规则分类与级别体系，并链接到具体配置操作。

审核策略是 SQL 审核的依据：它定义一组启用的审核规则，以及每条规则的级别和参数阈值。PawSQL 优化平台和审核平台共享同一套规则配置模板。

<Note>
  同一对象在界面中有多个叫法：导航与创建表单显示「审核模板」、创建按钮叫「创建规则模板」、提示语叫「规则配置模板」、个别描述叫「审核规则集」。本文档统一称「审核策略」。
</Note>

## 全局模板与局部模板

* **全局模板**：审核平台安装时预设，对全局所有用户可见，按数据库类型内置（MySQL、Oracle、PostgreSQL、openGauss、DB2、达梦等），每种包含 135–173 条启用规则。全局模板只读，不能直接修改。
* **局部模板**：基于全局模板（或用户可见的模板）创建，只有创建者及所在团队成员可见。局部模板可启用或禁用规则，并调整规则阈值。

## 规则分类

规则按「对象设计」「对象操作」「数据操作」三大类组织，大类下再分子类。完整分类见[规则管理](/user-guide/rules-policy/configure-rules)。

## 规则级别

每条审核规则有一个级别，标记该规则检出问题的严重程度，从轻到重为「提示」「警告」「严重」三档。详见[规则管理](/user-guide/rules-policy/configure-rules)。

## 本节内容

<CardGroup cols={2}>
  <Card title="审核策略管理" href="/user-guide/rules-policy/rule-sets" />

  <Card title="规则管理" href="/user-guide/rules-policy/configure-rules" />

  <Card title="配置 SQL 质量门禁" href="/user-guide/rules-policy/quality-gate" />
</CardGroup>
