

 从补丁 198 开始，Amazon Redshift 将不再支持创建新的 Python UDF。现有的 Python UDF 将继续正常运行至 2026 年 6 月 30 日。有关更多信息，请参阅[博客文章](https://www.amazonaws.cn/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

# SVV\_INTEGRATION
<a name="r_SVV_INTEGRATION"></a>

SVV\_INTEGRATION 显示有关集成配置的详细信息。

SVV\_INTEGRATION 仅对超级用户可见。有关更多信息，请参阅 [系统表和视图中的数据可见性](cm_chap_system-tables.md#c_visibility-of-data)。

有关零 ETL 集成的信息，请参阅[零 ETL 集成](https://docs.amazonaws.cn/redshift/latest/mgmt/zero-etl-using.html)。

## 表列
<a name="r_SVV_INTEGRATION-table-columns"></a>


| 列名称  | 数据类型  | 说明  | 
| --- | --- | --- | 
| integration\_id | character(128) | 与集成关联的标识符。 | 
| target\_database | character(128) | Amazon Redshift 中接收集成数据的数据库。 | 
| source | character(128) | 集成的源数据。可能的类型包括 MySQL、PostgreSQL 和 S3\_EVENT\_NOTIFICATIONS。 | 
| 状态 | character(128) | 集成的状态。可能的值包括 PendingDbConnectState、SchemaDiscoveryState、CdcRefreshState 和 ErrorState。 | 
| current\_lag | bigint | 集成的源和目标之间的当前延迟时间（毫秒）。 | 
| last\_replicated\_checkpoint | character(128) | 复制的最后一个检查点。 | 
| total\_tables\_replicated | 整数 | 当前处于已复制状态的表总数。 | 
| total\_tables\_failed | 整数 | 当前处于失败状态的表总数。 | 
| creation\_time | timestamp | 创建集成的时间（UTC）。它定义为通过集成创建目标数据库的时间。 | 
| refresh\_interval | 整数 | 从零 ETL 源向目标数据库刷新数据的大致时间间隔（秒）。 | 
| source\_database | character(128) | 源数据库的名称。 | 
| is\_history\_mode | 布尔值 | TRUE 值表示历史记录模式已启用。FALSE 表示历史记录模式已禁用。 | 

## 示例查询
<a name="r_SVV_INTEGRATION-sample-queries"></a>

以下 SQL 命令显示当前定义的集成。

```
select * from svv_integration;

           integration_id              | target_database | source |      state      | current_lag |      last_replicated_checkpoint     | total_tables_replicated | total_tables_failed |       creation_time       |  refresh_interval  | source_database | is_history_mode
---------------------------------------+-----------------+--------+-----------------+-------------+-------------------------------------+-------------------------+---------------------+---------------------------+--------------------+-----------------+-----------------
  99108e72-1cfd-414f-8cc0-0216acefac77 |     perfdb      |  MySQL | CdcRefreshState |   56606106  | {"txn_seq":9834,"txn_id":126597515} |            152          |           0         | 2023-09-19 21:05:27.520299|      720           + mysourceetl     | f
```