CDC Input

  • Last update: April 24, 2025
  • icon

    Note:


    The Real-Time Task function in the Data Development module is currently in the internal testing stage. To try it or obtain detailed information, you can send an email to international@fanruan.com or click at https://help.fanruan.com/finedatalink-en/

    Overview

    Version

    FineDataLink VersionFunctional Change
    4.1.11.4/
    4.2.1.1The XStream read mode was not supported when you selected an Oracle database in the CDC Input operator.

    Application Scenario

    You may need to read data from databases in real time and output it to specified databases in real time after processing for reporting and real-time dashboard production and display. 

    Function Description

    The CDC Input operator in FineDataLink's Real-Time Task enables real-time data reading. 

    Supported Data Source

    Supported data sources include Db2, MySQL, Oracle, PostgreSQL, and SQL Server. Enable database logging before using these data sources as input sources. For details, see Overview of Database Environment Preparation

    Function Description

    Configuration ItemDescription
    Data SourceYou can select a data connection of the corresponding database and click Data Source Permission Detection to check if database logging is enabled.
    Source TableYou can configure the data source and the source table.
    Read Mode

    Supported read modes are database-dependent. 

    • For Oracle databases, the read mode is LogMiner.

    Synchronization Type

    You can configure initial offsets for tasks to meet different scenario requirements.

    • Full + Incremental Synchronization: When the task runs for the first time, all existing data in the database table will be synchronized and incremental changes will be continuously synchronized from the database. When the task restarts, the synchronization will resume from the last recorded checkpoint. If the checkpoint status is lost, the synchronization logic used during the first task start will work. 

    • Incremental Synchronization Only: You can set Incremental Sync Start Point to Task Startup Time or Custom Time.

    1. If you select Custom Time, you need to select the date and time using the date-time picker. 

    2. Task Startup Time: When the task runs for the first time, incremental changes from the task startup time will be synchronized. When the task restarts, the synchronization will resume from the last recorded checkpoint. 

    3. Custom Time: When the task runs for the first time, the incremental synchronization starts from the specified start point. When the task restarts, the synchronization will resume from the last recorded checkpoint. 

    4. If the checkpoint status is lost, the synchronization logic used during the first task start will work. 

    Procedure

    Take processing data fetched from a MySQL database in real time and outputting results to an Oracle database in real time as an example.

    CDC Input Configuration

    Log into FineDataLink, choose Data Development > Real-Time Task, and create a real-time task, as shown in the following figure. 

    icon

    Note:


    Ensure that logging has been enabled for the source database. For details, see Overview of Database Environment Preparation

    Drag a CDC Input operator onto the task editing page, and set Data Source, Source Table, Read Mode, and Synchronization Type, as shown in the following figure. 

    icon

    Note:


    You need to create a required data connection first. For details, see Data Source Creation and Management

    Click Data Preview to view the fetched data, as shown in the following figure.

    Data Processing

    Process the fetched data. For example, use a Data Filtering operator to obtain data whose value of owner_region is North China or East China, as shown in the following figure. 

    The result data is shown in the following figure.

    Data Output Configuration

    Use a DB Table Output operator to output data after real-time processing to an Oracle database, as shown in the following figure. 

    icon

    Note:


    You need to set a primary key for the target table.

    Task Start and Management

    Click Start to start the real-time task, as shown in the following figure.

    Effect Display

    The result of the first synchronization is displayed in Statistics, as shown in the following figure.

    If a data record is added to the source database, the input row count will increase by one, as shown in the following figure.

    附件列表


    主题: Data Development - Real-Time Task
    Previous
    Next
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy