本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
SVV_INTEGRATION
SVV_INTEGRATION 會顯示整合組態的詳細資訊。
只有超級使用者才能看到 SVV_INTEGRATION。如需詳細資訊,請參閱 系統資料表和檢視中資料的可見性。
如需零 ETL 整合的相關資訊,請參閱使用零 ETL 整合。
資料表欄
欄名稱 | 資料類型 | 描述 |
---|---|---|
integration_id | character(128) | 與整合關聯的識別碼。 |
target_database | character(128) | Amazon Redshift 中接收整合資料的資料庫。 |
source | character(128) | 整合的來源資料。可能的類型包括 MySQL 和 PostgreSQL 。 |
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)。它被定義為從集成創建目標數據庫的時間。 |
範例查詢
下列 SQL 指令會顯示目前定義的整合。
select * from svv_integration;
integration_id | target_database | source | state | current_lag | last_replicated_checkpoint | total_tables_replicated | total_tables_failed | creation_time ---------------------------------------+-----------------+--------+-----------------+-------------+-------------------------------------+-------------------------+---------------------+--------------------------- 99108e72-1cfd-414f-8cc0-0216acefac77 | perfdb | MySQL | CdcRefreshState | 56606106 | {"txn_seq":9834,"txn_id":126597515} | 152 | 0 | 2023-09-19 21:05:27.520299