Copying existing database directory information into the db2dsdriver configuration file

You can populate the db2dsdriver.cfg configuration file with existing database directory information.

Before you begin

You must have an existing Version 9.7 IBM® Data Server Client or IBM Data Server Runtime Client installed.

About this task

The db2dsdriver.cfg configuration file configures the behavior of CLI, ODBC, open source, or .NET applications by using keywords. The keywords are associated with the database alias name, and affect all the applications that access the database.

If you have an IBM Data Server Client or IBM Data Server Runtime Client, you can copy the existing database directory information into the db2dsdriver.cfg configuration file by using the db2dsdcfgfill command. Using this command, the configuration file is populated based on the contents of the local database directory, node directory, and Database Connection Services (DCS) directory of a specific database manager instance.

Restrictions

None.

Procedure

To copy existing database directory information from an IBM Data Server Client or IBM Data Server Runtime Client into the db2dsdriver.cfg configuration file:

Enter the db2dsdcfgfill command.
For example, db2dsdcfgfill -i instance_name -o output_path.
The parameter -o output-path indicates the path where the db2dsdriver.cfg configuration file is created. For information about the location of the db2dsdriver.cfg file, see the topic about that file.