SYS_INTEGRATION_ACTIVITY - Amazon Redshift

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

SYS_INTEGRATION_ACTIVITY

SYS_INTEGRATION_ACTIVITY 會顯示已完成整合執行的相關資訊。

只有超級使用者才能看到 SYS_INTEGRATION_ACTIVITY。如需詳細資訊,請參閱 系統資料表和檢視中資料的可見性

如需零 ETL 整合的相關資訊,請參閱 Amazon Redshift 管理指南中的使用零 ETL 整合

資料表欄

欄名稱 資料類型 描述
integration_id character(128) 與整合關聯的識別碼。
target_database character(128) Amazon Redshift 中接收整合資料的資料庫。
source character(128) 整合的來源資料。可能的類型包括 MySQLPostgreSQL
checkpoint_name character(128) 檢查點複寫 binlog 座標的名稱。
checkpoint_type character(16) 檢查點的類型。可能的值包括:snapshotcdc
checkpoint_bytes bigint 此檢查點中的位元組數。
last_commit_timestamp timestamp 上次在此檢查點中遞交的時間戳記。
modified_tables integer 檢查點中修改的資料表數目。
integration_start_time time 此檢查點的整合開始時間 (UTC)。
integration_end_time time 此檢查點的整合結束時間 (UTC)。

範例查詢

下列 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