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: 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.
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:
(See Export connection profiles to an XML file for more information 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. See Configure DB2 Client Connections for more information.
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).
Select DB2 from the Group list box.
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. See Configure DB2 Client Connections for more information if the alias does not display in the list. Tip: Click to refresh the alias list. Normally, Toad caches the DB2 catalog the first time you open this window in your Toad session and continues to read from cache each time you subsequently open this window. This button forces Toad to reread the DB2 catalog to list any new systems that might have been cataloged externally during the caching period. |
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 here to view a video of this feature. |
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 for DB2 installation. See Import Toad connection profiles previously exported to an XML file for more information.
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. See Configure DB2 Client Connections for more information.
Tip: Connections are stored in the connections.xml file and can be found by clicking the Application Data Directory link in Help | About.
Toad allows you to create a connection to a Toad Intelligence Central server.
See About Toad Intelligence Central for more information.
To create a new TIC connection, you must provide the TIC server name and then register with TIC by creating a new user account for yourself. The new user name and password will be used by TIC to identify you from among the group of TIC users and to manage the objects you create and are granted access to on the TIC server.
A TIC connection displays in the format: username@server. The username is the name of the new user you create when you create a new TIC connection.
To create an Intelligence Central connection
Register New User. Use this tab to register with Intelligence Central by creating your own account (user name and password). Review the following for additional information:
Note: If you are creating a connection to a Intelligence Central instance for which you already have a user account, do not fill in this tab again. Skip ahead to the next step (Login tab).
Register New User | |
Use Windows Authentication |
Select to create a new user account using your Windows credentials. Toad automatically populates the fields with your account information. |
Host |
Enter the name of the Intelligence Central host server. Click to display a list of Intelligence Central servers currently active on the network. |
User Name |
Create a new user name for this connection. This is the name you will be logged in with. The objects you create will be linked to this user name. All your TIC rights (like sharing) will be linked to this user name. This user name will display in the format: username@server Note: User names must be lower case only. When you enter a user name, all upper-case characters are automatically converted to lower-case. |
Password |
Create a password. |
Verify Password |
Re-enter the password to confirm. |
Full Name |
Enter your full name. This name, along with your user name, displays on the Sharing tab of the Publishing dialog and in the Alter Visibility dialog. Your full name will help users identify you when they select users with which to share an object. |
Email Address |
Enter your email address. |
Port |
Enter the port number for the App Server. |
Login as Existing User tab. Use this tab to create a new connection to a TIC server for which you already have a user account. (When you open an existing connection, this tab displays your user account information.)
Login as Existing User | |
Host |
Enter the name of the Intelligence Central host server. Click to display a list of Intelligence Central servers currently active on the network. |
User |
Enter an existing server user name. |
Password |
Enter the existing password for the user name. |
Data Source |
(Optional) Enter the name of a default data source to open upon connection. |
Port |
Enter the port number for the App Server. |
Category |
(Optional) Select an existing category or create a new one. |
(Optional) Select Save Password to save your password with this connection.
Note: This option is disabled if Toad was installed with Prohibit saving passwords selected.
Click Connect to connect immediately and save the connection information. Optionally, click Save to save the connection without connecting.
To change your Intelligence Central user password
You can change your password for your Intelligence Central user account at any time.
Note: You cannot use this procedure to change the password for a Intelligence Central account that uses Windows Authentication.
To switch your TIC user account to a Windows Authentication account
You can switch your current Intelligence Central account to a Windows Authentication account if both accounts have the same user name.
Tip: Connections are stored in the connections.xml file and can be found by clicking the Application Data Directory link in Help | About.
Review the following solutions to help troubleshoot DB2 LUW issues pertaining to Toad installation and database connections.
Issue |
Cause/Solution |
---|---|
System.IO.FileNotFoundException - File or assembly name DB2AdminWrapper, or one of its dependencies was not found |
You are not a member of the DB2ADMIN or DB2USERS group. To install Toad, you must be a member of either group. Solution: Ensure that you have been added to one of these groups. |
Issue | Cause/Solution |
---|---|
ERROR [08001] [IBM] SQL1336N The remote host was not found. SQLSTATE=08001 |
You are attempting to connect to a database version that is not supported in Toad. Solution: Review the list of supported databases in the Release Notes or Installation Guide. |
ERROR [58031] [IBM] SQL1031N The database directory cannot be found on the indicated file system. SQLSTATE=58031 |
Catalog entries have not been imported or defined for the connection. Solution: See Configure DB2 Client Connections for more information to determine the best method for cataloging a database. |
"The type initializer for 'IBM.Data.DB2.DB2Connection' threw an exception." "SUCCESS - unable to allocate an environment handle." |
A settings file might be corrupt. Solution: Rename your local settings directory so a new one can be recreated. To rename your local setting directory
Notes:
|
Issue | Cause/Solution |
---|---|
Unable to capture Container Information in DB2 for LUW Multi-Partition Databases |
Certain Toad functions require that the DFT_MON_BUFPOOL database manager configuration parameter be set to ON to capture information on containers used in DB2 for LUW databases. Additionally, to capture container information across all partitions in a multi-partition database, the snapshot monitor requires that all database partitions be active. To activate all database partitions (and keep them active), execute the DB2 command ACTIVATE DATABASE real_database_name on the server before connecting Toad to the database. See your IBM DB2 for Linux, Unix, and Windows documentation for more information about this command. |
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. 이용 약관 개인정보 보호정책 Cookie Preference Center