IBM db2 Data Source
Your administrator must create a Data Source for this data store for you to use. After your administrator has created the Data Source, you can work with it in your project as usual.Direct connection
Connect directly to IBM db2 from Domino. You must have network connectivity between IBM db2 and your Domino deployment.Python and ibm_DB2
Domino recommends the ibm_DB2 package for interacting with DB2 databases from Python.Environment setup
Use the following Dockerfile instruction to add ibm_db to your environment. This instruction assumes you already have pip installed.Credential setup
Set the following Domino environment variables to store secure information about your DB2 connection.-
db_username -
db_password
Usage
See Python support for IBM Db2 for LUW, IBM Informix and IBM Db2 for z/OS for detailed information about how to use the package. The following is an example for connecting to DB2 with ibm_db where:-
You have set up the environment variables with the
db_usernameanddb_password. -
You’ve replaced
my.host.namewith the host name for your machine.
R and ibmdbR
Domino recommends the imbdbR library for interacting with DB2 databases from R.Environment setup
Use the following Dockerfile instruction to add ibmdbR to your environment.Next steps
- After connecting to your Data Source, learn how to Use Data Sources.
- Share this Data Source with your collaborators.