How do I upgrade CDC?

2024-12-13 06:57:09  Updated

This topic describes how to upgrade Change Data Capture (CDC) by using an RPM package of CDC without business interruptions.

Procedure

Download the package of a proper version based on your business needs. In this topic, the oceanbase-ce-cdc-4.2.0.0-100010032023083021.el7.x86_64.rpm package is used as an example.

  1. Download the RPM package of CDC from the official website and decompress it to local storage.

    rpm2cpio oceanbase-ce-cdc-4.2.0.0-100010032023083021.el7.x86_64.rpm|cpio -idmu --quiet
    
  2. Back up the CDC library in the container of OceanBase Migration Service (OMS) Community Edition.

    mv /home/ds/lib64/reader/ob-ce-4.x-reader/libobcdc.so.4.2.0.0 /home/ds/
    
  3. Copy the CDC library to the container of OMS Community Edition.

    sudo docker cp ./home/admin/oceanbase/lib64/libobcdc.so.4.2.0.0 <name of the container>:/home/ds/lib64/reader/ob-ce-4.x-reader/
    
  4. Modify the file owner in the container of OMS Community Edition.

    chown -R ds:ds /home/ds/lib64/reader/ob-ce-4.x-reader/libobcdc.so.4.2.0.0
    
  5. Re-create the link to the libobcdc.so.4 file in the container of OMS Community Edition.

    cd /home/ds/lib64/reader/ob-ce-4.x-reader/
    rm -f libobcdc.so.4
    ln -s libobcdc.so.4.2.0.0 libobcdc.so.4
    chown -R ds:ds libobcdc.so.4
    

Contact Us