Before you create a Db2 for LUW workspace
Installing the Db2 drivers
Before you can use the data connector, you must make the Db2 drivers available to Tonic Structural:
From https://www.nuget.org/packages/Net.IBM.Data.Db2, download the correct version of the
Net.IBM.Data.Db2driver for your operating system. The correct version as of August 12, 2024 is 8.0.0.200.Create a directory:
<my-directory>From the driver zip file:
Extract
lib/net8.0/IBM.Data.Db2.dllinto<my-directory>/IBM.Data.Db2.dll.Extract
buildTransitive/clidriver/into<my-directory>/clidriver/.
Mount the created directory into the Structural Web Server and Structural Worker. You must map the directory you created to
/data/db2on the containers.For Docker, you place the driver files on the host machine, then share it to the containers as a volume. You must map the drivers to
/data/db2on the containers.To map the drivers, add the following entry into the Docker Compose file:
volumes: ... - /my-host-path:/data/db2For Kubernetes, you can use any volume type that is allowed within your environment. It must provide at least
ReadOnlyManyaccess. You must map the drivers to/data/db2on the containers. In your web server and worker deployment YAML files, the entry should be similar to the following:volumeMounts: - name: <my-volume-name> mountPath: /data/db2
Required permissions (source database user)
The source database user must have the following permissions:
On the database,
DBADMAUTHandDATAACCESSAUTHIf user is not authorized with
DBADMAUTHorDATAACCESSAUTH, then Structural at minimum requires:SELECTprivilege on all tablesSELECTprivilege on the following system catalog tables:SYSCAT.TABLESSYSCAT.COLUMNSSYSCAT.KEYCOLUSESYSCAT.INDEXCOLUSESYSCAT.INDEXESSYSCAT.TABCONSTSYSCAT.TABLESPACESSYSCAT.SCHEMATA
Required permissions (destination database user)
The destination database user must have the following permissions:
On the database,
DBADMAUTHandDATAACCESSAUTHIf user is not authorized with
DBADMAUTHorDATAACCESSAUTH, then Structural at minimum requires:SYSADMorSYSCTRLauthoritySELECT,INSERT,ALTER,DELETE,INDEX,REFERENCESprivilege on all tablesSELECTprivilege on the following system catalog tables:SYSCAT.TABLESSYSCAT.COLUMNSSYSCAT.KEYCOLUSESYSCAT.INDEXCOLUSESYSCAT.INDEXESSYSCAT.TABCONSTSYSCAT.TABLESPACESSYSCAT.SCHEMATA
EXECUTEprivilege on the following routines:SYS_PROC.DB2LK_GENERATE_DDLAUTH_LIST_AUTHORITIES_FOR_AUTHID
Creating the destination databases
For Db2 for LUW, Structural does not create the destination database during data generation.
The destination database with the full schema must already be in place.
When you run the data generation, Structural removes the data from the database and populates it with the transformed source data.
Last updated
Was this helpful?

