The SQL/Data Synchronization
Facility (SQL/DSF) assists DB2/VSE database administrators in managing distributed
database environments. In such environments, it must be ensured that the
distributed tables remain in a consistent state. The following SQL/DSF
facilities help database administrators in achieving this goal:
Synchronization | Propagates changes performed on DB2/VSE tables to other databases. |
Transfer | Transfers tables between different databases. |
Compare | Compares tables in different databases. |
Conditional transfer | Transfers a table to the target database, when a table compare results in mismatch. |
All SQL/DSF functions are performed from the VSE/ESA DB2/VSE environment. They operate:
on DB2/VSE databases | |
on database platforms that can connect to DB2/VSE using DRDA |
SQL/DSF functions can be invoked :
using VSE JCL | |
using the RULES of the SQL/DSF Synchronization Scheduler |
TABLE SYNCHRONIZATION
Synchronization User Exit
If requested, SQL/DSF will invoke a user exit before applying the source statements to the target database. The exit can modify the statement text or take any other appropriate action.
TABLE TRANSFER
The transfer function copies all rows of a designated table to the target table in another database. At the user's choice, transfer will replace or append to the target. The transfer is performed using VSE subtasks: no disk or tape storage is required during the operation.
TABLE COMPARE
The function compares all rows of a named table with the table in the designated target database and prints the contents of the mismatching rows.
CONDITIONAL TABLE TRANSFER
The conditional transfer function is a combination of the compare and the transfer functions. A conditional transfer compares both tables and initiates a transfer when the compare results in a mismatch.
THE SQL/DSF SCHEDULER
SQL/DSF provides the SQLDSFS Scheduler program to assist an installation in setting up a DataSync Server environment. Using the Scheduler, most synchronization tasks can be automated. The Scheduler processes table synchronizations and transfers automatically and chronologically, as requested in its RULES file.