

 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\_TABLE\_STATE
<a name="r_SVV_INTEGRATION_TABLE_STATE"></a>

SVV\_INTEGRATION\_TABLE\_STATE 會顯示資料表層級整合資訊的詳細資料。

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

如需詳細資訊，請參閱[零 ETL 整合](https://docs.aws.amazon.com/redshift/latest/mgmt/zero-etl-using.html)。

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


| 欄名稱  | 資料類型  | 說明  | 
| --- | --- | --- | 
| integration\_id | character(128) | 與整合關聯的識別碼。 | 
| target\_database | character(128) | Amazon Redshift 資料庫的名稱。 | 
| schema\_name | character(128) | Amazon Redshift 結構描述的名稱。 | 
| table\_name | character(128) |  資料表的名稱。 | 
| table\_state | character(128) | 資料表的狀態。可能值為 Synced、Failed、Deleted、ResyncRequired、ResyncInitiated 和 DroppedSource。DroppedSource 狀態表示已在來源捨棄歷史記錄模式資料表。 | 
| table\_last\_replicated\_checkpoint | character(128) | 目前同步的記錄座標。 | 
| reason | character(256) | 最後狀態轉換的原因。常見的原因可能是資料表中不支援的資料類型、資料表沒有主索引鍵。若要進一步了解如何疑難排解常見問題，請參閱[在 Amazon Redshift 中對零 ETL 整合進行疑難排解](https://docs.aws.amazon.com/redshift/latest/mgmt/zero-etl-using.troubleshooting.html)。 | 
| last\_updated\_timestamp | 沒有時區的時間戳記 | 資料表上次更新時的時間 (UTC)。 | 
| table\_rows | bigint | 資料表中的列總數。 | 
| table\_size | bigint | 資料表的大小，以 MB 為單位。 | 
| is\_history\_mode | boolean | TRUE 值表示歷史記錄模式已開啟。FALSE 表示歷史記錄模式已關閉。 | 

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

下列 SQL 命令會顯示整合日誌的欄。

```
select * from svv_integration_table_state;

          integration_id              | target_database | schema_name |     table_name    | table_state  |table_last_replicated_checkpoint | reason | last_updated_timestamp     |table_rows  | table_size | is_history_mode 
--------------------------------------+-----------------+-------------+-------------------+--------------+---------------------------------+--------+----------------------------+------------+------------+-----------------
 4798e675-8f9f-4686-b05f-92c538e19629 |  sample_test2   |    sample   | SampleTestChannel |    Synced    |   {"txn_seq":3,"txn_id":3122}   |        | 2023-05-12 12:40:30.656625 | 2          |   16       | f
```