Setting up connections to the DB2 for LUW databases and DB2 for z/OS subsystems that Toad will manage requires two steps.
Step 1. Configure DB2 client connections - If you use a DB2 client each of the databases or subsystems must be cataloged on the client. See Configure DB2 Client Connections to learn how to catalog databases/subsystems.
Step 2. Create connection profiles - Step 2 involves creating Toad connection profiles for DB2 databases or subsystems that were either cataloged in the DB2 client or imported from your Data Server Driver configuration file. Each profile contains the information that Toad needs to connect to the system, such as the user ID and password, DB2 registry settings, and the default schema. If you use IBM DSD environment you can import your connection profile from a Data Server Driver configuration file.
Note: You must have a DB2 client installed before you can configure client connections and create connection profiles. Refer to IBM for information regarding a DB2 client download, http://www-01.ibm.com/software/data/db2/linux-unix-windows/downloads.html, or consult your organization's IT department. For a list of supported DB2 client versions, see the Toad Data Studio Release Notes.
Note: The default location of your Data Server Driver configuration file is in ...Program Data\IBM\DB2\IBMDBCL1\cfg. The default config filename is db2dsdriver.cfg.
Note: When you connect using IBM Data Server Driver the Database button and the toolbar option in Tools | LUW Database Options will not be available.
Click here to view a video about creating connections in Toad Data Studio
You can also connect to your DB2 database/subsystem using a custom connection string.
Use one of the following methods to create Toad connection profiles:
(Export connection profiles to an XML file about exporting a profile that you can later import.)
Note: The connection profiles are not usable unless you have also created entries in the DB2 catalog for the DB2 databases and subsystems to which these profiles correspond. Configure DB2 Client Connections.
To import connection profiles
In the Connections (or Create New Connection) window, click on the toolbar, and select Connection file.
From the Import Connections window, browse for and select the XML file containing the connection profiles you want to import.
Click Open.
Select DB2 and click OK to complete the import.
The connections whose profiles you imported are listed on the Connections window.
To create a Toad connection profile for a DB2 database or subsystem
In the Connections (or Create New Connection) window, click on the toolbar (ALT+F+N).
Review the following for additional information:
Database alias |
Select the alias for the DB2 database or subsystem. This alias was defined when you cataloged this DB2 database or subsystem on the DB2 client. Configure DB2 Client Connections if the alias does not display in the list. Tip: Click |
Default schema/auth ID |
Enter the SET SCHEMA value (DB2 for LUW) or the SET SCHEMA or SET CURRENT SQLID value (DB2 for z/OS) for this connection. |
Category |
Select or create a category if you want to color code Editor tabs for a specific connection. This can help differentiate between development and production databases. You can also set an option to color code the Object Explorer pane and object editor windows (Create, Alter, Drop, etc.).
|
Click Connect to save the connection and immediately connect to the database.
or
Click Save to save the connection without connecting to the database.
After you have completed both phases for configuring Toad connections to DB2 databases or subsystems, the Connections window lists all the configured connections, allowing you to perform the following:
Connect to and manage a DB2 database or subsystem through Toad
Toad for DB2 provides functionality to export one or more of your current Toad connection profiles to an XML file. You can then import these exported connection profiles into another Toad installation. Import Toad connection profiles previously exported to an XML file
To export connection profiles
In the Connections (or Create New Connection) window, select the connections whose profiles you want to export.
Click on the toolbar, and select Connection file.
On the Export Connections window, review the selected connections, and click OK.
Browse for and select the path for the file in which to export the selected profiles.
You can import all connection entries currently defined in the DB2 client catalog or Data Server Driver configuration file but missing from your current list of Toad connections.
Note: Default location for Data Server Driver configuration files is in ...\IBM\DB2\IBMDBCL1\cfg.
Note: The imported connection entries might be associated with incorrect or missing DB2 catalog or Toad connection profile information, making them currently invalid. To re-instate any of these connections, you might need to provide accurate DB2 catalog and Toad profile information.
To import missing connections
Troubleshoot connection issues
Note: Click to open the Client Configuration Wizard. Configure DB2 Client Connections
Tip: Connections are stored in the connections.xml file and can be found by clicking the Application Data Directory link in Help | About.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Nutzungsbedingungen Datenschutz Cookie Preference Center