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.
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 --quietBack 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/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/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.0Re-create the link to the
libobcdc.so.4file 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