

 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/)。

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

# 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.aws.amazon.com/redshift/latest/mgmt/zero-etl-using.html)。

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


| 欄名稱  | 資料類型  | Description  | 
| --- | --- | --- | 
| integration\_id | character(128) | 與整合關聯的識別碼。 | 
| target\_database | character(128) | Amazon Redshift 中接收整合資料的資料庫。 | 
| source | character(128) | 整合的來源資料。可能的類型包括 MySQL、PostgreSQL 和 S3\_EVENT\_NOTIFICATIONS。 | 
| state | character(128) | 整合的狀態。可能的值包括 PendingDbConnectState、SchemaDiscoveryState、CdcRefreshState 與 ErrorState。 | 
| current\_lag | bigint | 整合的來源與目的地之間的目前延遲時間 (毫秒)。 | 
| last\_replicated\_checkpoint | character(128) | 最後複寫的檢查點。 | 
| total\_tables\_replicated | integer | 目前處於已複寫狀態的資料表總數。 | 
| total\_tables\_failed | integer | 目前處於失敗狀態的資料表總數。 | 
| creation\_time  | timestamp | 整合建立的時間 (UTC)。其定義為從整合建立目標資料庫的時間。 | 
| refresh\_interval | integer | 將資料從零 ETL 來源重新整理至目標資料庫的大約時間間隔 (以秒為單位)。 | 
| source\_database | character(128) | 來源資料庫的名稱。 | 
| is\_history\_mode | boolean | 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
```