

 Amazon Redshift 將不再支援從修補程式 198 開始建立新的 Python UDFs。現有 Python UDF 將繼續正常運作至 2026 年 6 月 30 日。如需詳細資訊，請參閱[部落格文章](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# SYS\_INTEGRATION\_ACTIVITY
<a name="r_SYS_INTEGRATION_ACTIVITY"></a>

SYS\_INTEGRATION\_ACTIVITY 會顯示已完成整合執行的相關資訊。

只有超級使用者才能看到 SYS\_INTEGRATION\_ACTIVITY。如需詳細資訊，請參閱[系統資料表和檢視中資料的可見性](cm_chap_system-tables.md#c_visibility-of-data)。

如需零 ETL 整合的相關資訊，請參閱 Amazon Redshift 管理指南中的[使用零 ETL 整合](https://docs.aws.amazon.com//redshift/latest/mgmt/zero-etl-using.html)。

## 資料表欄
<a name="r_SYS_INTEGRATION_ACTIVITY-table-columns"></a>


| 欄名稱  | 資料類型  | 說明  | 
| --- | --- | --- | 
| integration\_id | character(128) | 與整合關聯的識別碼。 | 
| target\_database | character(128) | Amazon Redshift 中接收整合資料的資料庫。 | 
| source | character(128) | 整合的來源資料。可能的類型包括 MySQL 和 PostgreSQL。 | 
| checkpoint\_name | character(128) | 檢查點複寫 binlog 座標的名稱。 | 
| checkpoint\_type | character(16) | 檢查點的類型。可能的值包括：snapshot、cdc。 | 
| checkpoint\_bytes | bigint | 此檢查點中的位元組數。 | 
| last\_commit\_timestamp | timestamp | 上次在此檢查點中遞交的時間戳記。 | 
| modified\_tables | integer | 檢查點中修改的資料表數目。 | 
| integration\_start\_time | time | 此檢查點的整合開始時間 (UTC)。 | 
| integration\_end\_time | time | 此檢查點的整合結束時間 (UTC)。 | 

## 範例查詢
<a name="r_SYS_INTEGRATION_ACTIVITY-sample-queries"></a>

下列 SQL 命令會顯示整合的記錄。

```
select * from sys_integration_activity;

          integration_id              | target_database | source |            checkpoint_name                  | checkpoint_type  | checkpoint_bytes | last_commit_timestamp   | modified_tables |   integration_start_time   |    integration_end_time
--------------------------------------+-----------------+--------+---------------------------------------------+------------------+------------------+-------------------------+-----------------+----------------------------+----------------------------
 76b15917-afae-4447-b7fd-08e2a5acce7b |   demo1         | MySQL  | checkpoints/checkpoint_3_241_3_510.json     |        cdc       |        762       | 2023-05-10 23:00:14.201 |         1       | 2023-05-10 23:00:45.054265 | 2023-05-10 23:00:46.339826
 76b15917-afae-4447-b7fd-08e2a5acce7b |   demo1         | MySQL  | checkpoints/checkpoint_3_16329_3_17839.json |        cdc       |       13488      | 2023-05-11 01:33:57.411 |         2       | 2023-05-11 02:19:09.440121 | 2023-05-11 02:19:16.090492
 76b15917-afae-4447-b7fd-08e2a5acce7b |   demo1         | MySQL  | checkpoints/checkpoint_3_5103_3_5532.json   |        cdc       |        1657      | 2023-05-10 23:13:14.205 |         2       | 2023-05-10 23:13:23.545487 | 2023-05-10 23:13:25.652144
```