Hello
CDC remote source has multiple JDBC connections to Db2 for zOS active.
One of the connections makes queries to the Db2 metadata catalog for purposes of keeping accurate note of fields of in-scope tables.
One connection per "log reader", this connects to the native code library deployed and linked to Db2 stored procedure which reads the Db2 log via IFI306 API.
Neither of these connections would create long term locks.
One item that can lock the database briefly is the connection that enables logging via Db2 "ALTER DATA CAPTURE CHANGES" when adding a table to the list of in-scope tables.
Another lock is during refresh, CDC will request a brief lock to obtain log position, this rarely leads to long lasting locks, but can in some circumstances wait for database activity to be more quiet due to the requirement of Db2 to enable logging.
Please advise if you already received assistance from IBM support via a ticket.
------------------------------
Glenn Steffler
------------------------------
Original Message:
Sent: Fri October 16, 2020 06:45 AM
From: Manas Dasgupta
Subject: CDC Remote Source Db2 z/os lock on database
So overnight, CDC Capture caused one of our batch utility jobs to abend because of contention. CDC would have had to held on to the lock for a while to have caused a utility timeout.
Under what circumstances does CDC take lock on a source database?
Thank you.
------------------------------
Manas Dasgupta
------------------------------
#DataReplication
#DataIntegration