Creating a data sets store connection
To use Db2 to store data from uploaded files and data sets, you need to create one or more Data sets store connections to the Db2 instances or schemas. These connections are used to write data into Db2 and query data from Db2.
After the connections are created, data from new uploaded files and data sets is stored in this database.
Before you begin
A copy of the IBM JCC JDBC driver file must exist in the Cognos® Analytics install_location\drivers directory of the server where the Content Manager service is deployed and the servers where dynamic query is deployed.
All Db2 requirements are met, and the Db2 environment is prepared by the Db2 administrator, as documented in the topic Storing data from uploaded files and data sets in Db2.
About this task
Use the following guidelines when creating the connection:
- The connection must have a sign-on.
Prompting a user for credentials at run-time, or using other authentication methods that require user input, are not supported.
- Multiple connections can be defined.
Each connection must reference a different Db2 schema in the same Db2 instance, or different Db2 instances. If two or more connections are defined for the same schema or database instance, an exception is thrown at execution time. Ambiguous connections are not supported. Apply Cognos Analytics security rules to ensure that Cognos Analytics users can access only one connection. If two or more connections are detected for a user, an ambiguous connection error occurs. For more information, see Managing multiple connections to the same data source.
- Apply Cognos Analytics security rules for each connection to restrict the run-time access to the connection for the user who uploads files or executes data sets.
- Optionally, use the ibmcognos.qualifier_list or IBM JCC
currentschema
name-value pairs to specify the Db2 schema name that will be used to qualify tables in DML and DDL. The value must correspond to an existing Db2 schema for which the Db2 user was granted access privileges.If the ibmcognos.qualifier_list property is not defined, Db2 will default the schema based on the Db2 user or the IBM JCC
currentschema
name-value pair. For more information, see Db2 documentation.
Procedure
Results
The Data sets store connection appears in .
The Data location property for any new uploaded file or data set shows the name of the Data sets store connection.
What to do next
To manage the connection, find it in the Data server connections
page, and click it. Then, click the connection context menu .

Use the available menu options to edit or delete the connection. For example, to specify security permissions for the connection, click Properties, and on the Permissions tab, add the users, groups, or roles that can use the connection, and grant the required access type for them.
Do not delete or disable the connection while data sets are in the database. Doing so would prevent queries, refresh, append, or deletion of data that was loaded into Db2. Delete the connection only if it is no longer required, for example, after the Db2 administrator removes the applicable schema in Db2.